Anonymous wrote: you sell to must have installed a .NET environment. Is this in fact true?
Yes, even if you pre-JIT your code, at run-time the metadata referenced by your assemblies load all code from the "linked" .NET assemblies. So you need the .NET run-time (dotnetfx.exe in your cd-rom, or simply put a link to the MSDN download entrypoint).
But there is even more to that. Now that .NET 1.1 is soon out, you've got to make sure the user has the right run-time, since actually when he starts your app, by default the app is going to load 1.1 assemblies (hard-coded in the metadata). The only way to get around it is to provide a .config file to route to an "older" .NET run-time. You can use the .NET applet in the control panel to build it.
Java has the same problem with newer apps that require a specific runtime, older apps not working on newer runtimes, heck, runtimes in general -- and J2EE apps behave differently on differing app servers...
...CORBA has problems in ORB implementations...
...and the Mono .NET open source project should also add some gas to the version fire
I can't say I've ever seen a derived menu item that could host a control, but it would be very easy to implement - simply position your control using the bounds property of a derived MenuItem, something like this:
The MenuItem Class has no Bounds property. The only thing I can think of is the OnDrawItem() override. I've used this to draw stuff to the menuitem. HOwever setting the control to use the System.Windows.Forms.DrawItemEventArgs.Bounds property doesn't seem to cut it.
Furty wrote: You may need to have the trackbar as a child to the hosting form rather than your menu item, and reference it with public properties.
Eventually its gonna be used on the Notify Icon context menu for an app i'm working on, but for now i'm just having it as a form menu item. Thus, the Trackbar will need to be independant of the form as the NotifyIcon is not related to the form.
I'm leaving it for today and going to watch some TV like the couch potatoe I am. If you find anything out in the mean time I'll be glad to hear
OK, I've done a little testing and the major problem seems to be the fact that Menu and MenuItem do not derive from System.Windows.Forms.Control. Form what I can see, the only way to acheive your goal would be to override the OnDrawItem and OnMeasureItem methods, and paint the control yourself. Naturally you would also need to handle mouse events etc for user interaction.
The bottom line is that it's a big task, you might be better off using one of notify icon ballon implementations here on CP, as they derive from forms, and therefore can host controls no problem.
i have a spell checker program that uses the internet i didnt write it.. but i have used it and it works. i can email it too you if you like. im trying to find the site i downloaded it from. but i cant remeber where.