Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: ASMX Web Services Pin
sasolanki00730-Apr-17 17:57
sasolanki00730-Apr-17 17:57 
QuestionC# Task Faulted Problem Pin
Kevin Marois10-Apr-17 8:39
professionalKevin Marois10-Apr-17 8:39 
AnswerRe: C# Task Faulted Problem Pin
User 418025410-Apr-17 10:09
User 418025410-Apr-17 10:09 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois10-Apr-17 10:32
professionalKevin Marois10-Apr-17 10:32 
GeneralRe: C# Task Faulted Problem Pin
User 418025410-Apr-17 10:58
User 418025410-Apr-17 10:58 
AnswerRe: C# Task Faulted Problem Pin
Pete O'Hanlon10-Apr-17 20:21
mvePete O'Hanlon10-Apr-17 20:21 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois11-Apr-17 4:23
professionalKevin Marois11-Apr-17 4:23 
GeneralRe: C# Task Faulted Problem Pin
Pete O'Hanlon11-Apr-17 5:09
mvePete O'Hanlon11-Apr-17 5:09 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois11-Apr-17 5:30
professionalKevin Marois11-Apr-17 5:30 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois11-Apr-17 5:34
professionalKevin Marois11-Apr-17 5:34 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois11-Apr-17 5:49
professionalKevin Marois11-Apr-17 5:49 
GeneralRe: C# Task Faulted Problem Pin
Pete O'Hanlon11-Apr-17 7:01
mvePete O'Hanlon11-Apr-17 7:01 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois11-Apr-17 7:06
professionalKevin Marois11-Apr-17 7:06 
GeneralRe: C# Task Faulted Problem Pin
Pete O'Hanlon11-Apr-17 7:55
mvePete O'Hanlon11-Apr-17 7:55 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois12-Apr-17 6:52
professionalKevin Marois12-Apr-17 6:52 
GeneralRe: C# Task Faulted Problem Pin
Pete O'Hanlon12-Apr-17 21:45
mvePete O'Hanlon12-Apr-17 21:45 
GeneralRe: C# Task Faulted Problem Pin
Kevin Marois13-Apr-17 5:34
professionalKevin Marois13-Apr-17 5:34 
QuestionXML inputs to telnet console in c# Pin
nikhil201510-Apr-17 2:47
nikhil201510-Apr-17 2:47 
QuestionRe: XML inputs to telnet console in c# Pin
Richard MacCutchan10-Apr-17 2:53
mveRichard MacCutchan10-Apr-17 2:53 
AnswerRe: XML inputs to telnet console in c# Pin
Pete O'Hanlon10-Apr-17 2:55
mvePete O'Hanlon10-Apr-17 2:55 
Questionc# Events Redirection in Designer.cs and Visual Studio 2017 More Problems. Pin
zequion7-Apr-17 20:57
professionalzequion7-Apr-17 20:57 
AnswerRe: c# Events Redirection in Designer.cs and Visual Studio 2017 More Problems. Pin
Richard MacCutchan7-Apr-17 21:33
mveRichard MacCutchan7-Apr-17 21:33 
AnswerRe: c# Events Redirection in Designer.cs and Visual Studio 2017 More Problems. Pin
Gerry Schmitz9-Apr-17 8:56
mveGerry Schmitz9-Apr-17 8:56 
AnswerRe: c# Events Redirection in Designer.cs and Visual Studio 2017 More Problems. Pin
BillWoodruff11-Apr-17 3:51
professionalBillWoodruff11-Apr-17 3:51 
I think you do have a valid technical question here, but you need to state what it is more clearly; going on about the speed of VS is not going to get you to a solution.

A way I handle event triggers across Forms is something like this:

1. Define an Action public field in the Form you want to raise an Event, but have the Event handled in another Form:
C#
// 'FormWithBtn ... in the Form with the Button
public Action<Button> BtnAction = null;
1.a. define the Button's Click EventHandler, and modify it to invoke the BtnAction:
C#
private void SomeButton_Click(object sender, EventArgs e)
{
   if(BtnAction != null) BtnAction(sender as Button);
}
2. in the Form that creates the instance of 'FormWithBtn ... for example, the Main Form
C#
private FormWithButton FWBInstance = new FormWithButton();

private void Form1_Load(object sender, EventArgs e)
{ 
    FWBInstance.BtnAction = FWBButtonHandler;
} 

private void FWBButtonHandler(Button btn)
{
    // do whatever
}
This "model" of creating Event handling across Forms uses "injection" of an Action (a form of delegate), and it avoids dependency creation between the two contexts (Forms) ... imho, a good thing.

Hope this helps.
«When I consider my brief span of life, swallowed up in an eternity before and after, the little space I fill, and even can see, engulfed in the infinite immensity of spaces of which I am ignorant, and which know me not, I am frightened, and am astonished at being here rather than there; for there is no reason why here rather than there, now rather than then.» Blaise Pascal

AnswerRe: c# Events Redirection in Designer.cs and Visual Studio 2017 More Problems. Pin
Pete O'Hanlon11-Apr-17 4:13
mvePete O'Hanlon11-Apr-17 4:13 

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.