Hi, I'm in the process of trying to make my app into an "Application
Desktop Toolbar" (or at least that's what i've discovered you need to do
in order to dock the main form to the left/right sides of the monitor).
Anyway I found a tutorial at code project that does this (c# does shell,
part 3 - http://www.codeproject.com/csharp/csdoesshell3.asp) and
everything works ok (there's a comment at the bottom with updated code
to make the window dock by draging it past the edges) except for 2 things:
1. Main Menu doesn't work in this code when the window is not in float
state. I made a form, set it to use the compiled dll instead of a
normal system.windows.forms.form, then added a main menu. What happens
is the main menu doesn't respond when the form isn't floating. The
items don't get the grey background and clicking on them does nothing.
Why is this? Should I be doing something else to dock the window
instead of what this code does? Is this code just a base and do I need
to add something to get menus to work?
2. This one is less important to me, but, using the code in the comment
the window stays huge when you drag it back from off the edge. I hacked
the crap out of it and was able to get it to not resize huge, but this
was a major hack, basically disabling resizing of the form for 10
seconds after making it a floating window. I'm wondering why the window
tries every time it moves (until you let go of the mouse) once it's in
the floating state to become huge.
Any help would be awesome... thanks guys!
~Benny