Click here to Skip to main content
15,908,112 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading, just professionall please... Pin
Mark Salsbery2-Aug-08 7:30
Mark Salsbery2-Aug-08 7:30 
AnswerRe: Threading, just professionall please... Pin
User 66582-Aug-08 7:41
User 66582-Aug-08 7:41 
QuestionDNS issue Pin
George_George2-Aug-08 3:45
George_George2-Aug-08 3:45 
QuestionDownload .css and script files on downloading aspx page [modified] Pin
Medha jha2-Aug-08 1:12
Medha jha2-Aug-08 1:12 
QuestionDNS access error? Pin
George_George2-Aug-08 1:10
George_George2-Aug-08 1:10 
AnswerRe: DNS access error? Pin
S. Senthil Kumar2-Aug-08 7:54
S. Senthil Kumar2-Aug-08 7:54 
GeneralRe: DNS access error? Pin
George_George3-Aug-08 17:22
George_George3-Aug-08 17:22 
QuestionSql Transactions Pin
mrcooll1-Aug-08 23:56
mrcooll1-Aug-08 23:56 
AnswerRe: Sql Transactions Pin
mrcooll2-Aug-08 2:53
mrcooll2-Aug-08 2:53 
AnswerRe: Sql Transactions Pin
PIEBALDconsult2-Aug-08 5:24
mvePIEBALDconsult2-Aug-08 5:24 
QuestionHow to forbid a control to get focus ? Pin
xu_xuthus1-Aug-08 23:55
xu_xuthus1-Aug-08 23:55 
AnswerRe: How to forbid a control to get focus ? Pin
PIEBALDconsult2-Aug-08 5:18
mvePIEBALDconsult2-Aug-08 5:18 
AnswerRe: How to forbid a control to get focus ? Pin
nelsonpaixao3-Aug-08 14:57
nelsonpaixao3-Aug-08 14:57 
QuestionNHibernate Pin
Puneet Bhatnagar1-Aug-08 23:18
Puneet Bhatnagar1-Aug-08 23:18 
AnswerRe: NHibernate Pin
Paul Conrad2-Aug-08 18:56
professionalPaul Conrad2-Aug-08 18:56 
QuestionCollections and sorting using an interface Pin
DaveyM691-Aug-08 21:55
professionalDaveyM691-Aug-08 21:55 
AnswerRe: Collections and sorting using an interface Pin
User 66581-Aug-08 22:56
User 66581-Aug-08 22:56 
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

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.