CB
Clay Burch
Syncfusion Team
August 28, 2002 08:24 AM UTC
Here you are creating a *new* frmMain. You want to get the one that already exists. Assuming that the parent class of this customer form is derived from Form, you might try this code.
dim f as Form = Me.Parent
f.MainMenu.MenuItems(0).checked = true
AD
Administrator
Syncfusion Team
August 28, 2002 09:14 PM UTC
thanks. i will try that. i'm really confused with the *new* instantiation of objects!! because if i don't use the *new* keyword to declare my object, i get an error. How do i pass a reference of form1 to form2 without creating a *new* form1 in form2?