Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
QuestionMicrosoft.Exchange.WebServices Question Pin
RCoate18-Mar-10 13:56
RCoate18-Mar-10 13:56 
AnswerRe: Microsoft.Exchange.WebServices Question Pin
RCoate21-Mar-10 17:09
RCoate21-Mar-10 17:09 
AnswerRe: Microsoft.Exchange.WebServices Question Pin
alisonstang229-Jul-11 4:38
alisonstang229-Jul-11 4:38 
Questionappend node by element name Pin
Jassim Rahma18-Mar-10 11:43
Jassim Rahma18-Mar-10 11:43 
AnswerRe: append node by element name Pin
Not Active18-Mar-10 12:10
mentorNot Active18-Mar-10 12:10 
AnswerRe: append node by element name Pin
carlecomm18-Mar-10 15:44
carlecomm18-Mar-10 15:44 
AnswerRe: append node by element name Pin
Mirko198018-Mar-10 22:27
Mirko198018-Mar-10 22:27 
QuestionHow do I call a method on the parent form from another form? Pin
Paul Stol18-Mar-10 10:09
Paul Stol18-Mar-10 10:09 
Hi,

I am fairly new to programming and I am making member registration apllication.

The main form contains a DataGridView with all the checked in members. The DataGridView connects to a
stored procedure. This main form is also the start-up form.
In the search results form I can check in / out a member. This done by clicking a button that calls a stored procedure.

Now for my question:

After I click the checkin / out button I want to update the DataGridView in the main form.
I don't seem to be able to make this work.

Below is the code that I use.

The following method is placed on the main form. This is the method I want to call from the other form.

public void FillDataGrid()
        {
            this.aLL_CHECKED_IN_MEMBERTableAdapter.Fill(this.on_target_v1DataSet.ALL_CHECKED_IN_MEMBER);
            
        }


I want to call this method through the following code, this code is located on a different form:

public void btnCheckIn_Click(object sender, EventArgs e)
        {
            Procedures.CallStoredProcedure.CHECK_IN_MEMBER(this.lblNumber.Text); 
            CheckInOut(this.lblNumber.Text);
            frmMain cls = new frmMain();
            cls.FillDataGrid();
        }


Does anyboady have any ideas how I can tackle this?

Regards,
Paul Stol
AnswerRe: How do I call a method on the parent form from another form? Pin
T M Gray18-Mar-10 10:46
T M Gray18-Mar-10 10:46 
AnswerRe: How do I call a method on the parent form from another form? Pin
DaveyM6918-Mar-10 11:15
professionalDaveyM6918-Mar-10 11:15 
QuestionQuestion with converting double to long Pin
Fenryl18-Mar-10 9:19
Fenryl18-Mar-10 9:19 
AnswerRe: Question with converting double to long Pin
Alaric_18-Mar-10 9:35
professionalAlaric_18-Mar-10 9:35 
GeneralRe: Question with converting double to long Pin
#realJSOP18-Mar-10 9:44
mve#realJSOP18-Mar-10 9:44 
AnswerRe: Question with converting double to long Pin
#realJSOP18-Mar-10 9:46
mve#realJSOP18-Mar-10 9:46 
AnswerRe: Question with converting double to long Pin
Luc Pattyn18-Mar-10 9:55
sitebuilderLuc Pattyn18-Mar-10 9:55 
GeneralRe: Question with converting double to long Pin
Richard MacCutchan18-Mar-10 10:34
mveRichard MacCutchan18-Mar-10 10:34 
GeneralRe: Question with converting double to long Pin
Alaric_18-Mar-10 10:35
professionalAlaric_18-Mar-10 10:35 
GeneralRe: Question with converting double to long Pin
Luc Pattyn18-Mar-10 11:06
sitebuilderLuc Pattyn18-Mar-10 11:06 
AnswerRe: Question with converting double to long Pin
AspDotNetDev18-Mar-10 10:53
protectorAspDotNetDev18-Mar-10 10:53 
AnswerRe: Question with converting double to long Pin
PIEBALDconsult18-Mar-10 16:22
mvePIEBALDconsult18-Mar-10 16:22 
Question(2.0) ...wanting to show/hide control within a GridView's TableCell.Controls collection. [modified] Pin
Alaric_18-Mar-10 7:57
professionalAlaric_18-Mar-10 7:57 
AnswerRe: (2.0) ...wanting to show/hide control within a GridView's TableCell.Controls collection. Pin
Alaric_18-Mar-10 10:44
professionalAlaric_18-Mar-10 10:44 
QuestionProblem running deployed application online only - C# .NET 3.51 Pin
Jon Braunsma18-Mar-10 7:42
Jon Braunsma18-Mar-10 7:42 
Questiondegrees to MILS Pin
v17.poornima18-Mar-10 6:47
v17.poornima18-Mar-10 6:47 
AnswerRe: degrees to MILS Pin
PIEBALDconsult18-Mar-10 6:58
mvePIEBALDconsult18-Mar-10 6:58 

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.