By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Specify mouseClick event for controls created at runtime

P: n/a
I added a button control at runtime to a webbrowser control (also created at
runtime)
How do I specify the action when user clicks on this button since it's not
available in design time?

Thanks a million

Bill
-------------------

Dim mButton1 As New Button

With mWeb1

mButton1.Text = "Test"

..Dock = DockStyle.Fill

..Navigate(mUrl1)

..Controls.Add(mButton1)

End With
Oct 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Bill Nguyen" <bi*****************@jaco.comschrieb:
>I added a button control at runtime to a webbrowser control (also created
at runtime)
How do I specify the action when user clicks on this button since it's not
available in design time?
Check out the 'AddHandler' statement.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Oct 31 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.