Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET Logging Framework (database) Pin
Dave Kreskowiak4-Aug-05 6:28
mveDave Kreskowiak4-Aug-05 6:28 
GeneralRe: .NET Logging Framework (database) Pin
Steve Maier4-Aug-05 6:42
professionalSteve Maier4-Aug-05 6:42 
GeneralMatch percentage between two string Pin
Member 17237104-Aug-05 5:50
Member 17237104-Aug-05 5:50 
GeneralRe: Match percentage between two string Pin
Dave Kreskowiak4-Aug-05 6:24
mveDave Kreskowiak4-Aug-05 6:24 
GeneralRe: Match percentage between two string Pin
Patric_J5-Aug-05 5:23
Patric_J5-Aug-05 5:23 
GeneralMDI Form Toggling Using Custom Buttons Pin
lpointer4-Aug-05 5:06
lpointer4-Aug-05 5:06 
GeneralRe: MDI Form Toggling Using Custom Buttons Pin
Luis Alonso Ramos4-Aug-05 5:46
Luis Alonso Ramos4-Aug-05 5:46 
GeneralDropDownList comboBoxes Pin
patgo4-Aug-05 4:14
patgo4-Aug-05 4:14 
Hello, all!

I have 2 comboBoxes with the same itemCollection: Px, Py and Pz. They where built so that if I choose Px in comboBox1 the itemCollection in comboBox2 is only Py and Pz. To do this I created an event (DropDown event) for each of the comboBoxes that clears the itemCollection of the other comboBox and rebuilts it without the selectedItem of the comboBox that triggered the event.

This works just fine if the comboBoxes are DropDown, but it doesn't prevent the user from writing anything in the comboBoxes!

To make the comboBoxes readOnly I had to make them DropDownList, but when I click one of them the selectedItem disappears, wich means I can leave the comboBox without any selectedItem!

Any ideas on solving this problem? Or do I have to keep the comboBoxes DropDown and create another event (which one?) that prevents the user from writing anything in the comboBoxes?

Thank you in advance,
Patrícia Gonçalves
GeneralRe: DropDownList comboBoxes Pin
mav.northwind4-Aug-05 5:30
mav.northwind4-Aug-05 5:30 
GeneralRe: DropDownList comboBoxes Pin
patgo5-Aug-05 2:30
patgo5-Aug-05 2:30 
Generalindex of a Row Pin
zaboboa4-Aug-05 4:07
zaboboa4-Aug-05 4:07 
GeneralRe: index of a Row Pin
Guffa4-Aug-05 4:38
Guffa4-Aug-05 4:38 
GeneralRe: index of a Row Pin
Alomgir Miah4-Aug-05 4:45
Alomgir Miah4-Aug-05 4:45 
GeneralRe: index of a Row Pin
zaboboa4-Aug-05 6:46
zaboboa4-Aug-05 6:46 
QuestionHow to get Attribute in XPath ? Pin
Anonymous4-Aug-05 3:48
Anonymous4-Aug-05 3:48 
AnswerMissed XML Part Pin
Anonymous4-Aug-05 4:13
Anonymous4-Aug-05 4:13 
GeneralRe: Missed XML Part Pin
Kevin McFarlane4-Aug-05 4:48
Kevin McFarlane4-Aug-05 4:48 
GeneralDataView.Sort not working Pin
livez4-Aug-05 3:21
livez4-Aug-05 3:21 
GeneralRe: DataView.Sort not working Pin
Alomgir Miah4-Aug-05 4:05
Alomgir Miah4-Aug-05 4:05 
GeneralRe: DataView.Sort not working Pin
livez4-Aug-05 4:13
livez4-Aug-05 4:13 
GeneralRe: DataView.Sort not working Pin
Alomgir Miah4-Aug-05 4:45
Alomgir Miah4-Aug-05 4:45 
GeneralRe: DataView.Sort not working Pin
livez4-Aug-05 4:59
livez4-Aug-05 4:59 
GeneralClass Constructor not getting called when creating array of class object Pin
Mutty4-Aug-05 3:15
Mutty4-Aug-05 3:15 
GeneralRe: Class Constructor not getting called when creating array of class object Pin
Sean Michael Murphy4-Aug-05 3:32
Sean Michael Murphy4-Aug-05 3:32 
GeneralRe: Class Constructor not getting called when creating array of class object Pin
Mutty4-Aug-05 4:45
Mutty4-Aug-05 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.