Results 1 to 6 of 6

Thread: Form refrences [Resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    Smile Form refrences [Resolved]

    Quick question on how to interact between one form and another
    if you don't mind me asking.... I open Form2 with this:

    Code:
    Dim Frm As New Form2()
            Frm.ShowDialog()
    Now, when Form2 is opened I would like to click a button that will
    show the hidden PictureBox that is on Form1 already. My problem
    is not knowing how to refrence Form1's PictureBox property.

    Code:
    Private Button1.Click (ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click 
    
    'Show the Picture Box that is hidden on Form1
    PictureBox1.Visible = True
            PictureBox1.Update()
    
    
    End Sub
    Last edited by teamdad; Aug 3rd, 2004 at 01:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width