Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
QuestionActivator.CreateInstance error [modified] Pin
Fayu7-Apr-10 9:00
Fayu7-Apr-10 9:00 
AnswerRe: Activator.CreateInstance error Pin
Fayu7-Apr-10 9:09
Fayu7-Apr-10 9:09 
QuestionAnyone worked with Microsoft.Office.Interop.MSProject? Pin
ziwez07-Apr-10 8:29
ziwez07-Apr-10 8:29 
AnswerRe: Anyone worked with Microsoft.Office.Interop.MSProject? Pin
William Winner7-Apr-10 12:27
William Winner7-Apr-10 12:27 
QuestionChanging the text properties of a text box. Pin
Darrall7-Apr-10 8:18
Darrall7-Apr-10 8:18 
AnswerRe: Changing the text properties of a text box. Pin
OriginalGriff7-Apr-10 8:30
mveOriginalGriff7-Apr-10 8:30 
GeneralRe: Changing the text properties of a text box. Pin
Darrall7-Apr-10 9:04
Darrall7-Apr-10 9:04 
GeneralRe: Changing the text properties of a text box. Pin
OriginalGriff7-Apr-10 9:35
mveOriginalGriff7-Apr-10 9:35 
GeneralRe: Changing the text properties of a text box. Pin
Darrall7-Apr-10 10:00
Darrall7-Apr-10 10:00 
GeneralRe: Changing the text properties of a text box. Pin
OriginalGriff7-Apr-10 22:02
mveOriginalGriff7-Apr-10 22:02 
GeneralRe: Changing the text properties of a text box. Pin
Darrall8-Apr-10 5:10
Darrall8-Apr-10 5:10 
GeneralRe: Changing the text properties of a text box. Pin
OriginalGriff8-Apr-10 5:23
mveOriginalGriff8-Apr-10 5:23 
GeneralRe: Changing the text properties of a text box. Pin
Darrall8-Apr-10 7:22
Darrall8-Apr-10 7:22 
Questionproblem when running a delay signed assembly in another pc Pin
prasadbuddhika7-Apr-10 6:33
prasadbuddhika7-Apr-10 6:33 
QuestionWhile Loop sucking up all processor's cpu cycles Pin
BuggingMe7-Apr-10 6:17
BuggingMe7-Apr-10 6:17 
AnswerRe: While Loop sucking up all processor's cpu cycles Pin
Not Active7-Apr-10 6:41
mentorNot Active7-Apr-10 6:41 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
BuggingMe7-Apr-10 6:58
BuggingMe7-Apr-10 6:58 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
Not Active7-Apr-10 7:08
mentorNot Active7-Apr-10 7:08 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
PIEBALDconsult7-Apr-10 7:49
mvePIEBALDconsult7-Apr-10 7:49 
AnswerRe: While Loop sucking up all processor's cpu cycles Pin
kevinnicol7-Apr-10 6:59
kevinnicol7-Apr-10 6:59 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
Fayu7-Apr-10 9:11
Fayu7-Apr-10 9:11 
QuestionRe: Calling an event in a different namespace Pin
roman_s7-Apr-10 5:34
roman_s7-Apr-10 5:34 
Ok so I posted this a while ago and I need to reiterate the question:

In panelMasterlist I have a delete event:

public void contextDeleteMasterList_Click(object sender, EventArgs e)
        {
            // Delete Rule: Inventory Item in all Restaurants cannot be in the Masterlist

            frmGenericProgress F = sender as frmGenericProgress;
            List<MasterListItem> deletedObjects = new List<MasterListItem>(); .............}


It populates a list then validates it... etc.

In frmMain

I have a button event from a 3rd component that when triggered need to do the exact same thing done in contextDeleteMasterList_Click.

private void buttonDeleteMasterlist_Activate(object sender, EventArgs e)
        {



So I made the contextDeleteMasterList_Click public, and in the buttonDeleteMasterlist_Activate tried calling


private void buttonDeleteMasterlist_Activate(object sender, EventArgs e)
        {
            panelMasterlist.contextDeleteMasterList_Click();
}

got Error 1 No overload for method 'contextDeleteMasterList_Click' takes '0' arguments

tried:
private void buttonDeleteMasterlist_Activate(object sender, EventArgs e)
        {
            panelMasterlist.contextDeleteMasterList_Click(sender, e);
}


got Error 1 An object reference is required for the nonstatic field, method, or property 'Freepour.Studio.Forms.Panels.panelMasterlist.contextDeleteMasterList_Click(object, System.EventArgs)


Any help is greatly appreciated
AnswerRe: Calling an event in a different namespace [modified] Pin
Dan Mos7-Apr-10 5:39
Dan Mos7-Apr-10 5:39 
GeneralRe: Calling an event in a different namespace Pin
roman_s7-Apr-10 8:13
roman_s7-Apr-10 8:13 
AnswerRe: Calling an event in a different namespace Pin
O.Phil7-Apr-10 5:53
O.Phil7-Apr-10 5:53 

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.