Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
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

AnswerRe: event not fired Pin
DaveyM698-Oct-08 12:31
professionalDaveyM698-Oct-08 12:31 
GeneralRe: event not fired Pin
netJP12L8-Oct-08 16:58
netJP12L8-Oct-08 16:58 
QuestionError- This row already belongd to another table Pin
rahul218-Oct-08 10:40
rahul218-Oct-08 10:40 
AnswerRe: Error- This row already belongd to another table Pin
Richard Blythe8-Oct-08 16:14
Richard Blythe8-Oct-08 16:14 
QuestionHow do I call the combobox SelectionChangeCommitted event manually? Pin
OldSchoolToC#8-Oct-08 5:56
OldSchoolToC#8-Oct-08 5:56 
AnswerRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
DaveyM698-Oct-08 6:30
professionalDaveyM698-Oct-08 6:30 
GeneralRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
led mike8-Oct-08 10:08
led mike8-Oct-08 10:08 
GeneralRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
DaveyM698-Oct-08 11:50
professionalDaveyM698-Oct-08 11:50 
GeneralRe: How do I call the combobox SelectionChangeCommitted event manually? Pin
OldSchoolToC#8-Oct-08 10:17
OldSchoolToC#8-Oct-08 10:17 

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.