Click here to Skip to main content
15,887,376 members
Home / Discussions / C#
   

C#

 
AnswerRe: diplaying data in datagrid without child table Pin
Gavin Jeffrey10-Oct-05 1:33
Gavin Jeffrey10-Oct-05 1:33 
GeneralRe: diplaying data in datagrid without child table Pin
Rizwan Bashir10-Oct-05 3:04
Rizwan Bashir10-Oct-05 3:04 
GeneralRe: diplaying data in datagrid without child table Pin
Gavin Jeffrey10-Oct-05 3:57
Gavin Jeffrey10-Oct-05 3:57 
Questionplease help using references in c# Pin
arusmemon9-Oct-05 22:20
arusmemon9-Oct-05 22:20 
AnswerRe: please help using references in c# Pin
Maqsood Ahmed10-Oct-05 0:04
Maqsood Ahmed10-Oct-05 0:04 
Questionstring conversion Pin
Brendan Vogt9-Oct-05 21:55
Brendan Vogt9-Oct-05 21:55 
AnswerRe: string conversion Pin
Maqsood Ahmed10-Oct-05 0:11
Maqsood Ahmed10-Oct-05 0:11 
AnswerRe: string conversion Pin
S. Senthil Kumar10-Oct-05 2:05
S. Senthil Kumar10-Oct-05 2:05 
You can "bind" the variable to the textbox. Use something like
class MainForm : Form
{
   string strName;
   TextBox txtName;

   public MainForm()
   {
       InitializeComponent();
       txtName.DataBindings.Add("Text", this, "strName");
   }
}


This way, when the dialog closes with DialogResult.OK, whatever is in txtName.Text will be available in strName. When the dialog loads, it's the other way around, whatever is in strName gets set as txtName.Text.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: string conversion Pin
Brendan Vogt10-Oct-05 2:39
Brendan Vogt10-Oct-05 2:39 
GeneralRe: string conversion Pin
S. Senthil Kumar10-Oct-05 3:03
S. Senthil Kumar10-Oct-05 3:03 
QuestionRe: string conversion Pin
Brendan Vogt11-Oct-05 0:44
Brendan Vogt11-Oct-05 0:44 
AnswerRe: string conversion Pin
Maqsood Ahmed11-Oct-05 20:55
Maqsood Ahmed11-Oct-05 20:55 
QuestionRe: string conversion Pin
Brendan Vogt11-Oct-05 22:04
Brendan Vogt11-Oct-05 22:04 
AnswerRe: string conversion Pin
Maqsood Ahmed12-Oct-05 20:13
Maqsood Ahmed12-Oct-05 20:13 
QuestionRe: string conversion Pin
Brendan Vogt12-Oct-05 20:33
Brendan Vogt12-Oct-05 20:33 
GeneralRe: string conversion Pin
Brendan Vogt17-Oct-05 22:12
Brendan Vogt17-Oct-05 22:12 
QuestionTimeline controls in C# Pin
jpvanoosten9-Oct-05 21:53
jpvanoosten9-Oct-05 21:53 
Questionnull string Pin
Brendan Vogt9-Oct-05 21:52
Brendan Vogt9-Oct-05 21:52 
AnswerRe: null string Pin
Maxim Ignatyev9-Oct-05 22:35
Maxim Ignatyev9-Oct-05 22:35 
AnswerRe: null string Pin
S. Senthil Kumar10-Oct-05 2:08
S. Senthil Kumar10-Oct-05 2:08 
AnswerRe: null string Pin
XRaheemX10-Oct-05 4:58
XRaheemX10-Oct-05 4:58 
QuestionDebugging class library (DLL) Pin
raed9-Oct-05 21:52
raed9-Oct-05 21:52 
AnswerRe: Debugging class library (DLL) Pin
S. Senthil Kumar10-Oct-05 2:15
S. Senthil Kumar10-Oct-05 2:15 
GeneralRe: Debugging class library (DLL) Pin
raed10-Oct-05 2:44
raed10-Oct-05 2:44 
QuestionPage.IsPostBack Pin
Brendan Vogt9-Oct-05 21:47
Brendan Vogt9-Oct-05 21:47 

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.