473,385 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2065
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.