Click here to Skip to main content
15,893,401 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Dave Kreskowiak17-Dec-08 2:06
mveDave Kreskowiak17-Dec-08 2:06 
QuestionDetecting a USB drive arrival/removal, whose Drive Letter has been removed Pin
G. Myers16-Dec-08 11:19
G. Myers16-Dec-08 11:19 
QuestionClass inference Pin
DwR16-Dec-08 9:28
DwR16-Dec-08 9:28 
AnswerRe: Class inference Pin
Christian Graus16-Dec-08 10:00
protectorChristian Graus16-Dec-08 10:00 
AnswerRe: Class inference Pin
Wendelius16-Dec-08 11:47
mentorWendelius16-Dec-08 11:47 
AnswerRe: Class inference Pin
Chamadness16-Dec-08 20:53
Chamadness16-Dec-08 20:53 
QuestionProblem drawing shapes when form is clicked Pin
SilentCodingOne16-Dec-08 8:42
SilentCodingOne16-Dec-08 8:42 
AnswerRe: Problem drawing shapes when form is clicked Pin
Christian Graus16-Dec-08 8:51
protectorChristian Graus16-Dec-08 8:51 
SilentCodingOne wrote:
private void frmMain_Click(PaintEventArgs e)
{
Graphics imgObj = e.Graphics;
imgDraw.Draw(imgObj);

}



Well, a click event does not recieve painteventargs, so I don't know how this is supposed to fit in. The way to force a paint event is to call Invalidate() on the form. If you do this in an actual click event, after setting up the box that needs to be drawn, then the paint event should be set up to draw the box or whatever you want.

Christian Graus

Driven to the arms of OSX by Vista.

GeneralRe: Problem drawing shapes when form is clicked Pin
SilentCodingOne16-Dec-08 10:28
SilentCodingOne16-Dec-08 10:28 
GeneralRe: Problem drawing shapes when form is clicked Pin
Christian Graus16-Dec-08 12:55
protectorChristian Graus16-Dec-08 12:55 
QuestionThread.Sleep and WebBrowser... Okay to use together? Pin
Matthew Klein16-Dec-08 8:36
Matthew Klein16-Dec-08 8:36 
AnswerRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Christian Graus16-Dec-08 8:52
protectorChristian Graus16-Dec-08 8:52 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Matthew Klein16-Dec-08 11:48
Matthew Klein16-Dec-08 11:48 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
User 665816-Dec-08 11:57
User 665816-Dec-08 11:57 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Christian Graus16-Dec-08 13:14
protectorChristian Graus16-Dec-08 13:14 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Expert Coming16-Dec-08 16:26
Expert Coming16-Dec-08 16:26 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Christian Graus16-Dec-08 17:16
protectorChristian Graus16-Dec-08 17:16 
Questiontextbox validation Pin
Zeyad Jalil16-Dec-08 6:20
professionalZeyad Jalil16-Dec-08 6:20 
AnswerRe: textbox validation Pin
EliottA16-Dec-08 6:33
EliottA16-Dec-08 6:33 
AnswerRe: textbox validation Pin
Lev Danielyan16-Dec-08 6:52
Lev Danielyan16-Dec-08 6:52 
AnswerRe: textbox validation Pin
programmervb.netc++16-Dec-08 12:59
programmervb.netc++16-Dec-08 12:59 
AnswerRe: textbox validation Pin
DaveyM6916-Dec-08 13:35
professionalDaveyM6916-Dec-08 13:35 
QuestionWhere are the files?? Pin
Muammar©16-Dec-08 6:10
Muammar©16-Dec-08 6:10 
GeneralRe: Where are the files?? Pin
Luc Pattyn16-Dec-08 6:37
sitebuilderLuc Pattyn16-Dec-08 6:37 
GeneralRe: Where are the files?? Pin
Muammar©16-Dec-08 18:11
Muammar©16-Dec-08 18:11 

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.