|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
If else and what ever :( (Newbie)Well, here is somewhat a newbie question that im sure a lot of people will know how to answer! i have a simple form in a windows application i created using VS2005. (visual basic) in that form i created two check boxes. what im trying to do is: when a user click the first one - then a predefined field will open for him to fill. when a user click the 2nd one - other set of predefined fields will be open while the other ones stay diabled. and vice versa. could anyone send me a sample code of how to do this so i can use it on my own app? Cheers!! 50. Hi 5070707,
To simplify things, what you need is a method called "DisableAll". This method disables all of the fields on the form (myfield.Enabled = False). Then you handle the "Click" message of either check box, calling "DisableAll" in the handler and then making the field you want enabled, enabled (myfield.Enabled = True) Robin 5070***@gmail.com wrote:
> in that form i created two check boxes. That sounds like you want radio buttons (mutually exclusive) rather than > what im trying to do is: > when a user click the first one - then a predefined field will open > for him to fill. > when a user click the 2nd one - other set of predefined fields will be > open while the other ones stay diabled. > > and vice versa. checkboxes (more than one can be checked) in the UI. Andrew
Process.Start woes in ASP.Net application
regular expression question Row Update Not Updating Data source System tray icon does not always show when starting app when Windows starts Best method to parse this flat file Suggestions to learn vb.net Drawing One Simple Little Line File.OpenWrite vs StreamWriter Datasource question Access DB Upgrade |
|||||||||||||||||||||||