|
How can i define IPSEC policies using C#? i have Windows XP with SP2. In fact i want to ban and allow Ip dynamically.
|
|
|
|
|
Hi all,
I was wondering if anyone could give me a push in the right direction
I am writing an application that needs to show letters. These Letters need to be updated with information about our customers from our database.
I have considered using RTF and regular expressions to find the positions to place the new data. I found a control TxTextControl but am worried that this may get a bit messy! Both in the database (storing huge RTF) and in the app.
Does anyone have any ideas on the direction I should take ??
Thanks
John
|
|
|
|
|
Well, as what you've described sounds exactly like mail merge, have you considered using Word? If you've got Word 2007 installed, you could even fill the information in by directly targeting the Word XML.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
I have just been reading about the word docx (openxml) and it does sound good !
But am i able to emmbed the finished document into a c# winform ?
Thanks
John
|
|
|
|
|
Not without using a word viewer. As a quick thought though, have you considered using WPF and its support for documents? It has an inbuilt document viewer that allows you to view XPS documents. Office 2007 does allow you to save documents as XPS, so you could possibly use automation in office to generate the documents and then open them up in the DocumentViewer control.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks for the replies,
I need it embedded in the app so that I can put it out into the business and they can build up the letter by making selections e.g. a button that when clicked adds a disclaimer to the letter... these button clicks would then need to search a template document for a place holder and put in the relevant text. the docx seems to be able to do this but i need it so that the user can only manipulate the document in the app.
Any ideas
John
|
|
|
|
|
Well - the XPS solution would seem to be a goer for you. It's not trivial, but it will result in a document that you can manipulate through your code, and which renders out like a PDF. This[^] link should help.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all,
I would like to know how a can get hold of the on minimize event of a form.
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Use the forms Resize event and the FormWindowState enum to determine the
forms current state.
private void frmMain_Resize(object sender, EventArgs e)
{
if (System.Windows.Forms.FormWindowState.Minimized == FormWindowState.Minimized)
this.Hide();
}
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
|
You have to handle resize event for the form. Assume your form is Form1
Form1 frm = (Form1)sender;
if ( frm.WindowState == FormWindowState.Minimized)
{
} Hope it helps
|
|
|
|
|
|
how can we assign onmouse value to a label in asp.net+ C#
plz help me
|
|
|
|
|
mrsuman wrote: how can we assign onmouse value to a label in asp.net+ C#
You can use Javascript to get the coordinate of X,Y and show it in DIV....
|
|
|
|
|
>>Score: 1.0 (1 vote).
hum? what wrong with my answer?
|
|
|
|
|
Anyone can tell me the easiest way to read the memory stream and convert it to a 2 dimensional string array.
Regards,
Murugs
|
|
|
|
|
Use a StreamReader to read the stream as text.
Why do you want it in a two dimensional array? How do you want to distribute the characters or lines into two dimensions?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I just want to store a two dimensional array in a session.Session mode is sqlserver.
I am receiving xml serialization error.so i thought of serializing it using binary formatter and then deserialize.
Any help would be apreciated
Thanks,
Murugs.
|
|
|
|
|
If you're receiving an XML Serialization error, then you should really take a look at the error itself. It sounds as though one of the classes you are trying to serialize isn't marked as Serializable. Bear in mind that you need to check the types of all of the fields in the classes to ensure that they can be serialized as well.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All,
I have some Form application that need to open some other Form as a window child - that mean that the window child need to be ( in my case ) always on the top of the first application.
I don't know how to do it - Can someone help ?
Thanks.
-- modified at 1:45 Wednesday 7th November, 2007
|
|
|
|
|
|
|
Try to open the window as a dialog..
For example, if you wanna open "Form2" from "Form1", put the following code in somewhere (maybe, onclick) of "Form2"
Form2 f = new Form2();<br />
f.ShowDialog();
|
|
|
|
|
I having small problem to do it in this way because the main application Form was wrote in C++ and this application call some middle application ( in Com ) that pop up the C# Form.
So i wander if i can do it in some other way - like open the child window to do the same but in other way ?
Thanks.
|
|
|
|
|
ShowDialog will also block other windows in the application. If you don't mind about not blocking the other window you might try setting TopMost = true . The window will then be on top of all other windows.
|
|
|
|