I have 2 vb modules created for the most part by VB express 2k8 ... Class Main is in main.vb and CLASS Partial Main is in main.designer.vb
I have one form in Main.vb [design] which is intended to be an instrument display with some pushbuttons and indicators ... I also have a Door which hides some of the buttons.
All of the Push Buttons and the Picture Box controls are defined in the CLASS Partial Main Class yet when I add a control event it is entered in the MAIN Class module
My pbDoor works fine opening and closing from a MAIN Class Function/Event but ALL of my indicators are giving me a cross threading error??? All I want to do is do a me.pbIndicator.visible = loState within a function ... it doesn't matter where I locate this function (in the MAIN class or the Partial MAIN Class) so I am Confused!!!
If the Thread that created the objects is PARTIAL MAIN CLASS then WHY is VB putting events in MAIN CLASS and WHY are both giving a cross thread error for all but one Control?
I have one form in Main.vb [design] which is intended to be an instrument display with some pushbuttons and indicators ... I also have a Door which hides some of the buttons.
All of the Push Buttons and the Picture Box controls are defined in the CLASS Partial Main Class yet when I add a control event it is entered in the MAIN Class module
My pbDoor works fine opening and closing from a MAIN Class Function/Event but ALL of my indicators are giving me a cross threading error??? All I want to do is do a me.pbIndicator.visible = loState within a function ... it doesn't matter where I locate this function (in the MAIN class or the Partial MAIN Class) so I am Confused!!!
If the Thread that created the objects is PARTIAL MAIN CLASS then WHY is VB putting events in MAIN CLASS and WHY are both giving a cross thread error for all but one Control?