The text of this article is not in this database — only its details are. Read it on the old site: C# TabControl
14 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: C# TabControl
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
DG HofPosted Oct 10, 2019, 3:05 AM
How do you color the background of the TabControl it self not the tabs
felix connelyPosted Apr 27, 2015, 10:27 AM
Im new on that sector.. i m just junior about that.. so i ve a question.. i ve tabcontrols and there is a gridview.. i ve got my database' rows itinto that gridview. Its working.. but i tried almost today about deleting.. but i cant solve it! Could you please give a sample code how i can delete the selected rows in c# side to delete from database. Thank you for helping.
Jose phPosted Feb 16, 2015, 3:25 AM
Sorry, I forgot to tell that my Project is a web application.
Jose phPosted Feb 11, 2015, 5:11 AM
Hi I like very much your article. I have a Project in visual studio 2003. This Project use TabScrip Control. Nowadays, I am changing my Project to visual studio 2012 but I have a problema my TabScrip control give an error in execution time error. My problema is from Page1 go to Page2 (Where is my control). First the page execute server code (Page_load) after the page2 is going to doing in the client side and before of the creation of TabScrip is showed an error. 0x800a138f it can not be obtained property "__TabStrip1_State__". In my opini?n This happens because between internet explorer 8 to internet explorer 11 has changed the method to read DOM document. I can tell too when I execute my Project step by step my execution is stopped when is going to create TabStrip control. "<TD vAlign="top" width="100%"><script language="javascript">document.Form1.__TabStrip1_State__.value=0;<". I'm a little tired because I don't found a solution because I don't know like changing my code because this line is showed in execution time. Thanks in advance. I hope someone can help me to fix my problema.
Hisoka YamaPosted Jul 23, 2014, 3:02 AM
I have tab control and datagridview. When tabcontrol page change, grid must be refill data. But data isn't refilled. How to solve this issue.
Revathy choPosted Oct 21, 2013, 4:17 AM
This article useful to me.Thank U Sooo Much Mahesh. :)
MARIO FERNANDEZPosted Feb 15, 2012, 5:21 PM
hello Mahesh, I need your help on a project I´m doing now and its about tabcontrol. My project it for a doctor who needs to control patiens info in a simple way. I have created a tabcontrol with 4 pages inside the tabcontrol as you explained on your example here. Now, my question will be: how do I do to share or maintain the same info I have in one specific textbox in all 4 pages. That textbox info is the patient code which will be the same code and unique in all 4 pages. At this time I have to enter on ever page the same textbox data over and over and I need some code to stop doing this, so when I go to any tabcontrol page the patient code will be displayed already. Any ideas are very welcome and greetings for you
Ahmed elbadryPosted Jul 15, 2011, 11:40 AM
i 'm new in c sharp and i make an application consist of a tab control and every tabpage contain a grid view to display some data from a MS access file , i want to know the name of the data grid view when i select a specific tab .. can any one help me
Suresh NaiduPosted Jun 15, 2011, 3:22 AM
that is very nice article,it contain's many information
Steve DamePosted Apr 13, 2011, 1:17 PM
Thanks for this nice article Mahesh. Could you expand a bit on how to properly set up good class structure for each tab? I find myself creating a separate class file for each tab for complex code behavior on the tabs, but then having to define a partial to share information for the whole form. I also have a system where I am using a serial port control on one tab and utilizing the serial port I/O on each of the other tabs. It gets really messy and everything has to be global to the "form". I'm thinking there must be a better way, but haven't had time to refactor and explore how to compartmentalize better.
Sam HobbsPosted Apr 4, 2011, 12:01 AM
Thank you, Mahesh; I will enjoy using this information when I have the opportunity. I wrote an article like this many years ago about use of the CTabCtrl in C++ MFC. In the Windows API the Tab control (CTabCtrl in C++ MFC) has (at least had) a bug that causes a problem when a ListView control (CListCtrl class in C++ MFC) is used in a tab page. I am not sure which of the two actually has (or had) the bug and I don't know it it has been fixed but it was a known problem for so long that I assume it was never fixed. I also assume that the .Net classes don't have a problem, for whatever reason. If anyone knows of a problem when a .Net ListView is used in a .Net TabControl then I hope they will share what they know.
Santosh Kumar KotnalaPosted Apr 3, 2011, 11:26 PM
that contain useful information........