Results 1 to 8 of 8

Thread: Child form problem [RESOLVED]

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2004
    Location
    Everywhere
    Posts
    46

    Resolved Child form problem [RESOLVED]

    I posted this last week but now the thread has disappeared. I assume that there were just no replies and threads are kept for long periods of time here. I assume this because there is only 4 pages of topics. Anyway, I digress...

    I have attached images of the problem. When I toggle between the two forms, the second form drops down a little bit. I've tried fixing this but I can't...I don't know the property to move it up...I thought I did, but maybe it's just not working.

    On an odd note, if I load the first form second, then it is the one that drops down. I was told it had something to do with cascading forms...unfortunately, that doesn't really mean much to me.
    Attached Images Attached Images   
    Last edited by Myriad_Rocker; Apr 4th, 2005 at 08:59 AM.
    Myriad Rocker
    The ability to speak does not make you intelligent

    I haven't had VB since college...go easy.

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Child form problem

    Quote Originally Posted by Myriad_Rocker
    I posted this last week but now the thread has disappeared. I assume that there were just no replies and threads are kept for long periods of time here. I assume this because there is only 4 pages of topics. Anyway, I digress...

    I have attached images of the problem. When I toggle between the two forms, the second form drops down a little bit. I've tried fixing this but I can't...I don't know the property to move it up...I thought I did, but maybe it's just not working.

    On an odd note, if I load the first form second, then it is the one that drops down. I was told it had something to do with cascading forms...unfortunately, that doesn't really mean much to me.
    It did not disappear. Your thread is located at http://www.vbforums.com/showthread.php?t=331834. Next time, you can search for it and bump it up by replying any text like "anyone knows" or "^BUMP^" or anything you make up or just a more detailed question or add more questions to the thread. In other words... you need to reply anything so that the thread is moved back to the top ones (latest threads).
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Child form problem

    I assume this because there is only 4 pages of topics.
    Well, down near the bottom you can click Display Options->From time: and pick to show threads from the last week, since forever, whatever.

    When I toggle between the two forms, the second form drops down a little bit.
    I can see the form moving in the pics, but the rest of it looks the same, so I assume you mean toggling between the main form and the sidebar form.

    I don't know the property to move it up...
    Form.Move [x], [y], [width], [height]
    Or alternatively Form.Top, etc.

    I was told it had something to do with cascading forms...unfortunately, that doesn't really mean much to me.
    I'm assuming its MDI. I don't know about cascading forms, but if it was me I would make the sidebar out of a PictureBox instead of a form... and that way it will stay in front of your child forms. You can set it to Align=Right and it will autosize itself.

    HTH
    Last edited by penagate; Apr 4th, 2005 at 09:03 AM.

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Child form problem

    Try to set the Top property for your form on its Activate event.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2004
    Location
    Everywhere
    Posts
    46

    Re: Child form problem

    My bad...I didn't know I could bump like that.

    Anyway, using form.top=true worked. Thanks. I don't know why I didn't think of that.
    Myriad Rocker
    The ability to speak does not make you intelligent

    I haven't had VB since college...go easy.

  6. #6
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Child form problem

    Quote Originally Posted by Myriad_Rocker
    My bad...I didn't know I could bump like that.

    Anyway, using form.top=true worked. Thanks. I don't know why I didn't think of that.
    Actually, you should Form.Top=0. If you do form.top=true you're actually doing form.top=-1. Although... the "-1" might be the reason why VB does not change the top anymore.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Child form problem [RESOLVED]

    Yeah, I was just going to post that. And I still think a picturebox would be better

  8. #8

    Thread Starter
    Member
    Join Date
    Nov 2004
    Location
    Everywhere
    Posts
    46

    Re: Child form problem [RESOLVED]

    Quote Originally Posted by penagate
    Yeah, I was just going to post that. And I still think a picturebox would be better
    I've tried a picture box...it doesn't work like I want it to. Thanks, though!
    Myriad Rocker
    The ability to speak does not make you intelligent

    I haven't had VB since college...go easy.

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