Click here to Skip to main content
15,915,669 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalneed help: deserialise Pin
Dahoolio15-Mar-05 3:14
Dahoolio15-Mar-05 3:14 
GeneralRe: need help: deserialise Pin
Dave Kreskowiak15-Mar-05 6:17
mveDave Kreskowiak15-Mar-05 6:17 
GeneralRe: need help: deserialise Pin
Dahoolio16-Mar-05 20:17
Dahoolio16-Mar-05 20:17 
GeneralRe: need help: deserialise Pin
Dahoolio15-Mar-05 20:40
Dahoolio15-Mar-05 20:40 
QuestionHOW TO: populate Menus at runtime Pin
azam31614-Mar-05 19:39
azam31614-Mar-05 19:39 
AnswerRe: HOW TO: populate Menus at runtime Pin
rwestgraham14-Mar-05 21:38
rwestgraham14-Mar-05 21:38 
GeneralHide Tabpage Pin
Mohamed Ishak14-Mar-05 19:27
professionalMohamed Ishak14-Mar-05 19:27 
GeneralRe: Hide Tabpage Pin
rwestgraham14-Mar-05 21:04
rwestgraham14-Mar-05 21:04 
rugfy wrote:
Anyone can hide the tabpages in tabcotrol

You cannot hide the page, but you can use the TabPages collection of the Tab Control to remove the page altogether.

If you need to be able to add the TabPage back dending on some condition, you can save the TabPage in a Collection before you remove it. Because adding the page back in order is a hassle, the easiest thing to do is when you initialize the form, add all TabPages to the collection in the correct order. Then if you remove a TabPage and need to add it back later, just remove all TabPages and then replace them all in order from the collection.

Of course, you will lose any data that has been entered if you use this approach, so you may have to add additional code if you need to maintain the data state...

You can draw a line on a TabPage using the Graphics object. However, if you are going to be removing tabpages at run time, the events could get complicated. The easiest way to create a line is to create a Panel on the tab page, set it's BackColor to the color of the line you want, and set it's height to 1 pixel.
GeneralRe: Hide Tabpage Pin
Mohamed Ishak15-Mar-05 2:59
professionalMohamed Ishak15-Mar-05 2:59 
GeneralDetecting CD drive media change Pin
thebox211214-Mar-05 17:16
thebox211214-Mar-05 17:16 
GeneralRe: Detecting CD drive media change Pin
thebox211214-Mar-05 17:52
thebox211214-Mar-05 17:52 
GeneralRe: Detecting CD drive media change Pin
Dr_Lomax16-Mar-05 14:38
Dr_Lomax16-Mar-05 14:38 
GeneralRe: Detecting CD drive media change Pin
Dr_Lomax16-Mar-05 14:42
Dr_Lomax16-Mar-05 14:42 
GeneralVB and Matlab Pin
Anonymous14-Mar-05 17:10
Anonymous14-Mar-05 17:10 
QuestionValidating ? Pin
Progzz14-Mar-05 16:16
Progzz14-Mar-05 16:16 
AnswerRe: Validating ? Pin
Christian Graus14-Mar-05 16:45
protectorChristian Graus14-Mar-05 16:45 
GeneralRe: Validating ? Pin
Progzz14-Mar-05 16:48
Progzz14-Mar-05 16:48 
GeneralRe: Validating ? Pin
Christian Graus14-Mar-05 17:00
protectorChristian Graus14-Mar-05 17:00 
GeneralRe: Validating ? Pin
Progzz14-Mar-05 17:04
Progzz14-Mar-05 17:04 
GeneralRe: Validating ? Pin
Christian Graus14-Mar-05 17:11
protectorChristian Graus14-Mar-05 17:11 
AnswerRe: Validating ? Pin
Dave Kreskowiak15-Mar-05 6:13
mveDave Kreskowiak15-Mar-05 6:13 
GeneralRe: Validating ? Pin
Progzz15-Mar-05 16:01
Progzz15-Mar-05 16:01 
GeneralCalling other program to execute function Pin
snow_xuanyuan14-Mar-05 14:18
susssnow_xuanyuan14-Mar-05 14:18 
GeneralRe: Calling other program to execute function Pin
Dave Kreskowiak15-Mar-05 6:04
mveDave Kreskowiak15-Mar-05 6:04 
Generaldynamically setting pictures for a picbox Pin
JMS7614-Mar-05 9:12
JMS7614-Mar-05 9:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.