tabpage

How to make Managed Tab Control (MTC) appear right to left

笑着哭i 提交于 2019-12-25 18:46:13
问题 I have used this TabControl to create the following tablayout in a winform application How do i make the tabs appear right to left? I mean make it like this image I also tried to Use RightToLeftLayout property but this tab control doesn't have that property 回答1: It seems that MTC while affected by RightToLeft doesn't draw as expected (In part due to the fact that it statically draws the tabs from left to right and calculates width from the left): It's easy enough to do in WinForms: The secret

C# TabControl TabPage passing events

风格不统一 提交于 2019-12-25 02:59:10
问题 I am working with a TabControl and attaching TabPages to the TabControl, but am having a problem making one of the TabPages respond to an event. It makes me think that I am missing something about the relationship between these classes, so would appreciate some help. I want to add a number of TabPage objects to TabControl, and for one of them (the first one added), I want to send it an event to make it do something. Here is the basic code: /* tabControl is a TabControl object, and tabNames is

Customize TabPage tabs like Process Flow Arrows in Microsoft Dynamics CRM 2015

本小妞迷上赌 提交于 2019-12-24 16:29:58
问题 I want my TabControl in a Windows Forms app to look something like this: https://technet.microsoft.com/en-us/library/dn531164.aspx I have an app that has process flow and each TabPage is a process phase that I want to represent with these nice looking arrows. I know about OnPaint and System.Drawing, but I cannot make those tabs look decent. I tried to handle TabControl.DrawItem event and to draw an arrow, but I am not satisfied with the look. private void tabControl1_DrawItem(object sender,

C# Winforms TabControl elements reading as empty until TabPage selected

给你一囗甜甜゛ 提交于 2019-12-22 23:25:15
问题 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 enter data into these elements, press "Save", and I then set the parameters of an UPDATE query using the elements' Text fields. For instance: updateCommand

Hiding TabPage from TabControl in Winform application

巧了我就是萌 提交于 2019-12-16 18:04:35
问题 I have a TabControl in Winform s application, I have to disable the second tab, clicking it would be enabled only after some action on my first page. I have achieved this by disabling tab by code tabControl1.TabPages[1].Enabled = false; But I want that tab to be hidden or clicking the tab itself should be disabled. 回答1: Try This. It will hide and show the TabPages without a Control lost. Hide TabPage and Remove the Header: this.tabPage1.Hide(); this.tabPage3.Hide(); this.tabPage5.Hide();

Make dynamically number of tab pages with ZedGraph in WinForm C#

╄→гoц情女王★ 提交于 2019-12-13 03:59:28
问题 I have data for several days. I want to plot that data, one day in one tab page. The tab page can change dynamically corresponding with the number of the day. Previously, I always make a static page in the design mode. I use ZedGraph control to plot the data. I decided how many pages that I need. Then it means the number of pages is static. Now, I need more dynamically. I want the number of tab pages can change dynamically. Each page has similar controls inside it. How to do that? I have no

How do you modify a control that has been re-parented to a TabPage?

こ雲淡風輕ζ 提交于 2019-12-12 23:08:39
问题 I have a user control that contains a collection of controls to be reused for presenting data on the UI. I've attempted implementing a "pop-out" option that will re-parent the control from another container on the form (a Panel, for example), create a new tab page, and then add the control to the tab page. Unfortunately, when the control is added to the TabPage, its size appears to be locked to the way it was presented with the last parent. I overrode the ParentChanged event to detect when

C# Winforms Tabpage Size and ClientSize wrong

强颜欢笑 提交于 2019-12-11 17:34:58
问题 I have created a user control that contains a TabControl with 2 TabPages. The position of the child controls on both TabPages is adapted programmatically in the Layout event of the user control. The problem is, that the 2nd TabPage has not been drawn yet when the event is called and therefore this TabPage has a wrong Size and ClientSize. How can I work around that? I tried a loop with var oHandle = tabpage.Handle and tabctrl.SelectedTab = each tabpage already to force the creation of the

Drag and detach tabpages

假如想象 提交于 2019-12-11 08:51:29
问题 I have several tabpages on a single tab control and I was wondering if anyone out there knows how I can program a way to drag tabpages off the tab control and into their own "form"....pulling the tabcontrol apart? I'm using vb.net and did find many ways to move the order of tabpages on the tabcontrol but non om how to actually detach the tabpage and place \ drag it elsewhere on the screen? 回答1: Assuming WinForms, essentially you have to create a new Form and a new TabControl to house the

How to show an ErrorProvider error icon next to a TabPage header?

≡放荡痞女 提交于 2019-12-11 05:51:43
问题 Edit: This is not a duplicate of Icons in TabControl C# - How?. The question there is about adding icons to tab pages. Here it is about how the change the error provider error icon position to be inside the header instead of to the right of the tab page itself. Also, the error provider error icon has the functionality that when you hover the mouse on it, you see the error text, which you do not see if you simply add an icon to the header. I have a form with a TabControl . The form has also an