How to access the events of an instantiated form

B

buzz

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/ =-
 
G

Guest

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
 

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