I have a tabcontrol that has several attached tabpage's. Not all of the
tabpages should be accessible at all times. Ideally I'd like to do one of
the following:
- hide those tab pages that should not currently be accessible
OR
- change the font on the tab for the tabpages that are disabled (like gray
them out or something) as a means of user feedback that they're inactive
The problem is that none of this appears possible. Sure, I can catch the
click event on the "disabled" tabs but I want some visual indicator that
they are not currently enabled. Makes sense, right? Anybody come across
this? This seems like pretty basic functionality.
FYI - the Hide(), Visible, and Enabled methods/properties do not satisfy
this requirement. They work, but as it says in MSDN, this poor behavior was
"by design". Why doesn't that line work for me? 2 6646
In order to show / hide tabpages, you must Remove them from the
TabControl and Add them back in.
There are some examples in this group of how to handle the Paint event
yourself for the tab pages in order to change fonts / colour on the
tabs themselves.
This is one of the areas in which the "by design" behaviour of TabPages
is inadequate. Another is the inability to "highlight" the tab text
when there is an ErrorProvider flashing on another page, so there is an
error that the user can't see. In short, TabPages need help; I hope
that they improve in some future version. http://dotnetrix.co.uk/tabcontrols.html
--
Mick Doherty http://dotnetrix.co.uk/nothing.html
"Ed Debrot" <de****@addsys. com> wrote in message
news:eP******** ********@TK2MSF TNGP15.phx.gbl. .. I have a tabcontrol that has several attached tabpage's. Not all of the tabpages should be accessible at all times. Ideally I'd like to do one of the following:
- hide those tab pages that should not currently be accessible
OR
- change the font on the tab for the tabpages that are disabled (like gray them out or something) as a means of user feedback that they're inactive
The problem is that none of this appears possible. Sure, I can catch the click event on the "disabled" tabs but I want some visual indicator that they are not currently enabled. Makes sense, right? Anybody come across this? This seems like pretty basic functionality.
FYI - the Hide(), Visible, and Enabled methods/properties do not satisfy this requirement. They work, but as it says in MSDN, this poor behavior was "by design". Why doesn't that line work for me? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tamir Khason |
last post by:
How be able to manage more deeply UI of TabControl and TabPage
For example - I want to manage border color, change color of TabPage reef,
eliminate spaces from both sides of the reef, so I bould custom control that
inherit all information from TabPage, but how to access those properties,
not supported by standart interface???
Thank you
|
by: cdj |
last post by:
Hi all,
I've got a tabControl, initially with one tabPage, along with two
buttons, one to add another tabPage, and one to delete the current
(selected) tabPage.
On each tabPage, when it is created, is an pictureBox.
Other stuff on the form leads to the creation of a graphic, say
myImage, which I would like to assign to the pictureBox.Image property
|
by: meh |
last post by:
New to C#...
I have a tab page with a handful of controls on it (label, combobox, etc.).
Is it possible to "boilerplate a tabPage with the controls "like a MDI
childForm" so that adding a new tabPage includes the controls.
Any examples, documentation or comments would be helpful.
tia
meh
|
by: Francois Vanderseypen |
last post by:
Can someone tell me why you cannot drag something onto a tabcontrol
with zero tabpages? I have a kind of 'docking' interface and relies
heavily on GDI+, a screenshot is available here:
http://netron.sourceforge.net/Biotron3Shot.jpg
You can move tab pages in the different panes, unless it's totally
empty (TabCount=0). Is there an alternative?
Thanks a lot,
|
by: RA |
last post by:
Hi
1) I want to create a TabPage class in design mode - how do I do it? What
type of project should I use? Is it going to be a custom control?
2) I have a TabControl that I would like to add to it the TabPage created in
step 1. I don't want to draw the TabPage on the Tabcontrol in design mode,
but to have a few TabPage controls that I candynamicaly load to the
TabControl at runtime.
Thanks
| |
by: Richard |
last post by:
Hi,
Simple tabcontrol question:
I have a tab control with a number of tabpages on it. What I want is to
show a particular tabpage when I click a button that is not on the
tabcontrol. Can anyone tell me how I would code this?
Thanks
Richard
|
by: Gianluca |
last post by:
Hi All,
i'm experencing a frustrating and strange behaviaour :
I created a Windows project in VB.NET 2003 with a form and then I
added a TabControl on the form, and added 5 TabPages on TabControl.
then I added some controls (button, picturebox,labels, ... ) on each
TabPage. close the form and open it again.
Now when I click TabControl to go to any tab page and right click on
any control (button, label, picture,..) , I can only see...
|
by: Michael Turner |
last post by:
Hi Guys
Having problem with the tab control, I need to set the background color to
something different than the standard, I have found code on the web and now
can redraw the tabpage buttons so the are set to the right color, I can
obviously change the tabpage colour but I am left with a grey top edge(Where
there are no buttons) when the background of the form is changed any ideas
on what I can do?
Mike.
|
by: Kevin |
last post by:
Although lots of people described how to workaround the lack of ability
to hide and show tab pages on a tab control, I couldnt find a code
example so I made one. Create a class that inherits from the
tabcontrol and then add the following
Private htVisibleVal As New Hashtable
Private htVisibleKey As New Hashtable
Private htInvisibleKey As New Hashtable
'stores the current tabpages
|
by: VigneshAnand |
last post by:
Hi,
I am doing a small tool in .Net(C#). I have a TabControl in my application; I need to achieve two functionality in it as follows.
1. I have enabled drag-drop property for my tabcontrol, so what I want to achieve is when I drag an item and move over an tabpage name which is now currently not in front, has to come in front so that I can drop my item in that tabpage.
For example let’s say we have 2 tabpage named 'Tab1' and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |