Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. runtime problem

runtime problem

Scheduled Pinned Locked Moved C#
questionhelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nidhelp
    wrote on last edited by
    #1

    hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks

    M M 3 Replies Last reply
    0
    • N nidhelp

      hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Hi! Unfortunately, TabPages don't have a Visible property, so you can either make the whole TabControl invisible or remove all unwanted TabPages from the TabPages collection of TabControl. You can also add TabPages to the TabControl at runtime when a menu item is selected. Regards, mav

      M 1 Reply Last reply
      0
      • N nidhelp

        hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks

        M Offline
        M Offline
        Mohamad Al Husseiny
        wrote on last edited by
        #3

        you can make it invisible and set it visible when you need them but if you need to load them at run time you can do this remove the tab from InitializeComponent and write the method that initialize it when you need call it when you need to load the tab

        1 Reply Last reply
        0
        • M mav northwind

          Hi! Unfortunately, TabPages don't have a Visible property, so you can either make the whole TabControl invisible or remove all unwanted TabPages from the TabPages collection of TabControl. You can also add TabPages to the TabControl at runtime when a menu item is selected. Regards, mav

          M Offline
          M Offline
          Mohamad Al Husseiny
          wrote on last edited by
          #4

          what do you want to hide at runtime tab control or tab page if you need to hide tab page like mav.northwind said

          N 1 Reply Last reply
          0
          • N nidhelp

            hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks

            M Offline
            M Offline
            Mohamad Al Husseiny
            wrote on last edited by
            #5

            this code sample load control at run time Button b=new Button(); b.Name="b1"; b.Text="Text"; b.Location=new Point(25,25); //add to form this.Controls.Add(b);

            1 Reply Last reply
            0
            • M Mohamad Al Husseiny

              what do you want to hide at runtime tab control or tab page if you need to hide tab page like mav.northwind said

              N Offline
              N Offline
              nidhelp
              wrote on last edited by
              #6

              hi at runtime i want tabcontrol to be invisible.. only after i click on some buttons then the tabpage will show.. (i made it to be a particular button will call a particular tab page) thanks =)

              M 1 Reply Last reply
              0
              • N nidhelp

                hi at runtime i want tabcontrol to be invisible.. only after i click on some buttons then the tabpage will show.. (i made it to be a particular button will call a particular tab page) thanks =)

                M Offline
                M Offline
                Mohamad Al Husseiny
                wrote on last edited by
                #7

                //to make tabcontrol invisible tabControl.Visible=false; //to select particular tabpage tabControl.SelectedTab=tabPage2;

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups