I have used ADO.NET and SQL SERVER in my small application.
Details as below
Now to my question
1.)I have a combo box where I want to have the list of PID
How to connect it to data source.
2.) Is combo box ok. or I am supposed to go for DBCombobox
Kindly let me know
Thank You
Hemalatha
Details as below
VB.NET:
Imports System.Data
Imports System.Data.SqlClient
Public Class Form1
Inherits System.Windows.Forms.Form
Dim MyCon As SqlConnection
Dim MySelect As SqlCommand
Dim MyDr As SqlDataReader
MyCon = New SqlConnection("server=ddd;Database=BankDetails;Trusted_Connection=True;")
MyCon.Open()
MySelect = New SqlCommand("select distinct(pid) from CustomerDetails", MyCon)
Now to my question
1.)I have a combo box where I want to have the list of PID
How to connect it to data source.
2.) Is combo box ok. or I am supposed to go for DBCombobox
Kindly let me know
Thank You
Hemalatha
Last edited by a moderator: