hi my name is vishal.
I am currently converting vb6 with ms access to c# with sql server 2008. i am new to horizontal scroll bar in c# with windows forms.
In Vb6 i have written code for horizontal scrollbar as follows:
where myRec refers to recordset. The recordset is opening a table named Reprocess in my database.
Now i do know how to use horizontal scrollbar in c# with sql server 2008 as i used in vb6,adodb with ms access.
For myRec.EOF=false in c#=> datatable.rows. count==-1.
Can anyone tell me what is for:
1)myRec.Move scrRec.Value in c#.
Anyone please help me.
I am currently converting vb6 with ms access to c# with sql server 2008. i am new to horizontal scroll bar in c# with windows forms.
In Vb6 i have written code for horizontal scrollbar as follows:
Code:
myRec.MoveFirst
myRec.Move scrRec.Value
lblRecPos.Caption = "Record Pos ( " & scrRec.Value + 1 & "/" & myRec.RecordCount & " )"
If (myRec.EOF = False) Then
txtMName.Enabled = False
txtMSno.Enabled = False
cboVirology.Enabled = False
txtMName.Text = myRec("ManufacturerName").Value
txtMSno.Text = myRec("MFR_SL_No").Value
cboVirology.Text = myRec("volume").Value
myRec.MoveNext
End If
Exit Sub
Now i do know how to use horizontal scrollbar in c# with sql server 2008 as i used in vb6,adodb with ms access.
For myRec.EOF=false in c#=> datatable.rows. count==-1.
Can anyone tell me what is for:
1)myRec.Move scrRec.Value in c#.
Anyone please help me.
Comment