Click here to Skip to main content
15,903,203 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Nested Datagrid Error Checking - Help Pin
Dave Kreskowiak7-Sep-07 9:44
mveDave Kreskowiak7-Sep-07 9:44 
Questionmy Custom control cannot be created dynamically Pin
BooleanTrue7-Sep-07 3:04
professionalBooleanTrue7-Sep-07 3:04 
AnswerRe: my Custom control cannot be created dynamically Pin
Duncan Edwards Jones7-Sep-07 3:32
professionalDuncan Edwards Jones7-Sep-07 3:32 
GeneralRe: my Custom control cannot be created dynamically Pin
BooleanTrue7-Sep-07 3:36
professionalBooleanTrue7-Sep-07 3:36 
QuestionCombobox problem Pin
Xerox47-Sep-07 1:05
professionalXerox47-Sep-07 1:05 
AnswerRe: Combobox problem Pin
plural7-Sep-07 1:25
plural7-Sep-07 1:25 
GeneralRe: Combobox problem Pin
Xerox47-Sep-07 1:38
professionalXerox47-Sep-07 1:38 
GeneralRe: Combobox problem Pin
Tom Deketelaere7-Sep-07 2:22
professionalTom Deketelaere7-Sep-07 2:22 
make a class clsTowns with 2 variables: iid and sname
make 2 public property's in that class id and name
override tostring in the class:
public overrides tostring
return sname

then in the form get all the records from db put each record in a variable of you'r class
and add the class variable to the combobox
dim t as new clstowns
t.id=db.id
t.town=db.town
cbo.items.add(t)

then when you're user selects a item in the combobox the selecteditem contains you're variable of the type clstowns

dim t as clstowns = cbo.selecteditem

and the id can then be extracted from you clstowns variable
dim id as integer = t.id

then you can write it to the db in the persons table

this is only 1 way to do what you want there are other and perhaps better ways

hope this helps

If my help was helpfull let me know, if not let me know why.

The only way we learn is by making mistaks.

GeneralRe: Combobox problem Pin
Xerox47-Sep-07 2:34
professionalXerox47-Sep-07 2:34 
GeneralRe: Combobox problem Pin
Tom Deketelaere7-Sep-07 4:56
professionalTom Deketelaere7-Sep-07 4:56 
GeneralRe: Combobox problem Pin
plural7-Sep-07 2:25
plural7-Sep-07 2:25 
AnswerRe: Combobox problem Pin
Dave Kreskowiak7-Sep-07 5:49
mveDave Kreskowiak7-Sep-07 5:49 
GeneralRe: Combobox problem Pin
Xerox49-Sep-07 19:47
professionalXerox49-Sep-07 19:47 
QuestionCan any one help me for image displaying Pin
Senthil S7-Sep-07 1:01
Senthil S7-Sep-07 1:01 
AnswerRe: Can any one help me for image displaying Pin
SHatchard7-Sep-07 2:23
SHatchard7-Sep-07 2:23 
GeneralRe: Can any one help me for image displaying Pin
Tom Deketelaere7-Sep-07 2:28
professionalTom Deketelaere7-Sep-07 2:28 
Questionpop3 client Pin
nicetohaveyou7-Sep-07 0:45
nicetohaveyou7-Sep-07 0:45 
AnswerRe: pop3 client Pin
Vimalsoft(Pty) Ltd7-Sep-07 1:39
professionalVimalsoft(Pty) Ltd7-Sep-07 1:39 
AnswerRe: pop3 client Pin
Dave Kreskowiak7-Sep-07 5:19
mveDave Kreskowiak7-Sep-07 5:19 
QuestionCalling Stored SQL Functions from Visual Basic Pin
Mark Cabbage6-Sep-07 23:08
Mark Cabbage6-Sep-07 23:08 
AnswerRe: Calling Stored SQL Functions from Visual Basic Pin
Colin Angus Mackay6-Sep-07 23:58
Colin Angus Mackay6-Sep-07 23:58 
AnswerRe: Calling Stored SQL Functions from Visual Basic Pin
Duncan Edwards Jones7-Sep-07 2:51
professionalDuncan Edwards Jones7-Sep-07 2:51 
GeneralRe: Calling Stored SQL Functions from Visual Basic Pin
Mark Cabbage8-Sep-07 14:42
Mark Cabbage8-Sep-07 14:42 
Questiona case with checkbox (selected and shadow) Pin
nicetohaveyou6-Sep-07 21:24
nicetohaveyou6-Sep-07 21:24 
AnswerRe: a case with checkbox (selected and shadow) Pin
Tom Deketelaere6-Sep-07 22:05
professionalTom Deketelaere6-Sep-07 22:05 

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.