README.md
December 5, 2022 ยท View on GitHub
Description
This will show you how to reference another form in VB.net.
More Info
| Submitted On | |
| By | Gene Averett |
| Level | Beginner |
| User Rating | 4.5 (18 globes from 4 users) |
| Compatibility | VB.NET |
| Category | Coding Standards |
| World | .Net (C#, VB.net) |
| Archive File |
Source Code
Code on form1:
Dim Frm2 as Form2 = New Form2
''Under InitializeComponent
frm.Init(me)
Code on form2:
Dim frm1 as form1
Public Function Init(Byval frm as Form1)
frm1 = frm
End Function
'Now you will be able to reference controls on both forms.