.net drop down toolbar button that shows a listbox/form

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

Hi

I am trying to make a listbox appear in my application when the user
clicks on a drop down button in the toolbar.
It should show the listbox when the user clicks on the drop down menu
part of the button and disable/enable the list when the user clicks on
the actual button (the icon changes so to indicate this).

At the moment I have created a form with a listbox on and at all seems
to work quite well except for one thing. I use the topmost property of
the form so that the form stays on top of the application, but it seems
to not only be the topmost part of the application, but the whole
system. i.e. if I click on Explorer whilst the list is showing, it
continues to stay above explorer, which I dont want.

Despite extensive searching I havent found anything on google, which i
find a little strange, so perhaps i am missing something.

So my questions are:
Does anyone know of a way of making the form stay only above the
application. (all the references i have found seem to suggest that
this is the default behaviour of TopMost, with most people trying to
achieve system TopMost like I have!)

Has anyone seen an example toolbars, dropdown buttons and lists/forms?

Thanks
Kevin
 
Right, I have discovered that instead of using TopMost you shoul use
frm.Owner = Me.

To move it around with the parent form, you have to just capture the
move event of the parent form. dead easy.
 
Back
Top