gqstud79 Posted October 10, 2002 Posted October 10, 2002 I have a collection of controls that contains textboxes, dropdown comboboxes, and dropdownlist comboboxes. I would like to reset all of these controls so that any text that they contain is cleared out. I have figured out how to reset the textboxes and dropdown comboboxes, but I can't figure out how to reset the dropdownlist type. I thought I could just set the selectedindex = -1, but I can't seem to find the selectedindex property for a control. I tried using " ctrl.selectedindex = -1 " but that does not work. How can I find the selectedindex property within a control's properties? Quote
Moderators Robby Posted October 10, 2002 Moderators Posted October 10, 2002 try GetSelected() Quote Visit...Bassic Software
gqstud79 Posted October 10, 2002 Author Posted October 10, 2002 Sorry, I am pretty new to this. I can't find the "getselected" method. Do I need to include an "inherits" statement to access this? Quote
Moderators Robby Posted October 10, 2002 Moderators Posted October 10, 2002 Are you trying to reset a ListBox? If so .....ListBox1.Items.Clear() Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.