Is there a way to hide the tab header of a tabpage or change the apperance to look like a menustrip? I'm wanting to use a menustrip to switch between the tabpages so there is no need for the header.
how to set header color for tabpages in WINFORMS. and also the back color.
In my code. For j = 0 To dataset4Category(i).Tables.Count - 1 Dim Finder As Integer = Decimal.Floor(((dataset4Category(i).Tables(0).Rows.Count) / 30)) key = dataset4Category(i).DataSetName name = Space(1) & StrConv(dataset4Category(i).Tables(0).TableName, VbStrConv.ProperCase) & Space(4) myTabControl.TabPages.Add(key, name) myTabControl.TabPages(j).Tag = 0
it's about a program mode, i want to hide all except one tabpages if i check the "standard"-radio button. When i check "advanced" the tabpages should be visible again.
"standard" is radiobutton1, "advanced" is radiobutton 2
I've tried hiding one tabpage in the form and it was somehow successful. However, it was not the one i'm planning to do with my program. I don't know if there exists any code that could make the tabpages(two actually) automatically hide when the form loads and would only be visible after some passing some conditions.
I am trying to show or hide tabpages as per user choice. If user selects gender male then form for male in a tabpage "male" should be displayed and if user selects female then similar next form should be displayed in next tab "female" I tried using
tabControl1.TabPages.Remove(...) and tabControl1.TabPages.Add(...)
It adds and removes the tabpages but doing so will loose my controls on tabpages too... i can't see them back.
I'm using the following code to populate a DataGridView with a worksheet. This is working fine, however, I'm unsure how I can get the Text from the page header. (not to be confused with the column header). Later in my code when I am exporting into an existing workbook with a new worksheet, I'm wanting to use the header text as the tab name. The header text being "September 2009" so that when I import/manipulate/export october, the new tab will be "October 2009" etc. [Code]
in my application i created table called houseloading which has field called housename.which is inserted into the sqlserver database. my table will look like this
///column name house values red green
what i want now is i want to display the values red green as column header in datagridview
I'm curious if it is possible to hide a group of text boxes from view in a form until a particular condition is met, and to have a custom set of text boxes for that condition. To give an example; I want radio buttons offering choices for a manner of searching records, the user selects one and then a specific set of text boxes are displayed for the user to utilize, if a different option is chosen a different set of text boxes will be shown. Is this something that can be done?
how do I get the Header text of the header the user clicked in the datagridview.I know I have to use the column header click event but I can't work out or find away to extract the clicked header data?
how to make bigger tabpage page headers without changing tabpage or its contents font size. i just need to change tabpage header to make it look bigger with different font.
how to hide exe into task-manager in windows 7 using vb.net windows application?I want exe is hide into task-manager in windows 7 & windows vista machine using vb.net(windows application)
My UI currently addsabPageGraphs to a TabControlMain dynamically. I now need to present 4 different views of the same data. I want to do something like the following code indicatesbut there is no 'Add()' method for TabPages by which I can add 4 Tabs to an existing TabPage.How would I accomplish this so that under a specific dynamically added TabPage, the User can select any of 4 new TabPages with a different graph to view.
if (!this.tabControlMain.Contains(this.tabPageGraphs)) { this.tabControlMain.TabPages.Add(this.tabPageGraphs);
I was thinking of a function that returns boolean and using remove at.. but maybe removing all and only adding the ones have permission too? [code]But I have 15 pages and want to loop through these.
Good evening folks, I'm building a program that is threaded. While I can get the thread to work no problem, I can not seem to add pages to my tabcontrol from the class I'm using. Any idea's on what I'm doing wrong?frmMain is loaded first. Then the idea is to load the other tabpages using a separate thread as they take awhile.[code]
I have a Tab Control on a form that contains several TabPages. I want to be able to disable certain ones at runtime and then enable them programmatically. What is the best way to do this?
I am creating an application which has n numbers of tabpages in three different tabcontrols. some of the tabpages are having graphs and rest of them are having some other calculations based on the data of focused graph tabpage.What i want is when user selects different tabpage containing graph the data of the graph tab should be passed to all the other tabpages using the data to calucate. There is one way which i get is to loop inside all the tabpages,but i want to raise an event from the graph page and handle the event in all the rest of the calculation pages.
I'm new to programming and I'm trying to find a way to move tabs in a tabcontrol. I've found this good resource (url...), but I don't know how to implement it.
I have added 1 tabcontrol to a form, then I added 8 tabpages to the tabcontrol. I set "Multiline" = True, so that all the 9 tabpages will be distributed evenly in 2 row. The problem I'm facing now is the position of the tabpages will be changed automatically when i clicked the tabpages. I know someone also face this problem before in other forum I searched through Google, however there's no answer posted. Is there anyone know the codes that associated to the position of tabpages so that I can write code to fix the position?
I've hit a roadblock and really need help with looping through tabconrol's tabpage's, getting each tabpage's parent name and richtextbox control's text value. I have a ctabcontrol that has ctabpage tabpages, which also have Usercontrol's on the body of each tab. I developed a FindAll to search through each openned tabpage's richtextbox in the mdi parent container form. However, I cannot get the for loop to produce any values for the controls. All values are 0. The richtextbox.text value is empty. I even tried to produce a value with TabControlCollection to no avail, it shows 0 tabs in the collection even though I have 3 tabs open in the mdi parent container. How can I get the actual controls and values from other tabs so I can evaluate them in my Find tabpage functons?
I'm making a custom TabControl duplicate and I can't seem to be able to add controls to its TabPages. In fact, they don't show up at all! I've got code that sets their BackColors to Red, and their DockStyle is set to fill, but they just don't show up. Here's my code for the CustomTabControl:
Public Class CustomTabControl Inherits Control Private Const TAB_HEIGHT As Integer = 32
how to add a click event to the tabpages of a tabcontrol? I tried double clicking it but nothing happened. I tried putting a button on the tabpage but that did not work either.
i am having 11 comboboxes and 11 tabpages in 1 tabcontrol each tab page having one combobox.i kept the name of combobox like combobox1,combobox2,combobox3.....and so on also there are other comboboxes in tabpages but they are of different name i had also kept the tag property of combobox from 0 to11 for each one now what i want to do is add the same item in all comboboxes for that i wrote code like:-
dim combos() as string=new string("A","B","C"....) dim tp as tabpage dim cnt as combobox for each tp in me.tabcontrol1
[code]....
but this displays an error syntax like:"expression is of type System.windows.form.tabcontrol,which is not a collection type." i just want to add same items in combobox of each tabpage ..
I am trying to show or hide tabpages as per user choice. If user selects gender male then form for male in a tabpage "male" should be displayed and if user selects female then similar next form should be displayed in next tab "female"I tried using
tabControl1.TabPages.Remove(...) and tabControl1.TabPages.Add(...)
It adds and removes the tabpages but doing so will loose my controls on tabpages too... i can't see them back. what's the problem here?