mevets
Member
How do I write to a var on Form1 from Form2?
Friend Property 'Variable' As 'Type'
Get
Return 'the variable you want to access'
End Get
Set(Byval Value as 'Type')
'Your variable' = value
End Set
End Property
Public Class frmDesign
Friend Property clrHi() As Color
Get
Return clrHi
End Get
Set(ByVal value As Color)
clrHi = Color.Tan
End Set
End Property
Private Sub btnCcolor_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCcolor.Click
Dim clrhi As Color
If cdHi.ShowDialog() = Windows.Forms.DialogResult.OK Then
clrhi = cdHi.Color
End If
End Sub
Form1.ClrHi = Color.Tan
Private _ClrHi as Color
Friend Property ClrHi as color
Get
Return Me._ClrHi
End Get
Set(ByVal Value As Color)
Me._ClrHi = value
End Set
End Property