Hi everyone, Im looking for advice, help, best practices. I'm new to VB and having alot of trouble with OO. I understand how to manually create an object and assign properties and methods to it, but I am stuck on getting VB to create objects on the fly, and working with multiple forms.
Attached is my first program (dont laugh!) that I want to change to use objects. I plan on removing all the list boxes and getting the 'confirm bookings' button to open another window with all the booking details recorded as objects. How do I get VB to create the objects on the fly, the only objects I have created have been manual, that I then code a reference to when I want to re-use them. Am I going about it right way?
For multiple forms (window popping up), I am presuming that I would just create another form and declare it, and then use that declaration in my other window to reference it?
Any suggestions or pointers would be most welcome..
Many thanks
Martin
Attached is my first program (dont laugh!) that I want to change to use objects. I plan on removing all the list boxes and getting the 'confirm bookings' button to open another window with all the booking details recorded as objects. How do I get VB to create the objects on the fly, the only objects I have created have been manual, that I then code a reference to when I want to re-use them. Am I going about it right way?
For multiple forms (window popping up), I am presuming that I would just create another form and declare it, and then use that declaration in my other window to reference it?
Any suggestions or pointers would be most welcome..
Many thanks
Martin
Last edited: