How to access the events of an instantiated form

  • Thread starter Thread starter buzz
  • Start date Start date
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/ =-
 
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
 
Back
Top