|
Save your word document as webpage, create a form and place a webbrowser control.
Whenever user clicks Help button dispaly the form with webbrowser navigating to your Help document page.
srini
|
|
|
|
|
can v make the help document to display within the specified panel..
how can v?
and how to create a help document as a tree structure
self confidence+hard work=SUCCESS
|
|
|
|
|
he hi..
Do one thing just create a .chm file.
you have to use "windows HTML help workshop" for that.
Just search on net u will get help.
For creating .chm it will take time but it will be easier next time.
Thanks
Rahul Kulkarni
|
|
|
|
|
no dude, i hv to display the document with in the form only......
self confidence+hard work=SUCCESS
|
|
|
|
|
You can create word document as you like, and can navigate the document using webbrowser control.
You can use HypherLinks for making the help documents as like in BookMarks.
|
|
|
|
|
Hello every body,
I am new in windows application.
Can we call the click event of button (which is on from1) from form2.
Regards,
Rahul
rahul saini
|
|
|
|
|
- Make public function in Form1
- Call it from Form2
eg:
objForm1.PublicButtonClick();
|
|
|
|
|
Hello Michael,
Thanks for your help.
What argument should I pass in it?
rahul saini
|
|
|
|
|
Just pass "null"
Form2
Form1 obj = new Form1();<br />
obj.button5_Click(null, null);<br />
Form1
public void button5_Click(object sender, EventArgs e)<br />
{<br />
MessageBox.Show("Who did this??? ");<br />
}
|
|
|
|
|
Hi,
Sry i forgot to tell you that form1 is mdi child.
i think that is why it si not working.
rahul saini
|
|
|
|
|
The good design practice is to create a property to the button on Form1 and use PerformClick () function.
Eg.
On Form1
public Button Button1<br />
{<br />
get<br />
{<br />
return button1;<br />
}<br />
}<br />
on form2
Form1 obj = new Form1();<br />
obj.Button1.PerformClick ();
|
|
|
|
|
Hello,
engsrini wrote: The good design practice is to create a property to the button
I think it would be even better practice to, not make the button public.
Just add a public method to Form1, which calls the PerformClick of the write button!
All the best,
Martin
|
|
|
|
|
Hello,
You could also call the PerformClick[^] method of the Button instance!
This will raise the Click event, and I think has also the visual effect.
All the best,
Martin
|
|
|
|
|
hello,
i want to connect to the lpt. my os is vista 64.
i try it with the inpout32.dll. but there i get an compatibility error with the hwinterface.sys. The programm have administrator authorizations. Are there any solutions for this problem or alternatives?
thx for your answers.
|
|
|
|
|
i Want to Format TExt in word Document through .net C#
Any One Have idea...
Plz reply
|
|
|
|
|
Either generate RTF (which is a bit messy, but not that complex for simply stuff) or use the COM interface to control Word.
|
|
|
|
|
hi
plz give me some ideas,links, programmatically how can i find out
enable/disable status of windows service using c#
thanks
evil
|
|
|
|
|
Check out ServiceController class in the ServiceProcess namespace..
Bijesh
|
|
|
|
|
Thanks for reply
I have tried with that but ultimately getting success from WMI.
evil
|
|
|
|
|
hi guys could anyone recall how to remove duplicated values in an array like:
string asd = new string[10];
lets say the values are 1,1,1,2,3,4,5,2,1,3,2
i want to remove the duplicate to make it:
1,2,3,4,5
anyone know? any functions to remove the duplicated or do i have to create a for loop to remove them 1 by 1?
|
|
|
|
|
Hello,
neodeaths wrote: do i have to create a for loop to remove them 1 by 1?
Actually I would add the ones who are unique, to an other collection!
neodeaths wrote: string asd = new string[10];
lets say the values are 1,1,1,2,3,4,5,2,1,3,2
One value to much I think! (Just a joke! For those who think I'm peeping somebodys question!)
But I than would create a StringCollection to add the values.
If you need it as an sring[] there is a CopyTo method which will do that!
string[] sArray = new string[10];
sArray[0] = "1";
sArray[1] = "1";
sArray[2] = "1";
sArray[3] = "2";
sArray[4] = "3";
sArray[5] = "4";
sArray[6] = "5";
sArray[7] = "2";
sArray[8] = "1";
sArray[9] = "3";
System.Collections.Specialized.StringCollection filteredCollection = new System.Collections.Specialized.StringCollection();
foreach(string s in sArray)
{
if(!filteredCollection.Contains(s))
{
filteredCollection.Add(s);
}
}
string[] sArraynew = new string[filteredCollection.Count];
filteredCollection.CopyTo(sArraynew,0);
Hope it helps!
All the best,
Martin
|
|
|
|
|
Here's one way:
public static string[]
clean
(
string[] Dirty
)
{
string[] result ;
System.Collections.Generic.Dictionary<string,object> temp =
new System.Collections.Generic.Dictionary<string,object> ( Dirty.Length ) ;
foreach ( string s in Dirty )
{
if ( !temp.ContainsKey ( s ) )
{
temp.Add ( s , null ) ;
}
}
result = new string [ temp.Count ] ;
temp.Keys.CopyTo ( result , 0 ) ;
return ( result ) ;
}
|
|
|
|
|
Hi,
I have coded my complete data in c#. I have to now convert this to either xml or html. can anyone help me out?
Thanks in advance..
SRUJANA
|
|
|
|
|
Which do you want to convert, data ( trivial ) or a form ( impossible ) ? To convert data, just create an XmlDataWriter, and create a schema, and iterate over it. The other question is, why do you need to convert it ? html and xml do very different things, html is not even guarenteed to be XML, XHTML is, tho.
BTW, I don't get email responses right now, so I may not reply if you post down here, you may want to repost the question with more details.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Thank u.....
I have tried to search ur id..got ur link but couldn't post reply there.
My project actually exports the form to different formats like xml,html,rtf so on... conversion among them has been completed successfully...primary conversion i.e. form to any of these would make my job complete. so i require to convert form primarily to any of these and later to required format. so if possible help me out..
SRUJANA
|
|
|
|