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

Visual Basic

 
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 
QuestionRe: Synchronized controls logic Pin
Sonhospa11-Feb-12 15:18
Sonhospa11-Feb-12 15:18 
Hi Luc,

sorry for my late response, I had to find the time to figure that out and still find myself stuck.

Following your advice I defined the class "AirportRange"
VB
Public Class AirportRange
	Private _display As String
	Public Property Display() As String
		Get
			Return _display
		End Get
		Set(ByVal value As String)
			_display = value
		End Set
	End Property

	Private _value As Integer
	Public Property Value() As Integer
		Get
			Return _value
		End Get
		Set(ByVal value As Integer)
			_value = value
		End Set
	End Property
End Class
Storing the class in a generic list didn't work (e.g. I didn't know how to), so I used the designer and set up the class as a Project DataSource - after which VS creates an "AirportRangesBindingSource" from it. This I used as DataSource for the new comboBoxes on my main and child forms, setting DataMember and ValueMember to the properties as you suggested.

A problem arose: The forms show, but I can't define items for them - which results in no possibility to select any values from the ComboBox. The items obviously have to be defined in the class istself? At least when I open the "items" property, I get an error message saying it wouldn't be possible to set items as a DataSource is defined...

Can you help me out of that?
Thanks for now,
Mick
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 
GeneralRe: What should i install ? Pin
alejx9-Feb-12 7:23
alejx9-Feb-12 7:23 

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.