Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
AnswerRe: Updating controls on another form Pin
Peace ON5-May-10 21:23
Peace ON5-May-10 21:23 
GeneralRe: Updating controls on another form Pin
DaveyM695-May-10 23:40
professionalDaveyM695-May-10 23:40 
AnswerRe: Updating controls on another form Pin
DaveyM695-May-10 23:29
professionalDaveyM695-May-10 23:29 
QuestionRead certificate from USB Pin
Maurinho05-May-10 12:34
Maurinho05-May-10 12:34 
AnswerRe: Read certificate from USB Pin
AspDotNetDev5-May-10 15:15
protectorAspDotNetDev5-May-10 15:15 
QuestionAdding text box input to a dataset table Pin
mprice2145-May-10 11:34
mprice2145-May-10 11:34 
AnswerRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 11:57
professionalDr.Walt Fair, PE5-May-10 11:57 
GeneralRe: Adding text box input to a dataset table Pin
mprice2145-May-10 12:13
mprice2145-May-10 12:13 
Let me simplify things a bit to be more clear. Let's say I have two forms. There is a textbox on Form1 and I'll just have some default text that resides in the textbox. On Form1_Load shown below, frmCalData is instantiated and shown. frmCaldata has a dataset dsCalData with a data table tblCalData.

private void Form1_Load(object sender, EventArgs e)
frmCalData frmCal = new frmCalData();
            frmCal.Show();


I believe I should be eventually calling out something like this:

DataRow row = tblCalData.NewRow();
tblCalData.Rows.Add(textbox1.Text);


However, in the Form1_Load method, I cannot call out tblCalData.

As this is new to me, I am shooting somewhat blind, so any guidance will be greatly appreciated.
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 15:10
professionalDr.Walt Fair, PE5-May-10 15:10 
GeneralRe: Adding text box input to a dataset table [modified] Pin
mprice2145-May-10 15:45
mprice2145-May-10 15:45 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 16:47
professionalDr.Walt Fair, PE5-May-10 16:47 
QuestionMessage Removed Pin
5-May-10 9:16
professionalN_tro_P5-May-10 9:16 
QuestionEnum logic problem [modified] Pin
venomation5-May-10 8:02
venomation5-May-10 8:02 
AnswerRe: Enum logic problem Pin
Ian Shlasko5-May-10 8:19
Ian Shlasko5-May-10 8:19 
AnswerRe: Enum logic problem Pin
venomation5-May-10 8:24
venomation5-May-10 8:24 
Questiondocument code Pin
toto_20105-May-10 7:13
toto_20105-May-10 7:13 
AnswerRe: document code Pin
dan!sh 5-May-10 7:24
professional dan!sh 5-May-10 7:24 
AnswerRe: document code Pin
Richard MacCutchan5-May-10 7:26
mveRichard MacCutchan5-May-10 7:26 
AnswerRe: document code Pin
Pete O'Hanlon5-May-10 9:26
mvePete O'Hanlon5-May-10 9:26 
AnswerRe: document code Pin
Dave Kreskowiak5-May-10 9:32
mveDave Kreskowiak5-May-10 9:32 
AnswerRe: document code Pin
Peace ON5-May-10 21:03
Peace ON5-May-10 21:03 
QuestionDate formate changing in Italian settings Pin
attalurisubbu5-May-10 5:28
attalurisubbu5-May-10 5:28 
AnswerRe: Date formate changing in Italian settings Pin
Not Active5-May-10 5:55
mentorNot Active5-May-10 5:55 
AnswerRe: Date formate changing in Italian settings Pin
dan!sh 5-May-10 6:26
professional dan!sh 5-May-10 6:26 
AnswerRe: Date formate changing in Italian settings Pin
The Man from U.N.C.L.E.5-May-10 6:48
The Man from U.N.C.L.E.5-May-10 6:48 

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.