VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
making Combo boxes read only Posted by apenticoff on 18 Oct 2005 at 11:29 AM
I have an application where the user can use the entry form for viewing archived data. I would like to be able to lock the controls without graying them out by disabling them. Is there any way to do this? Do I need to make a new control copied from the combo box with new methods? If so can you provide sample code to accomplish this?


Thanks, Art
Report
Re: making Combo boxes read only Posted by dokken2 on 19 Oct 2005 at 4:50 AM
: I have an application where the user can use the entry form for viewing archived data. I would like to be able to lock the controls without graying them out by disabling them. Is there any way to do this? Do I need to make a new control copied from the combo box with new methods? If so can you provide sample code to accomplish this?
:
:
: Thanks, Art
:

There is a 'locked' property that can be set at design time.

Report
Re: making Combo boxes read only Posted by apenticoff on 20 Oct 2005 at 8:23 AM
: : I have an application where the user can use the entry form for viewing archived data. I would like to be able to lock the controls without graying them out by disabling them. Is there any way to do this? Do I need to make a new control copied from the combo box with new methods? If so can you provide sample code to accomplish this?
: :
: :
: : Thanks, Art
: :
:
: There is a 'locked' property that can be set at design time.
:
:
The "Locked" property pertains to Moving or resizing a control. It does not change its input capability. I have found a solution. I have a method that is tied to the "Enter" event on every control that on Enter moves the focus to a "close form" button. This has the effect of locking the entire screen but is a little messy. If someone has a better way, I'd like to hear it. Thanks, Art



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.