Click here to Skip to main content
15,917,522 members
Home / Discussions / C#
   

C#

 
AnswerRe: A potentially dangerous Request.QueryString value was detected from the client (ReturnUrl="...1111&#Write"). Pin
JendaPerl18-Aug-10 23:22
JendaPerl18-Aug-10 23:22 
QuestionGet Element of Generic List Pin
ezazazel8-Oct-08 21:21
ezazazel8-Oct-08 21:21 
AnswerRe: Get Element of Generic List Pin
Simon P Stevens8-Oct-08 23:01
Simon P Stevens8-Oct-08 23:01 
AnswerRe: Get Element of Generic List Pin
#realJSOP8-Oct-08 23:34
professional#realJSOP8-Oct-08 23:34 
GeneralRe: Get Element of Generic List Pin
ezazazel9-Oct-08 2:16
ezazazel9-Oct-08 2:16 
AnswerRe: Get Element of Generic List Pin
J4amieC9-Oct-08 0:42
J4amieC9-Oct-08 0:42 
GeneralRe: Get Element of Generic List Pin
ezazazel9-Oct-08 2:08
ezazazel9-Oct-08 2:08 
Questionflicker free drawing.... Pin
Denver Thomas8-Oct-08 19:55
Denver Thomas8-Oct-08 19:55 
AnswerRe: flicker free drawing.... [modified] Pin
ervegter8-Oct-08 21:02
ervegter8-Oct-08 21:02 
GeneralRe: flicker free drawing.... Pin
Denver Thomas8-Oct-08 21:47
Denver Thomas8-Oct-08 21:47 
QuestionWhat's the differense between int and int[] Pin
Pedram Behroozi8-Oct-08 19:00
Pedram Behroozi8-Oct-08 19:00 
AnswerRe: What's the differense between int and int[] Pin
Parwej Ahamad8-Oct-08 19:16
professionalParwej Ahamad8-Oct-08 19:16 
GeneralRe: What's the differense between int and int[] Pin
Pedram Behroozi8-Oct-08 19:21
Pedram Behroozi8-Oct-08 19:21 
QuestionEmbeded HTML Files C# V.Studio Exp. Edtn. Pin
jas0n238-Oct-08 16:54
jas0n238-Oct-08 16:54 
AnswerRe: Embeded HTML Files C# V.Studio Exp. Edtn. Pin
Mbah Dhaim8-Oct-08 17:47
Mbah Dhaim8-Oct-08 17:47 
GeneralRe: Embeded HTML Files C# V.Studio Exp. Edtn. Pin
jas0n239-Oct-08 0:01
jas0n239-Oct-08 0:01 
QuestionError with DataGridView? Pin
Richard Blythe8-Oct-08 16:18
Richard Blythe8-Oct-08 16:18 
QuestionCrystal Reports - IFieldObject (and others) Pin
nelsonpaixao8-Oct-08 14:08
nelsonpaixao8-Oct-08 14:08 
QuestionMD5 Conflict between PHP and C# Pin
Vasudevan Deepak Kumar8-Oct-08 12:05
Vasudevan Deepak Kumar8-Oct-08 12:05 
AnswerRe: MD5 Conflict between PHP and C# Pin
DaveyM698-Oct-08 12:24
professionalDaveyM698-Oct-08 12:24 
GeneralRe: MD5 Conflict between PHP and C# Pin
Vasudevan Deepak Kumar8-Oct-08 13:34
Vasudevan Deepak Kumar8-Oct-08 13:34 
AnswerRe: MD5 Conflict between PHP and C# Pin
Ennis Ray Lynch, Jr.8-Oct-08 12:30
Ennis Ray Lynch, Jr.8-Oct-08 12:30 
GeneralRe: MD5 Conflict between PHP and C# Pin
Vasudevan Deepak Kumar8-Oct-08 13:35
Vasudevan Deepak Kumar8-Oct-08 13:35 
AnswerRe: MD5 Conflict between PHP and C# Pin
Mark Churchill8-Oct-08 17:06
Mark Churchill8-Oct-08 17:06 
Questionevent not fired [modified] Pin
netJP12L8-Oct-08 12:02
netJP12L8-Oct-08 12:02 
Hi guys, I have two items in a contextmenu if i click on Play button then in my ClassB the event get fired but if i click on Color it crahes becuase myevent is null. i want to fire event if it is called from ClassB then call it's event and if it called from ClassA run its event.

Class A
{
public virtual event CEventHandler myevent;
MenuItem[] menuItms = new MenuItem[]{ new MenuItem("Color", new EventHandler(Color))}

ContextMenu.MenuItems.Add(menuItms);

private void Color(Object sender, EventArgs e)
{
if(myevent!=null)
myevent(sender, e);
}
}
Class B: A
{
public override event CEventHandler myevent;

MenuItem[] menuItms = new MenuItem[]{ new MenuItem("Color", new EventHandler(Play)}

ContextMenu.MenuItems.Add(menuItms);


private void Play(Object sender, EventArgs e)
{
if(myevent!=null)
myevent(sender, e);
}
}

modified on Wednesday, October 8, 2008 6:13 PM

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.