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

How to access the events of an instantiated form

P: n/a
How do I get to the form events such as sizeChanded of an instantiated form?

for example:
My main form has a pictureBox control, when I double click it, it will open a new form and show the image full size. I need to get to the changedSized event of the new form to control the visiability of scrollbars depending on the size of the image and when the form is resized.

Thanks in advance........
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

dim f as myForm = New myForm

f.Show

Private Sub frm_Main_SizeChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyForm.SizeChanged

End Sub

"buzz" wrote:
How do I get to the form events such as sizeChanded of an instantiated form?

for example:
My main form has a pictureBox control, when I double click it, it will open a new form and show the image full size. I need to get to the changedSized event of the new form to control the visiability of scrollbars depending on the size of the image and when the form is resized.

Thanks in advance........
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.