Click here to Skip to main content
15,890,717 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Outlook COM Addin deployment on Terminal server Pin
manisghouri29-Jun-08 23:45
manisghouri29-Jun-08 23:45 
GeneralListBox [modified] Pin
Saam_cse23-Jun-08 22:49
Saam_cse23-Jun-08 22:49 
QuestionRe: ListBox Pin
Steven J Jowett23-Jun-08 22:58
Steven J Jowett23-Jun-08 22:58 
GeneralRe: ListBox Pin
Christian Graus24-Jun-08 0:05
protectorChristian Graus24-Jun-08 0:05 
Questionrotating an image Pin
rohit tiwary23-Jun-08 20:53
rohit tiwary23-Jun-08 20:53 
AnswerRe: rotating an image Pin
Christian Graus23-Jun-08 21:11
protectorChristian Graus23-Jun-08 21:11 
AnswerRe: rotating an image Pin
Christian Graus23-Jun-08 21:51
protectorChristian Graus23-Jun-08 21:51 
QuestionComboBox-show and set the selected value from an SQL statement Pin
kjalandoon23-Jun-08 20:52
kjalandoon23-Jun-08 20:52 
I'm trying to set the selected value from a combo box that is populated from my database,
i cant seem to find a way to do that.

I'm using this to populate my combo box:
Private Sub PopulateCountry()
Dim country As New Client
Dim contryList As OdbcDataReader = country.mpopulateCountry()
Dim objCountry As String
If contryList.HasRows Then
contryList.Read()
Do While contryList.Read
objCountry = contryList(0)
cbxCCountry.Items.Add(objCountry)
cbxCountry.Items.Add(objCountry)
Loop
End If
End Sub


And calling this method(PopulateCountry()) in the form load and then using this to set the value upon my button btnAddToDB:
Dim country As String
country = cbxCCountry.SelectedValue

Any suggestion guys?
AnswerRe: ComboBox-show and set the selected value from an SQL statement Pin
nishkarsh_k23-Jun-08 21:05
nishkarsh_k23-Jun-08 21:05 
AnswerRe: ComboBox-show and set the selected value from an SQL statement Pin
kjalandoon24-Jun-08 18:42
kjalandoon24-Jun-08 18:42 
QuestionHow to chnage the border of combo box Pin
mamatha97anju23-Jun-08 18:50
mamatha97anju23-Jun-08 18:50 
AnswerRe: How to chnage the border of combo box Pin
Christian Graus23-Jun-08 19:05
protectorChristian Graus23-Jun-08 19:05 
AnswerRe: How to chnage the border of combo box Pin
Anubhava Dimri23-Jun-08 21:25
Anubhava Dimri23-Jun-08 21:25 
GeneralRe: How to chnage the border of combo box Pin
mamatha97anju23-Jun-08 21:31
mamatha97anju23-Jun-08 21:31 
GeneralRe: How to chnage the border of combo box Pin
Christian Graus23-Jun-08 22:24
protectorChristian Graus23-Jun-08 22:24 
GeneralRe: How to chnage the border of combo box Pin
Anubhava Dimri23-Jun-08 23:06
Anubhava Dimri23-Jun-08 23:06 
QuestionVB .NET switching from MS Access to SQL Server Pin
Ekjon23-Jun-08 12:12
Ekjon23-Jun-08 12:12 
AnswerRe: VB .NET switching from MS Access to SQL Server Pin
Christian Graus23-Jun-08 13:09
protectorChristian Graus23-Jun-08 13:09 
QuestionProblems updating database Pin
AAGTHosting23-Jun-08 10:49
AAGTHosting23-Jun-08 10:49 
AnswerRe: Problems updating database Pin
Christian Graus23-Jun-08 11:30
protectorChristian Graus23-Jun-08 11:30 
AnswerRe: Problems updating database Pin
SteveNY25-Jun-08 4:50
SteveNY25-Jun-08 4:50 
QuestionHandling Multiple Controls with Multiple Buttons Pin
Phantom71523-Jun-08 10:16
Phantom71523-Jun-08 10:16 
AnswerRe: Handling Multiple Controls with Multiple Buttons Pin
Christian Graus23-Jun-08 11:31
protectorChristian Graus23-Jun-08 11:31 
AnswerRe: Handling Multiple Controls with Multiple Buttons Pin
Luc Pattyn23-Jun-08 14:32
sitebuilderLuc Pattyn23-Jun-08 14:32 
AnswerRe: Handling Multiple Controls with Multiple Buttons Pin
McPisces24-Jun-08 8:43
McPisces24-Jun-08 8:43 

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.