on my form I have a checkbox and a tab control when the checkbox is true I
wish to enable the controls on a single page of the tab control, is this
possible or do I need to enable each control on the tab control page.
if you could supply and example of code it would be much appreciated
thanks phil 7 4519
Phil,
You can set a panel on your tabpage.
Dock that fill
Place your controls on that
And than enable disable the panel.
I hope this helps?
Cor
"Phil" <phespe remove this bigpond.net.au> schrieb: on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on the tab control page. if you could supply and example of code it would be much appreciated thanks phil
Simply set the tabpage's 'Enabled' property to 'False'. This property is
not accessible at designtime, you you will have to set it at runtime.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
on my form I have a checkbox and a tab control when the checkbox is true I
wish to enable the controls on a single page of the tab control, is this
possible or do I need to enable each control on the tab control page.
if you could supply and example of code it would be much appreciated
thanks Phil
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. "Phil" <phespe remove this bigpond.net.au> schrieb: on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on the tab control page. if you could supply and example of code it would be much appreciated thanks phil
Simply set the tabpage's 'Enabled' property to 'False'. This property is not accessible at designtime, you you will have to set it at runtime.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"Phil" <phespe remove this bigpond.net.au> schrieb: on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on the tab control page.
You don't need to disable each control individually. Disabling the tabpage
will disable all controls contained in the tabpage too.
\\\
Private Sub CheckBox1_Check edChanged( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles CheckBox1.Check edChanged
Me.TabPage2.Ena bled = Me.CheckBox1.Ch ecked
End Sub
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
when setting the enable to false for the tab control is this done in the
form code or the tab control code
thanks phil
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:ek******** ******@TK2MSFTN GP14.phx.gbl... "Phil" <phespe remove this bigpond.net.au> schrieb: on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on the tab control page.
You don't need to disable each control individually. Disabling the tabpage will disable all controls contained in the tabpage too.
\\\ Private Sub CheckBox1_Check edChanged( _ ByVal sender As Object, _ ByVal e As EventArgs _ ) Handles CheckBox1.Check edChanged Me.TabPage2.Ena bled = Me.CheckBox1.Ch ecked End Sub ///
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
figured out the code
Me.tabSurveyorC ertificate.Enab led = False
but when typing tabSurveyorCert ificate. intellsence dosnt provide enable as
a option is there a reason for this
thanks phil
"Phil" <phespe remove this bigpond.net.au> wrote in message
news:%23aDRl3xC FHA.2156@TK2MSF
TNGP10.phx.gbl. .. when setting the enable to false for the tab control is this done in the form code or the tab control code thanks phil
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message news:ek******** ******@TK2MSFTN GP14.phx.gbl... "Phil" <phespe remove this bigpond.net.au> schrieb: on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on the tab control page.
You don't need to disable each control individually. Disabling the tabpage will disable all controls contained in the tabpage too.
\\\ Private Sub CheckBox1_Check edChanged( _ ByVal sender As Object, _ ByVal e As EventArgs _ ) Handles CheckBox1.Check edChanged Me.TabPage2.Ena bled = Me.CheckBox1.Ch ecked End Sub ///
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"Phil" <phespe remove this bigpond.net.au> schrieb: Me.tabSurveyorC ertificate.Enab led = False but when typing tabSurveyorCert ificate. intellsence dosnt provide enable as a option is there a reason for this
Maybe they decided to hide the property because the tabpage's header text is
not drawn in disabled style.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: @ndy |
last post by:
Hi developers,
i've a problem with my tabcontrol.
Before i open my form with a tabcontrol with 3 tabs
(Frm_Files|Frm_Lines|Frm_Guarantee) all the controls on al the tabs
must be enabled. With the next code only the controls on the active
form are enabled.
For Each ctl In Me.Controls
Select Case ctl.ControlType
|
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: Patrick McGuire |
last post by:
I want to place a tabControl with almost identical
properties on several forms. I think the best way is to
define a UserControl that inherits
System.Windows.Forms.TabControl, and place all my
controls on it. The problem is that I don't know how to
bring up the graphical design interface for the
TabControl. I suppose I COULD just design it as a
UserControl and place a TabControl on it, but that seems
a bit... inelegant (I'm going to...
|
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: Atchoum |
last post by:
Hi,
I've created a usercontrol with a tabcontrol on a form. This tabcontrol
contains several tabs. Is there a way to make the tabcontrol respond to tab
clicks in design mode so that one can make a tabpage active?
TIA,
Atchoum
| |
by: Zadkin |
last post by:
Does anyone know, if it's possible to set the orientation of the
tabpagebuttons to horizontal instead of vertical when the alignment property
of my tabcontrol is set to left or right?
Thanks in advance
Zadkin
|
by: Simon Verona |
last post by:
I have a few hundred forms in my application. All are based on a custom base form class.
I decided that I wanted to globally change the look and feel of many of the controls in my application - including the tab control. I did this by writing a component that I attached to the form. The component has a "Start" function which takes the form as a paramater. This cycles through all the controls on the form, changes some of the properties...
|
by: =?Utf-8?B?QWxleCBLLg==?= |
last post by:
Hi all
In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two
tabpages. When I set tab control's Alignment property to Right, tab texts
(captions) disappear.
Does anybody know how to fix this?
I tried this on two computers, at work and at home, both with Windows XP
with latest service packs, and Framework 2.0 and 3.0 with latest SP.
|
by: bertie78 |
last post by:
Hi all,
New poster here! I'm having some difficulty updating a tabcontrol cross-threads.
The general idea is : the main thread is the owner of the tab control and the form controls. However, due to the vast amount of data to populate listviews within the tabs, I have created a worker thread (an implementation of a BackgroundWorker) to form the data and populate a tabcontrol 'offline', so that it doesn't interfer with (i.e freeze) the UI. ...
|
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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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: 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...
| |