Results 1 to 7 of 7

Thread: Stupid question?? -- How do you have a child parent relationship with VB?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Posts
    52

    Question

    Hello,

    I knew at VB and was wondering if anyone can give some examples in VB where there is a child and parent relationship like in C++?

    Marci
    Marci Sarwan

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Unhappy forms?

    dont know if you mean relationship between forms or classes or what ever.. but if your talking about forms
    MDI is the parent form over all other forms(childs)
    to add a mdi form
    go to project-add mdi form...

    sorry if thats not what you wanted

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Talking

    Marci S:

    Add a MDIform to your appliaction. Then all other forms set MDIchild property = true.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Posts
    52

    Question

    I was just curious if VB is object oriented because everyone says it is but I'm not sure how to implement a child and parent relationship. The example about MDI is parent and the other is child is one example -- are there other examples where you can have a parent and child relationship?
    Marci Sarwan

  5. #5
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    still confused

    vb is some what an OOP
    using classes you can have parent relationships throu classes... like there could be a company(the parent)
    and employee being the children..

    wait till this coming spring
    and vb will be TRUELY OOP

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Posts
    52
    How do you implement classes in VB??

    Marci Sarwan
    Marci Sarwan

  7. #7
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Use ClassModules.
    No inheritance. Well, actually, very limited inheritance, using the Implements keyword.
    Not nearly as powerful as C++ classes. But this is VB we're talking about.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width