Results 1 to 5 of 5

Thread: [RESOLVED] Moving controls into a tab control w/o loosing handlers & code

  1. #1

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    Resolved [RESOLVED] Moving controls into a tab control w/o loosing handlers & code

    How do I do this? If I cut and paste, then it wipes the code, sometimes the stuff doesn't even show up when I run the program (I guess it's loosing all the handler information) I read about not cutting / pasting controls in the sticky at the top. So how do I do it?

    -Noob

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Moving controls into a tab control w/o loosing handlers & code

    You drag and drop. You can do it either on the form itself or, if that's difficult, in the Document Outline window.

  3. #3

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    Re: Moving controls into a tab control w/o loosing handlers & code

    Oh wow, I come from VB6 world, that wouldn't have worked, it would have just been on top of all tabbed pages(which now makes me wonder how I might do that, not thtat I think I have a need for it.)

    Well now I have a new TabControl question, I will start in a new thread.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Moving controls into a tab control w/o loosing handlers & code

    Quote Originally Posted by intellilogic View Post
    which now makes me wonder how I might do that
    You'd make the form the parent by dragging the control onto the form surface in the designer or using the Document Outline window, then you would set the Location property manually in the Properties window. You can also move a selected control pixel by pixel using the arrow keys.

  5. #5
    Addicted Member
    Join Date
    Apr 2008
    Posts
    193

    Re: Moving controls into a tab control w/o loosing handlers & code

    Quote Originally Posted by jmcilhinney View Post
    ...You can also move a selected control pixel by pixel using the arrow keys.
    You're the man, thanks!

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