Object Orientated Woes create objects

edgedemon

Member
Joined
Nov 19, 2006
Messages
9
Programming Experience
Beginner
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
 
Last edited:
10% there!!

Nightmare, though a little bit pleased ;)
Every-time I touch something it seems to break something else!
I was planning on creating an object – which I have done ;) I was sort of hoping that I would actually be able to see the thing to work with it!
Instead, its there, but in creating it I think I have up my sub-total and cost fields, and Im not sure that I am not trying to over complicate things
How do I display the object that I have created so that I can edit it, get it to pop up in a seperate window,or print to file or just do anything with it?
It might not be the most economical of code, but I have to start somewhere right?
 

Attachments

  • HBking.zip
    26.7 KB · Views: 17
Last edited by a moderator:
Back
Top