tabpage

C# Winforms TabControl elements reading as empty until TabPage selected

I have Winform app I am writing in C#. On my form, I have a TabControl with seven pages, each full of elements (TextBoxes and DropDownLists, primarily). I pull some information in with a DataReader, populate a DataTable, and use the elements' DataBindings.Add method to fill those elements with the current values. The user is able to ent...

How to hide/block a tab in c#?

I need to know how to make a tab item in a tab control unavailable for a certain kind of user. The thing goes that after making 'log in', if the user is not the administrator, he will have one or two tabs unavailable. The admin will have access to the whole system. I just want to make the tabs un-clickable. What are my options? Thanks...

Hiding/blocking tabs using windows forms in c#

The thing is that i have a 'log in window' and a 'mainwindow' that is called after pressing the log in button or the "VISITANT" button If pressing the log in button, the whole system will come out, and if i press the VISITANT button, one tab should disappear or be blocked or something. private void visitant(object sender, EventArgs e) ...

TabPage Validating event firing when clicked on the currently selected tab

I'm doing things as said in How do I prevent the user from changing the selected tab page in a TabControl? Things are working fine. But the validating event of tabpage1 occurs if I've tabpage1 is currently selected and user clicks on tabpage1 itself. and later when user clicks on tabpage2 validating event for tabpage1 doesn't fire. Wha...

Sizing issues while adding a .Net UserControl to a TabPage

I have a complex Windows Forms GUI program that has a lot of automated control generation and manipulation. One thing that I need to be able to do is add a custom UserControl to a newly instatiated TabPage. However, when my code does this I get automatic resizing events that cause the formatting to get ugly. Without detailing all of the ...

Controls moving from one tab page to another.

I am using Visual Studio 2008 and recently a wierd bug has appeared. In my forms I have a tab control with multiple tab pages. I can place a control on a tab page fine, but when I move it by way of clicking it and dragging it to another location, it leaves behind an outline of where it should be. Looking around, it has moved to the fi...

Dock Panel component for .NET that allows docking inside tab-pages?

I want to build a user-interface that, for historical reasons, has a lot of "columns" of information. Many of these aren't relevant for all users in all cases, so I thought I'd look at dock panels to allow the users to hide or rearrange the columns according to their job scenario. This is Winforms in .NET 3.5. As such, I'd like the fol...

How to make an Firefox like tabcontrol in c sharp ?

Hi Does someone know how I could extend and TabPage so that there is a X visible on an active tab, that when pressed, closes the tab /ask if the tab should be closed ? Thanks ...

Hiding and Showing TabPages in tabControl

Hi, 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 an...

C# Storing original positions of Tab Pages within a Tab Control

Hello, I'm relatively new to C# and I'm trying to use a tab control which has 5 tab pages within it. These tab pages are displayed and hidden when required and I am able to re-add pages to the required position e.g. tabPage 2 should be re-added between tabPage1 and tabPage3 by passing in a number relating to the position I want it to a...

TabVisible workaround - memory leaking

I'm trying to implement enhanced TabControl/TabPage classes, in order to achieve real TabVisible feature, since TabPage's Visible property doesn't work as expected. I'm working with C# / WinForms / VS2005 / .Net FW 2.0; I've implemented the code this way: http://csharp.pastebin.com/AUnzRQLw And I've made a Form to test it, checking/un...

C# - TabControl with TabPages all around

Hi... Is there a way, how to create tabControl with tabPages alignmented not only Bottom, but BOTTOM | TOP | LEFT | RIGHT ? Thanks ...

Return Selected Tabpage Name

Hello every one. How can i get the name of selected Tabpage? Thanks. ...

How to focus a certain tabpage when it rightclicked?

How to select or focus a certain tabpage when it right clicked? ...

Context Menu not showing up in tabPage

Hello everyone, I have this scenario: A windows forms application, which contains: a QTabControl (from Qios DevSuite) created in design view; a QTabPage created programmatically; a geckoWebBrowser inside the QTabPage, created programmatically as well. The problem: I have 2 events in the QTabPage: QTabPage.MouseDown - executes pe...

CF - TabControl - how to make the tabs bigger?

I have a tab control with tab pages (cf). The tabs are too small ... can some1 tell me how can i make them bigger? ...

How to Dynamically Create Tabs

This is in C# I Need to basically make TabPages from a textbox.Text so for example: textBox1.Text = "test"; TabPage textBox1.Text = new TabPage(); That is what i want to do.. i know that won't work directly, but that should give you the idea of how i want to create the tabPages.. then i want to be able to call them later on too so fo...

C# TabPage ImageKey not drawing

I have an Application that runs tests on a customers account in order to judge if their service is working correctly. During the process of running the tests, the application reads each test and checks to see if it passes / fails / etc... It plays a green checkmark / red x on the tabPage itself as an imagekey... the imagekey is assigned...

Activate tabpage of TabControl in c#

Hai all, I am using TabControl in c#.NET application.By default first tab page of TabControl is showing in form loading .I want to activate/show other tab pages in form loading. programmatically how can i show other tab page . Please help. ...

How can I get a TabPage from a TabControl based on a Point?

Surely this has got to be easy; I'm just not having any luck with it. How would I get the TabPage of a given TabControl whose tab contains a given Point? For example, if I'm handling the MouseUp event and I want to know which tab the mouse was over when it was released. I tried GetChildAtPoint, but that seems to always return the first...