Click here to Skip to main content
15,887,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problems with default DataGridView Pin
Luc Pattyn11-Feb-12 4:54
sitebuilderLuc Pattyn11-Feb-12 4:54 
GeneralRe: Problems with default DataGridView Pin
Member 860517711-Feb-12 5:00
Member 860517711-Feb-12 5:00 
AnswerRe: Problems with default DataGridView Pin
Luc Pattyn11-Feb-12 5:10
sitebuilderLuc Pattyn11-Feb-12 5:10 
AnswerRe: Problems with default DataGridView Pin
Sonhospa13-Feb-12 2:13
Sonhospa13-Feb-12 2:13 
QuestionSpareRoom(VBPmanan15) Pin
manan112211-Feb-12 3:00
manan112211-Feb-12 3:00 
AnswerRe: SpareRoom(VBPmanan15) Pin
Eddy Vluggen11-Feb-12 3:33
professionalEddy Vluggen11-Feb-12 3:33 
QuestionSynchronized controls logic Pin
Sonhospa11-Feb-12 0:41
Sonhospa11-Feb-12 0:41 
AnswerRe: Synchronized controls logic Pin
Luc Pattyn11-Feb-12 2:17
sitebuilderLuc Pattyn11-Feb-12 2:17 
AFAIK you can achieve that by using simple data binding:
- create a small class describing each item, with at least two properties (e.g. string Display, and int Value);
- store your items in a generic List;
- for both ComboBoxes set the DataSource to that list, and the DisplayMember and ValueMember to the names of the relevant properties. The DisplayMember is what will be shown, the ValueMember what will be returned as the SelectedValue.

With both ComboBoxes set up identically, they will act like one, i.e. fully synchronized; however each of them will fire its events. So you can deal with each of them as if the other didn't exist.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.


modified 11-Feb-12 8:57am.

QuestionRe: Synchronized controls logic Pin
Sonhospa11-Feb-12 15:18
Sonhospa11-Feb-12 15:18 
AnswerRe: Synchronized controls logic Pin
Luc Pattyn11-Feb-12 15:47
sitebuilderLuc Pattyn11-Feb-12 15:47 
QuestionRe: Synchronized controls logic Pin
Sonhospa11-Feb-12 23:36
Sonhospa11-Feb-12 23:36 
AnswerRe: Synchronized controls logic Pin
Luc Pattyn12-Feb-12 0:04
sitebuilderLuc Pattyn12-Feb-12 0:04 
GeneralRe: Synchronized controls logic Pin
Sonhospa12-Feb-12 1:35
Sonhospa12-Feb-12 1:35 
QuestionOLE Automation error 438 when registering a XLL using custom action Pin
tagad10-Feb-12 6:17
tagad10-Feb-12 6:17 
QuestionHow do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Jörgen Andersson9-Feb-12 22:33
professionalJörgen Andersson9-Feb-12 22:33 
AnswerRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Luc Pattyn9-Feb-12 23:36
sitebuilderLuc Pattyn9-Feb-12 23:36 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Jörgen Andersson9-Feb-12 23:47
professionalJörgen Andersson9-Feb-12 23:47 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Luc Pattyn9-Feb-12 23:59
sitebuilderLuc Pattyn9-Feb-12 23:59 
AnswerRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Dave Kreskowiak10-Feb-12 2:11
mveDave Kreskowiak10-Feb-12 2:11 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Jörgen Andersson10-Feb-12 3:05
professionalJörgen Andersson10-Feb-12 3:05 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Dave Kreskowiak10-Feb-12 3:33
mveDave Kreskowiak10-Feb-12 3:33 
AnswerRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
yanghua9414-Feb-12 5:42
yanghua9414-Feb-12 5:42 
QuestionvsFlexgrid 8 ActiveX Pin
Jim Giles9-Feb-12 10:39
Jim Giles9-Feb-12 10:39 
QuestionWhat should i install ? Pin
alejx9-Feb-12 3:55
alejx9-Feb-12 3:55 
AnswerRe: What should i install ? Pin
Simon_Whale9-Feb-12 4:22
Simon_Whale9-Feb-12 4:22 

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.