Click here to Skip to main content
15,513,631 members
Home / Discussions / C#
   

C#

 
QuestionWhile Loop sucking up all processor's cpu cycles Pin
BuggingMe7-Apr-10 7:17
BuggingMe7-Apr-10 7:17 
AnswerRe: While Loop sucking up all processor's cpu cycles Pin
Not Active7-Apr-10 7:41
mentorNot Active7-Apr-10 7:41 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
BuggingMe7-Apr-10 7:58
BuggingMe7-Apr-10 7:58 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
Not Active7-Apr-10 8:08
mentorNot Active7-Apr-10 8:08 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
PIEBALDconsult7-Apr-10 8:49
professionalPIEBALDconsult7-Apr-10 8:49 
AnswerRe: While Loop sucking up all processor's cpu cycles Pin
kevinnicol7-Apr-10 7:59
kevinnicol7-Apr-10 7:59 
GeneralRe: While Loop sucking up all processor's cpu cycles Pin
Fayu7-Apr-10 10:11
Fayu7-Apr-10 10:11 
QuestionRe: Calling an event in a different namespace Pin
roman_s7-Apr-10 6:34
roman_s7-Apr-10 6: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 6:39
Dan Mos7-Apr-10 6:39 
GeneralRe: Calling an event in a different namespace Pin
roman_s7-Apr-10 9:13
roman_s7-Apr-10 9:13 
AnswerRe: Calling an event in a different namespace Pin
O.Phil7-Apr-10 6:53
O.Phil7-Apr-10 6:53 
QuestionUpdate MDI child controls (TextBox ect) from a non parent control Pin
Deneys7-Apr-10 5:12
Deneys7-Apr-10 5:12 
AnswerRe: Update MDI child controls (TextBox ect) from a non parent control Pin
Eddy Vluggen7-Apr-10 5:47
professionalEddy Vluggen7-Apr-10 5:47 
QuestionSearching words/phrases on the text file Pin
K Suresh Reddy7-Apr-10 4:54
K Suresh Reddy7-Apr-10 4:54 
AnswerRe: Searching words/phrases on the text file Pin
Eddy Vluggen7-Apr-10 6:00
professionalEddy Vluggen7-Apr-10 6:00 
QuestionEvents related to the selection of text on a multiline textbox Pin
_ASPAle_7-Apr-10 2:57
_ASPAle_7-Apr-10 2:57 
AnswerRe: Events related to the selection of text on a multiline textbox Pin
Not Active7-Apr-10 3:04
mentorNot Active7-Apr-10 3:04 
GeneralRe: Events related to the selection of text on a multiline textbox Pin
_ASPAle_7-Apr-10 8:21
_ASPAle_7-Apr-10 8:21 
AnswerRe: Events related to the selection of text on a multiline textbox Pin
Arun Jacob7-Apr-10 3:15
Arun Jacob7-Apr-10 3:15 
GeneralRe: Events related to the selection of text on a multiline textbox Pin
_ASPAle_7-Apr-10 8:18
_ASPAle_7-Apr-10 8:18 
QuestionCrystal Report with Dynamic Picture Pin
sachees1237-Apr-10 1:13
sachees1237-Apr-10 1:13 
QuestionReplacing objects, handling clones, dealing with write logs [modified] Pin
blackblizzard7-Apr-10 0:45
blackblizzard7-Apr-10 0:45 
AnswerRe: Replacing objects, handling clones, dealing with write logs Pin
Stanciu Vlad8-Apr-10 12:45
Stanciu Vlad8-Apr-10 12:45 
GeneralRe: Replacing objects, handling clones, dealing with write logs Pin
blackblizzard9-Apr-10 1:07
blackblizzard9-Apr-10 1:07 
GeneralRe: Replacing objects, handling clones, dealing with write logs Pin
Stanciu Vlad9-Apr-10 5:44
Stanciu Vlad9-Apr-10 5:44 

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.