Okay a question which has been asked a million time before, but what is the correct way to access items ect between forms previously I've done this?
Which allows me to access all the components of Form1, just really want to check this is the correct way of doing it, as may as well get things right from the start.VB Code:
Public Class frmcall Inherits System.Windows.Forms.Form Dim form1 As Form1 Private Sub frmcall_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load form1 = DirectCast(Me.Owner, Form1) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(form1.BindingContext(form1.ds, "employees.SMS").Current()) MsgBox(Form1.cbocompany.Text) End Sub End Class




Reply With Quote