Ok, i got 2 forms, a startup form with a datagrid on it and another form that needs to be able to access the datagrid on the first form. I can't simply call the form like i can in vb6... because i have to access the actual object instance of the form. So i attempted using sub main as my startup item and then having it initialize the main form, however this didn't work. The form would appear and close a second later. I then decided to try making an datagrid object in a module and setting it to the datagrid on the form in the form load event. This didn't work either. It gave the error: "No value at index 0" when i tried accessing the datagrid object from the second form. I just started using visual basic.net.... today...., so i don't know exactly what i am doing.. ahaha. Is there a way to access the startup form from another form? or is there another way i should try doing this?




Reply With Quote