Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
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 
QuestionUpdate MDI child controls (TextBox ect) from a non parent control Pin
Deneys7-Apr-10 4:12
Deneys7-Apr-10 4:12 
AnswerRe: Update MDI child controls (TextBox ect) from a non parent control Pin
Eddy Vluggen7-Apr-10 4:47
professionalEddy Vluggen7-Apr-10 4:47 
QuestionSearching words/phrases on the text file Pin
K Suresh Reddy7-Apr-10 3:54
K Suresh Reddy7-Apr-10 3:54 
AnswerRe: Searching words/phrases on the text file Pin
Eddy Vluggen7-Apr-10 5:00
professionalEddy Vluggen7-Apr-10 5:00 
QuestionEvents related to the selection of text on a multiline textbox Pin
_ASPAle_7-Apr-10 1:57
_ASPAle_7-Apr-10 1:57 
AnswerRe: Events related to the selection of text on a multiline textbox Pin
Not Active7-Apr-10 2:04
mentorNot Active7-Apr-10 2:04 
GeneralRe: Events related to the selection of text on a multiline textbox Pin
_ASPAle_7-Apr-10 7:21
_ASPAle_7-Apr-10 7:21 
AnswerRe: Events related to the selection of text on a multiline textbox Pin
Arun Jacob7-Apr-10 2:15
Arun Jacob7-Apr-10 2:15 
GeneralRe: Events related to the selection of text on a multiline textbox Pin
_ASPAle_7-Apr-10 7:18
_ASPAle_7-Apr-10 7:18 
QuestionCrystal Report with Dynamic Picture Pin
sachees1237-Apr-10 0:13
sachees1237-Apr-10 0:13 
QuestionReplacing objects, handling clones, dealing with write logs [modified] Pin
blackblizzard6-Apr-10 23:45
blackblizzard6-Apr-10 23:45 
AnswerRe: Replacing objects, handling clones, dealing with write logs Pin
Stanciu Vlad8-Apr-10 11:45
Stanciu Vlad8-Apr-10 11:45 
GeneralRe: Replacing objects, handling clones, dealing with write logs Pin
blackblizzard9-Apr-10 0:07
blackblizzard9-Apr-10 0:07 
GeneralRe: Replacing objects, handling clones, dealing with write logs Pin
Stanciu Vlad9-Apr-10 4:44
Stanciu Vlad9-Apr-10 4: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.