Newbie questions: Help files? ColorDialog?

  • Thread starter Thread starter Robert D Allendoerfer
  • Start date Start date
R

Robert D Allendoerfer

I'm trying to convert a published evB program into CF vb.net hoping to get
better performance and continuing support from MS. It's almost done and
works perfectly in the desktop version using regular vb.net, however, I can
find no support in the CF framework for the ColorDialog or Help files. I
can probably write my own color picker but not a help file invoker. What
are other people doing? Are there commercial add-ons for these functions?
 
You can find a colordialog (free) here
http://www.inthehand.com/index.php?page=12&show=1,2
Which uses the desktop .NET object model

As with eVB you must call CreateProcess to launch the Help system with the
required file and topic. You can use the CreateProcess method by writing a
P/Invoke declaration:-
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=63&SearchTerms=createprocess

Or use a ready made implementation such as in the free OpenNETCF WinAPI
library:-
http://www.opennetcf.org/winapi.asp

e.g.
CreateProcess("peghelp.exe","yourhelp.htm#yourtopic")

One limitation in .NETCF is there is no Help event on the Form so you will
have to add a Menu item, or button etc from which to launch your help topic.

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 
Robert D Allendoerfer said:
I'm trying to convert a published evB program into CF vb.net hoping to get
better performance and continuing support from MS. It's almost done and
works perfectly in the desktop version using regular vb.net, however, I can
find no support in the CF framework for the ColorDialog or Help files. I
can probably write my own color picker but not a help file invoker. What
are other people doing? Are there commercial add-ons for these functions?
 
Peter:
Your reply about the ColorDialog was very helpful and the InTheHand
ColorDialog is now working fine for me.
However, I don't understand how to use your comments about help files.

You said "As with eVB you must call CreateProcess to launch the Help system
with the
required file and topic." My eVB program used the CommonDialog Help file
command so I never learned how to use "CreateProcess" directly.

I downloaded the OpenNETCF WinAPI library - but don't know what to do with
it.
Can you give me some sample code (in VB.net, not C#) that shows how to
P/Invoke
CreateProcess and TerminateProcess (if necessary) using the WinAPI library -
or refer me to a book that is actually in print that explains this stuff.
 
Back
Top