Click here to Skip to main content
15,915,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralLoad at Start up ! Pin
dayWalker27-Dec-02 0:01
dayWalker27-Dec-02 0:01 
QuestionAdapter.Fill ? Pin
Nick Seng26-Dec-02 17:10
Nick Seng26-Dec-02 17:10 
QuestionUpgrade to Visual Studio 2003? Pin
James Williams26-Dec-02 7:24
James Williams26-Dec-02 7:24 
AnswerRe: Upgrade to Visual Studio 2003? Pin
Michael P Butler26-Dec-02 7:43
Michael P Butler26-Dec-02 7:43 
GeneralCould anybody help me in visual basic Pin
suresh_sathya25-Dec-02 23:27
suresh_sathya25-Dec-02 23:27 
QuestionHow can I bind data to Groupbox of radiobuttons Pin
intibnin24-Dec-02 22:57
intibnin24-Dec-02 22:57 
AnswerRe: How can I bind data to Groupbox of radiobuttons Pin
Tatham26-Dec-02 6:31
Tatham26-Dec-02 6:31 
GeneralRe: How can I bind data to Groupbox of radiobuttons Pin
intibnin26-Dec-02 20:45
intibnin26-Dec-02 20:45 
Thank Tatham for help.

Well, the problem i encountred is in VB.NET Form.
I try to clarify the problem, so the dataset used in form is filled programmatically. I create a method for binding fields to dataset as follows :

Private Sub BindingFields()
cn = New SqlClient.SqlConnection(constring)
Dim da As New SqlClient.SqlDataAdapter("select * from parametres where type = 1 order by code ", cn)

'Note : Mydataset, MyBuilder and MyAdapter are declared public objects

Mydataset = New DataSet()
MyAdapter = New SqlClient.SqlDataAdapter("select * from client", cn)
MyBuilder = New SqlClient.SqlCommandBuilder(MyAdapter)
MyAdapter.Fill(Mydataset, "client")

TextBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.r01_codcli"))
TextBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.r01_adrcli"))
TextBox3.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.tel1"))
TextBox4.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.r01_nomcli"))
TextBox5.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.tel2"))
TextBox6.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.fax"))
TextBox7.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.dat_cre"))
da.Fill(Mydataset, "Categorie")
ComboBox1.DataSource = Mydataset
ComboBox1.DisplayMember = "Categorie.libelle"
ComboBox1.ValueMember = "categorie.cat_cli"

'*****************************
'The problem is here
'Client.stop_serv is 1 or 2
'******************************
GroupBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Mydataset, "client.stop_serv"))

End Sub

this code does not work.


Thank you in advance




***
GeneralRe: How can I bind data to Groupbox of radiobuttons Pin
Tatham26-Dec-02 20:55
Tatham26-Dec-02 20:55 
QuestionHow Can i detect return key in datagridTextBoxColumn Pin
intibnin24-Dec-02 22:49
intibnin24-Dec-02 22:49 
AnswerRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham26-Dec-02 6:44
Tatham26-Dec-02 6:44 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
intibnin30-Dec-02 4:55
intibnin30-Dec-02 4:55 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham30-Dec-02 5:03
Tatham30-Dec-02 5:03 
Generaltoolbar_button click Pin
Anonymous24-Dec-02 10:30
Anonymous24-Dec-02 10:30 
GeneralRe: toolbar_button click Pin
Nick Seng25-Dec-02 15:48
Nick Seng25-Dec-02 15:48 
GeneralLabelArray and MenuItemArray Pin
Ilan Ehrenfeld23-Dec-02 23:34
Ilan Ehrenfeld23-Dec-02 23:34 
GeneralRe: LabelArray and MenuItemArray Pin
Nick Seng25-Dec-02 15:40
Nick Seng25-Dec-02 15:40 
GeneralLaunching executable file Pin
Desmond23-Dec-02 7:42
Desmond23-Dec-02 7:42 
GeneralRe: Launching executable file Pin
Ray Cassick23-Dec-02 9:29
Ray Cassick23-Dec-02 9:29 
QuestionHow to pass a ADO object as a parameter to a function? Pin
Anonymous22-Dec-02 17:25
Anonymous22-Dec-02 17:25 
AnswerRe: How to pass a ADO object as a parameter to a function? Pin
Nick Seng22-Dec-02 17:57
Nick Seng22-Dec-02 17:57 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Anonymous22-Dec-02 18:40
Anonymous22-Dec-02 18:40 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Nick Seng22-Dec-02 20:01
Nick Seng22-Dec-02 20:01 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Anonymous22-Dec-02 20:41
Anonymous22-Dec-02 20:41 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Ray Cassick23-Dec-02 7:02
Ray Cassick23-Dec-02 7:02 

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.