473,396 Members | 2,017 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,396 software developers and data experts.

Lock controls i.e. combo box etc

Hi

I am trying to lock fields on my form (VB.NET), so that they cannot be
edited by the user. So far I have accomplished my goal for the text box
by setting its read only property. But what should I do for combo box
and mask edit box (added as an reference). list box etc. I don't want to
use the enabled property, since that makes the controls text to fade or
not seen prominently.

Does anyone know how can we achieve this in VB.NET ??

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
3 14009
Hello,

"Harshil Patel" <ha***********@ptdtechnology.com> schrieb:
I am trying to lock fields on my form (VB.NET), so
that they cannot be edited by the user. So far I
have accomplished my goal for the text box
by setting its read only property. But what should
I do for combo box and mask edit box (added
as an reference). list box etc. I don't want to use the enabled property, since that makes
the controls text to fade or not seen prominently.


The colors depend on the system settings. If the user doesn't like them, he
can adjust them.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
You have to do the following for ComboBox

'Set the following property in the property window or at form load
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList

Ganesh J. Acharya
& Student at karrox 2003 Evening, Dombivali Branch, INDIA
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message news:<O$*************@TK2MSFTNGP10.phx.gbl>...
Hello,

"Harshil Patel" <ha***********@ptdtechnology.com> schrieb:
I am trying to lock fields on my form (VB.NET), so
that they cannot be edited by the user. So far I
have accomplished my goal for the text box
by setting its read only property. But what should
I do for combo box and mask edit box (added
as an reference). list box etc.

I don't want to use the enabled property, since that makes
the controls text to fade or not seen prominently.


The colors depend on the system settings. If the user doesn't like them, he
can adjust them.

Nov 20 '05 #3
Hi Herfried,

|| || I don't want to use the <enabled> property, since that
|| || makes the controls text to fade or not seen prominently.
||
|| The colors depend on the system settings.

I didn't know the system has settings for ghosted controls. ;-)

Regards,
Fergus
Nov 20 '05 #4

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

Similar topics

2
by: CSDunn | last post by:
Hello, In an Access 2000 ADP subform, I have a set of two Radio buttons in a single group that are bound to a field called 'Completed'. The Completed field comes from an SQL Server 2000 table, is...
7
by: Saintor | last post by:
What I do now is I put a value in the tag property, and using the form_current event, I run through all controls properties until the ones with the required tag value are met. Sound OK in theory,...
2
by: Andy | last post by:
newbie question here--- In Table1 I have basic membership information. Table 2 is 'event' information. I have a form for Table2 with a combo box, where the user will pick a member from Table1, and...
8
by: Roy Padgett | last post by:
I have a combo box where users select the customer name and can either go to the customer's info or open a list of the customer's orders. The RowSource for the combo box was a simple pass-through...
4
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates...
6
by: ian_jacobsen | last post by:
I have a control that is derived from the standard ComboBox. I want to lock or suppress the DropDown when the arrow button is clicked without disabling the control. This is related to another...
1
by: teddysnips | last post by:
Visual Studio 2005 I have a moderately complicated form. It has four User Controls, which are (somewhat simplified): 1. A tree control showing an employee hierarchy Below a tab strip with...
3
by: bluethunder | last post by:
Hello to all of you guys. I have a problem in the system that i made. How will i going to prevent the deleting of item in the combo box w/out disabling the backspace and delete key in keyboard using...
6
by: jmartmem | last post by:
Greetings, I have an Access 2002 continuous form called "Project Update Form" in which users can update project values presented in a series of combo boxes and text boxes. Three of the combo...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
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...
0
agi2029
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,...

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.