from a datagrid in one to a textbox in another form
-
this is a major major problem for me...i could fail my module if i dont implement this in my system!! i've downloaded some examples from this site but i could not understand whats it doing..and how to implement it in my forms..im hoping some one out there can help me out here...it'll be one reall really appreciated help. anyways this is my situation, i have frmQueue which has a datagrid showing only one column (ACCT ID) and another form named frmDiagnosis which has got a textbox called txtACCTID. the user clicks on the first cell in the datagrid in frmQueue and it gets loaded in the textbox in frmDiagnosis. pls some one help me here. im new to C# so the examples really make me feel blur... :(( CODER
-
this is a major major problem for me...i could fail my module if i dont implement this in my system!! i've downloaded some examples from this site but i could not understand whats it doing..and how to implement it in my forms..im hoping some one out there can help me out here...it'll be one reall really appreciated help. anyways this is my situation, i have frmQueue which has a datagrid showing only one column (ACCT ID) and another form named frmDiagnosis which has got a textbox called txtACCTID. the user clicks on the first cell in the datagrid in frmQueue and it gets loaded in the textbox in frmDiagnosis. pls some one help me here. im new to C# so the examples really make me feel blur... :(( CODER
Declare private varibale in your frmQueue class , type of your frmdiagnosis , and set the
TopMost
property of it to true. Then when you want to create your form useShow()
instead ofShowDialog()
,and then in theCurrentCellChange
event of Datagrid set the text of frmQueue varibale, but don't forget to set the textbox modifier topublic
. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope -
Declare private varibale in your frmQueue class , type of your frmdiagnosis , and set the
TopMost
property of it to true. Then when you want to create your form useShow()
instead ofShowDialog()
,and then in theCurrentCellChange
event of Datagrid set the text of frmQueue varibale, but don't forget to set the textbox modifier topublic
. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob HopeDeclare private varibale in your frmQueue class , type of your frmdiagnosis , and set the TopMost property of it to true. hi mazdak, im not clear about what u said, how do i declare the variable?.. just : "private string celldata"??? and also the forms are already opened. hope u can help me here thx in advance CODER
-
Declare private varibale in your frmQueue class , type of your frmdiagnosis , and set the TopMost property of it to true. hi mazdak, im not clear about what u said, how do i declare the variable?.. just : "private string celldata"??? and also the forms are already opened. hope u can help me here thx in advance CODER
ASGill wrote: how do i declare the variable?.. :eek: Yes. ASGill wrote: and also the forms are already opened. Well, you open them somewhere, they haven't open by magic , whenever you open second one use
Show()
instead ofShowDialog().
Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope