Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 2:29
professionalDaveyM692-Aug-08 2:29 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 4:11
professionalDaveyM692-Aug-08 4:11 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 4:48
professionalDaveyM692-Aug-08 4:48 
GeneralRe: Collections and sorting using an interface [modified] Pin
User 66582-Aug-08 5:06
User 66582-Aug-08 5:06 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 8:47
professionalDaveyM692-Aug-08 8:47 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 10:22
professionalDaveyM692-Aug-08 10:22 
Questionmeta file using C# Pin
algates00271-Aug-08 18:56
algates00271-Aug-08 18:56 
AnswerRe: meta file using C# Pin
Thomas Stockwell2-Aug-08 7:31
professionalThomas Stockwell2-Aug-08 7:31 
It is very bad practice to paint on a form through a non-graphic event. (For assistance purposes, I am assuming a meta file is an image). The following is pseudocode (not syntactically accurate).

public Form:Form
{
bool isClickedPerformed=false;
public override OnMouseClick(...)
{
if(e.MouseButton==MouseButton.Right)
    isClickedPerformed=true;
this.invalidate();
}
public override OnPaint(....)
{
if(isClickedPerformed)
e.graphics.drawimage(...follow paramters/usage based on either MSDN Documentation or Object Browser in VS IDE);
}
}


Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios

Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com

QuestionHow to find the Content datatype in a String Pin
K V Sekhar1-Aug-08 18:47
K V Sekhar1-Aug-08 18:47 
AnswerRe: How to find the Content datatype in a String Pin
Rajesh R Subramanian1-Aug-08 20:59
professionalRajesh R Subramanian1-Aug-08 20:59 
AnswerRe: How to find the Content datatype in a String Pin
DaveyM691-Aug-08 21:11
professionalDaveyM691-Aug-08 21:11 
AnswerRe: How to find the Content datatype in a String Pin
Anurag Gandhi1-Aug-08 21:51
professionalAnurag Gandhi1-Aug-08 21:51 
GeneralRe: How to find the Content datatype in a String Pin
K V Sekhar1-Aug-08 23:06
K V Sekhar1-Aug-08 23:06 
GeneralRe: How to find the Content datatype in a String Pin
Guffa1-Aug-08 23:35
Guffa1-Aug-08 23:35 
QuestionThe reason behind the differences of this.Font = fontdialog1.Font and btnTest.Font Pin
Lim Yuxuan1-Aug-08 18:37
Lim Yuxuan1-Aug-08 18:37 
AnswerRe: The reason behind the differences of this.Font = fontdialog1.Font and btnTest.Font Pin
Gideon Engelberth2-Aug-08 2:12
Gideon Engelberth2-Aug-08 2:12 
GeneralRe: The reason behind the differences of this.Font = fontdialog1.Font and btnTest.Font Pin
Lim Yuxuan2-Aug-08 4:56
Lim Yuxuan2-Aug-08 4:56 
QuestionAdd rular in toolbar Pin
amitshan1-Aug-08 18:13
amitshan1-Aug-08 18:13 
AnswerRe: Add rular in toolbar Pin
Krazy Programmer1-Aug-08 22:13
Krazy Programmer1-Aug-08 22:13 
AnswerRe: Add rular in toolbar Pin
Paul Conrad2-Aug-08 10:29
professionalPaul Conrad2-Aug-08 10:29 
QuestionRegex Match counting problem Pin
Mohammad A Gdeisat1-Aug-08 17:06
Mohammad A Gdeisat1-Aug-08 17:06 
AnswerRe: Regex Match counting problem Pin
User 66582-Aug-08 0:56
User 66582-Aug-08 0:56 
GeneralRe: Regex Match counting problem Pin
Mohammad A Gdeisat2-Aug-08 0:59
Mohammad A Gdeisat2-Aug-08 0:59 
GeneralRe: Regex Match counting problem [modified] Pin
User 66582-Aug-08 1:08
User 66582-Aug-08 1:08 
AnswerRe: Regex Match counting problem Pin
Gideon Engelberth2-Aug-08 2:22
Gideon Engelberth2-Aug-08 2:22 

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.