Click here to Skip to main content
15,885,767 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProblem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd16-Jun-08 22:06
professionalVimalsoft(Pty) Ltd16-Jun-08 22:06 
AnswerRe: Problem Retrieving a Connection String from App.Config Pin
Andy_L_J17-Jun-08 2:05
Andy_L_J17-Jun-08 2:05 
GeneralRe: Problem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd17-Jun-08 3:07
professionalVimalsoft(Pty) Ltd17-Jun-08 3:07 
GeneralRe: Problem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd17-Jun-08 3:14
professionalVimalsoft(Pty) Ltd17-Jun-08 3:14 
AnswerRe: Problem Retrieving a Connection String from App.Config Pin
Mark Churchill17-Jun-08 3:14
Mark Churchill17-Jun-08 3:14 
GeneralRe: Problem Retrieving a Connection String from App.Config Pin
Vimalsoft(Pty) Ltd17-Jun-08 4:59
professionalVimalsoft(Pty) Ltd17-Jun-08 4:59 
AnswerRe: Problem Retrieving a Connection String from App.Config Pin
Noctris18-Jun-08 0:39
Noctris18-Jun-08 0:39 
Questioncombobox Problem.... Pin
soniasan16-Jun-08 21:25
soniasan16-Jun-08 21:25 
I am working in window based application

funFillCombo_prod(CmbProduct, "select productid,product from product_master where status=1")
CmbProduct.ValueMember = "productid"
CmbProduct.DisplayMember = "product"
CmbProduct.SelectedIndex = 0



In function I fill the combobox ……… by dataset
Public Function funFillCombo_prod(ByVal cmbCombo As ComboBox, ByVal strsql As String) As Boolean
Try
Dim intI As Integer
If con.State <> ConnectionState.Open Then con.Open()
GDataAdapter = New SqlDataAdapter(strsql, con)
GDataSet = New DataSet()
GDataAdapter.Fill(GDataTable)
cmbCombo.DataSource = GDataTable.DefaultView
funFillCombo_prod = True
Catch ex As Exception
MsgBox(Err.Source & " : " & Err.Description, vbInformation, g_MSG_Title)
funFillCombo_prod = False
Finally
GDataSet = Nothing
End Try
Exit Function
End Function





Private Sub CmbProduct_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmbProduct.SelectedIndexChanged
If CmbProduct.Items.Count > 0 Then
If CmbProduct.SelectedIndex <> -1 Then
MessageBox.Show(CmbProduct.SelectedValue.ToString())
End If
End If

End Sub




Problem is that in CmbProduct_SelectedIndexChanged I want valumember of a combobox

But msgbox which I write in that event is giving me the desired o/p but problem is that…
For two times I got this message System.Data.DatarowView. then I got the valuemember which I require,


Please tell me how to solve this System.Data.DatarowView. Problem
AnswerRe: combobox Problem.... Pin
Christian Graus17-Jun-08 2:09
protectorChristian Graus17-Jun-08 2:09 
AnswerRe: combobox Problem.... Pin
SamRST18-Jun-08 4:40
SamRST18-Jun-08 4:40 
Questioncreate temp file Pin
Milind Panchal16-Jun-08 20:45
Milind Panchal16-Jun-08 20:45 
AnswerRe: create temp file Pin
Ashfield16-Jun-08 21:08
Ashfield16-Jun-08 21:08 
AnswerRe: create temp file Pin
Christian Graus17-Jun-08 2:09
protectorChristian Graus17-Jun-08 2:09 
QuestionHow to Insert and Update DateTimePicker to SQL Database vai DSN with VB.NET Pin
Kosaly16-Jun-08 20:28
Kosaly16-Jun-08 20:28 
AnswerRe: How to Insert and Update DateTimePicker to SQL Database vai DSN with VB.NET Pin
Christian Graus17-Jun-08 2:10
protectorChristian Graus17-Jun-08 2:10 
QuestionHow to encrypt and decrypt MS-Access data using blowfish Pin
charanbura16-Jun-08 17:54
charanbura16-Jun-08 17:54 
AnswerRe: How to encrypt and decrypt MS-Access data using blowfish Pin
paas17-Jun-08 7:15
paas17-Jun-08 7:15 
Questionstup problem Pin
asha_s16-Jun-08 13:02
asha_s16-Jun-08 13:02 
AnswerRe: stup problem Pin
Christian Graus16-Jun-08 15:01
protectorChristian Graus16-Jun-08 15:01 
QuestionRun an exe program from my VB application Pin
Assaf8216-Jun-08 11:33
Assaf8216-Jun-08 11:33 
AnswerRe: Run an exe program from my VB application Pin
Christian Graus16-Jun-08 11:35
protectorChristian Graus16-Jun-08 11:35 
QuestionIE VS MOZILLA Pin
kasbaba16-Jun-08 8:49
kasbaba16-Jun-08 8:49 
AnswerRe: IE VS MOZILLA PinPopular
Luc Pattyn16-Jun-08 8:57
sitebuilderLuc Pattyn16-Jun-08 8:57 
QuestionSystray icons Pin
gq_the_fallen_angel16-Jun-08 7:44
gq_the_fallen_angel16-Jun-08 7:44 
AnswerRe: Systray icons Pin
Luc Pattyn16-Jun-08 8:59
sitebuilderLuc Pattyn16-Jun-08 8:59 

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.