Toolbar Easy Question

I

Ivan Weiss

I am having a mental block. I placed a toolbar on an MDI form and added
a few buttons. How do I open up another form when one of the buttons is
clicked? I thought I just double click on the button and create a
function to handle it, but that function is if the entire toolbar is
clicked...

Thanks!

-Ivan
 
H

Herfried K. Wagner [MVP]

Ivan Weiss said:
I am having a mental block. I placed a toolbar on an MDI form and added
a few buttons. How do I open up another form when one of the buttons is
clicked? I thought I just double click on the button and create a
function to handle it, but that function is if the entire toolbar is
clicked...

Handle the toolbar control's 'ButtonClick' as shown in the sample referenced
below:

<URL:http://dotnet.mvps.org/dotnet/code/techniques/#SelectCase>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top