Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to expand/decompress RAR archives with C#? Pin
Uwe Keim4-May-07 11:09
sitebuilderUwe Keim4-May-07 11:09 
AnswerRe: How to expand/decompress RAR archives with C#? Pin
Uwe Keim4-May-07 11:04
sitebuilderUwe Keim4-May-07 11:04 
Questionloading form 1 after the other Pin
samreengr84-May-07 10:50
samreengr84-May-07 10:50 
AnswerRe: loading form 1 after the other Pin
MoustafaS4-May-07 12:36
MoustafaS4-May-07 12:36 
AnswerRe: loading form 1 after the other Pin
Arun.Immanuel4-May-07 16:12
Arun.Immanuel4-May-07 16:12 
AnswerRe: loading form 1 after the other Pin
AFSEKI7-May-07 3:13
AFSEKI7-May-07 3:13 
Questionhow to align the label controls in group box according to their text size Pin
engsrini4-May-07 10:35
engsrini4-May-07 10:35 
QuestionComboBox ... Pin
mostafa_h4-May-07 8:44
mostafa_h4-May-07 8:44 
Hi All

I've 2 Table , table1 id_main[int], Id_detail
table2 Id_detail[int] , goods[nvarchar] and there is a relation between table1.Id_detail and table2.Id_detail
now in the form :
i use a textbox for id_main and a combobox for goods to show it

i want to use a button to move between records for e.g. next ,

in form1_load i wrote :
...<br />
SqlDataReader drSQL;<br />
string strID;<br />
string strID;<br />
 try<br />
  {<br />
    strSQL = "SELECT * FROM table1";<br />
    SqlCommand cmd = new SqlCommand(strSQL,myconnection);<br />
    myconnection.Open();<br />
    drSQL = cmSQL.ExecuteReader();<br />
     if (drSQL.Read())<br />
       {<br />
          txtIndex.Text = drSQL["id_main"].ToString();<br />
          strID = drSQL["Id_detail"].ToString();<br />
          //this is a function for getting name of goods<br />
          FindItemByID(cbxGoods, strID)<br />
       }<br />
...


in Next_click (...) event , How can navigate between record .
private void btNext_Click(object sender, EventArgs e)<br />
  {<br />
    ??<br />
  }


thanx a lot



s_mostafa_h

AnswerRe: ComboBox ... Pin
AFSEKI7-May-07 3:14
AFSEKI7-May-07 3:14 
QuestionDesktop icon positioning/re-positioning... Pin
SeanWcom4-May-07 8:20
SeanWcom4-May-07 8:20 
AnswerRe: Desktop icon positioning/re-positioning... Pin
Luc Pattyn4-May-07 8:53
sitebuilderLuc Pattyn4-May-07 8:53 
GeneralRe: Desktop icon positioning/re-positioning... Pin
SeanWcom4-May-07 9:39
SeanWcom4-May-07 9:39 
AnswerRe: Desktop icon positioning/re-positioning... Pin
AFSEKI7-May-07 3:17
AFSEKI7-May-07 3:17 
GeneralRe: Desktop icon positioning/re-positioning... Pin
SeanWcom7-May-07 3:21
SeanWcom7-May-07 3:21 
QuestionCreate ToolBar? Pin
god4k4-May-07 8:14
god4k4-May-07 8:14 
Questionnetwork Pin
Jeeva Jose4-May-07 7:15
Jeeva Jose4-May-07 7:15 
AnswerRe: network Pin
Dave Kreskowiak4-May-07 7:58
mveDave Kreskowiak4-May-07 7:58 
AnswerRe: network Pin
Ian Shlasko4-May-07 8:11
Ian Shlasko4-May-07 8:11 
GeneralRe: network Pin
Paul Conrad4-May-07 16:20
professionalPaul Conrad4-May-07 16:20 
Questionhow to execute another application thru C#? Pin
Eddymvp4-May-07 5:54
Eddymvp4-May-07 5:54 
AnswerRe: how to execute another application thru C#? Pin
Arun.Immanuel4-May-07 6:05
Arun.Immanuel4-May-07 6:05 
AnswerRe: how to execute another application thru C#? Pin
Paul Conrad4-May-07 13:54
professionalPaul Conrad4-May-07 13:54 
AnswerRe: how to execute another application thru C#? Pin
AFSEKI7-May-07 3:20
AFSEKI7-May-07 3:20 
GeneralRe: how to execute another application thru C#? Pin
Eddymvp7-May-07 3:22
Eddymvp7-May-07 3:22 
QuestionCrystal Report Deploying problem Pin
Nermeenez4-May-07 4:24
Nermeenez4-May-07 4:24 

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.