Results 1 to 9 of 9

Thread: Creating modified panel on a form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2017
    Location
    Nigeria
    Posts
    257

    Creating modified panel on a form

    I want to create a panel that will be located at the left side of the program to display database table names so that the user can hide or display it when he pleases like the visual studio tool window

  2. #2

  3. #3
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,758

    Re: Creating modified panel on a form

    Place a button on the form and when its clicked, hide the panel if it's showing or show it if it's not.
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2017
    Location
    Nigeria
    Posts
    257

    Re: Creating modified panel on a form

    Quote Originally Posted by jmcilhinney View Post
    i downloaded the file but there are no instructions on how to use it
    Nothing I post is Self Reliable. Use it at your own risk

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

    Re: Creating modified panel on a form

    Quote Originally Posted by TATARPRO View Post
    i downloaded the file but there are no instructions on how to use it
    Except for the link to the documentation site in the Support section of that page.

  6. #6
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: Creating modified panel on a form

    Another simple way is using SplitContainer, if you put the database table in SplitContainer1.Panel1 then you can hide it like this
    Code:
    SplitContainer1.Panel1Collapsed = True



  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2017
    Location
    Nigeria
    Posts
    257

    Re: Creating modified panel on a form

    Quote Originally Posted by 4x2y View Post
    Another simple way is using SplitContainer, if you put the database table in SplitContainer1.Panel1 then you can hide it like this
    Code:
    SplitContainer1.Panel1Collapsed = True
    so how can I display the tables in the split container so that the user can click it?v
    Nothing I post is Self Reliable. Use it at your own risk

  8. #8
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: Creating modified panel on a form

    Quote Originally Posted by TATARPRO View Post
    so how can I display the tables in the split container so that the user can click it?v
    vb.net Code:
    1. SplitContainer1.Panel1Collapsed = False

    To show/hide use code like this
    vb.net Code:
    1. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    2.         SplitContainer1.Panel1Collapsed = Not SplitContainer1.Panel1Collapsed
    3.     End Sub



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

    Re: Creating modified panel on a form

    Quote Originally Posted by TATARPRO View Post
    so how can I display the tables in the split container so that the user can click it?v
    The same way you would display them on a form or any other control. That's not what this thread is about though.

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