MultiForms VB.NET 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rablake
    New Member
    • Jul 2008
    • 1

    MultiForms VB.NET 2005

    Form1

    Code:
    Friend SkyDome As New frmSkyDome()
    
    Private Sub btnSkyDome_Click(ByVal sender As System.Object, ByVal e As 
    System.EventArgs) Handles btnSkyDome.Click
            (Some Calcs that define global variables used to update Labels)
            SkyDome.Show()
    End Sub

    Form2: frmSkyDome
    Code:
    frmSkyDome.Topmost=TRUE
    
    Private Sub frmSkyDome_Paint(ByVal sender As Object, ByVal e As 
    System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
            LoadSkyDomeLabels()
    End Sub
    
    Friend Sub LoadSkyDomeLabels()
      (Does calcs and loads labels)
    End Sub

    It runs the fisrt time fine. But labels won't update when new global
    variables are calculated in Form1 unless I close Form2 and reopen it.
    I wanr them to update live.
    Last edited by Curtis Rutland; Jul 17 '08, 02:14 PM. Reason: Added Code Tags - Please use the # button
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    question moved to .net forum.

    Comment

    Working...