473,473 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disabling controls without changing their appearance

Don
is there any way to disable the controls on a form without changing their appearance? i would like to make it impossible for a user to click buttons and edit text boxes while the controls retain their normal appearance. When disabled, the text in text boxes becomes difficult to read

also, is there a way to disable the mouse cursor at certain times

thanks
Jul 21 '05 #1
2 2073
No, b/c the thinking is that you don't want the user to click it if its
disabled so you give them a UI Cue. You could set module level booleans
though, m_Enabled and on each control's events, if (!m_Enabled){return;}

This would effectively do the same thing.
"Don" <an*******@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
is there any way to disable the controls on a form without changing their appearance? i would like to make it impossible for a user to click buttons
and edit text boxes while the controls retain their normal appearance. When
disabled, the text in text boxes becomes difficult to read.
also, is there a way to disable the mouse cursor at certain times.

thanks

Jul 21 '05 #2
No, b/c the thinking is that you don't want the user to click it if its
disabled so you give them a UI Cue. You could set module level booleans
though, m_Enabled and on each control's events, if (!m_Enabled){return;}

This would effectively do the same thing.
"Don" <an*******@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.com...
is there any way to disable the controls on a form without changing their appearance? i would like to make it impossible for a user to click buttons
and edit text boxes while the controls retain their normal appearance. When
disabled, the text in text boxes becomes difficult to read.
also, is there a way to disable the mouse cursor at certain times.

thanks

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sleigh | last post by:
Hello, I'm building a web application that will build a dynamic form based upon questions in a database. This form will have several different sections that consist of a panel containing one to...
5
by: Cecilia Bergengruen | last post by:
2 questions: 1)I inserted a menu in an mdi window form. I right clicked on a menu item and pressed edit names. I therefore edited all my menu item names. Then I right clicked and pressed edit...
3
by: TC | last post by:
I am buiding a control which contains many constituent controls. In response to certain events, several of the constituent controls move and change their appearance. I would like the changes to...
1
by: Don | last post by:
is there any way to disable the controls on a form without changing their appearance? i would like to make it impossible for a user to click buttons and edit text boxes while the controls retain...
5
by: Chris Saunders | last post by:
I'm hoping that this question is not off topic on this newsgroup. If it is please redirect me if you know an appropriate group. I'm actually writing a program in another language (Eiffel) but if...
5
by: Doc John | last post by:
I need to create several Windows Forms and I'm thinking of creating a base Form from which I can derive all Forms. Is it possible to include something in that Base Form so that all Forms I create...
2
by: sudhivns | last post by:
Hi, I'm using the Webbrowser control in UI to display certain HTML formatted text. While displaying i have used the fixed font/color in HTML tag text. But wanted to display the text format...
5
by: jehugaleahsa | last post by:
Hello: I am sure this question comes up a lot. I need to disable the controls on my Windows forms so that when the BindingSource is empty some the controls bound to it will be disabled. This...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
1
isladogs
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.