Click here to Skip to main content
15,909,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: USB (removable) drives in listbox Pin
simplicitylabs8-May-07 12:06
simplicitylabs8-May-07 12:06 
GeneralRe: USB (removable) drives in listbox Pin
simplicitylabs8-May-07 12:16
simplicitylabs8-May-07 12:16 
AnswerRe: USB (removable) drives in listbox Pin
AFSEKI8-May-07 23:11
AFSEKI8-May-07 23:11 
Questionproblem to use TreeView in show Hierarchy data. Pin
hdv2128-May-07 8:52
hdv2128-May-07 8:52 
AnswerRe: problem to use TreeView in show Hierarchy data. Pin
PIEBALDconsult8-May-07 9:51
mvePIEBALDconsult8-May-07 9:51 
AnswerRe: problem to use TreeView in show Hierarchy data. Pin
PIEBALDconsult8-May-07 11:13
mvePIEBALDconsult8-May-07 11:13 
QuestionProblems with GUI in Visual Studio C# .Net Pin
zeeShan anSari8-May-07 8:05
zeeShan anSari8-May-07 8:05 
AnswerRe: Problems with GUI in Visual Studio C# .Net Pin
Luc Pattyn8-May-07 8:25
sitebuilderLuc Pattyn8-May-07 8:25 
Hi,

1.
to save an image, use Image.Save()

2.
dont draw in MouseDown or any other non-paint event handler;
all drawing should be done in the paint handler.
Hence, use data structures to describe your drawing, modify the data as you
like (e.g. in OnMouseDown), but draw it in OnPaint().

There are many benefits now:
- the drawing gets redrawn when necessary (e.g. on Resize, restore from
minimized, etc)
- the drawing can be saved by saving the data structures
- better code structure.

Smile | :)



Luc Pattyn

[My Articles]

GeneralRe: Problems with GUI in Visual Studio C# .Net Pin
zeeShan anSari9-May-07 9:54
zeeShan anSari9-May-07 9:54 
QuestionRedrawing Screen Pin
rahvyn68-May-07 7:45
rahvyn68-May-07 7:45 
QuestionScanning all files in a computer Pin
sharpiesharpie8-May-07 7:09
sharpiesharpie8-May-07 7:09 
AnswerRe: Scanning all files in a computer Pin
Dave Kreskowiak8-May-07 7:34
mveDave Kreskowiak8-May-07 7:34 
GeneralRe: Scanning all files in a computer Pin
sharpiesharpie8-May-07 11:27
sharpiesharpie8-May-07 11:27 
GeneralRe: Scanning all files in a computer Pin
Luc Pattyn8-May-07 12:16
sitebuilderLuc Pattyn8-May-07 12:16 
GeneralRe: Scanning all files in a computer Pin
Dave Kreskowiak8-May-07 17:29
mveDave Kreskowiak8-May-07 17:29 
QuestionHow to determine primary columns in a table Pin
Naveed Kamboh8-May-07 6:32
Naveed Kamboh8-May-07 6:32 
AnswerRe: How to determine primary columns in a table Pin
Giorgi Dalakishvili8-May-07 7:15
mentorGiorgi Dalakishvili8-May-07 7:15 
QuestionUnable to use decimal in "if" statement. Pin
Goalie358-May-07 5:43
Goalie358-May-07 5:43 
AnswerRe: Unable to use decimal in "if" statement. Pin
ccitt8-May-07 5:47
ccitt8-May-07 5:47 
AnswerRe: Unable to use decimal in "if" statement. Pin
Guffa8-May-07 5:55
Guffa8-May-07 5:55 
Questionloop dictionary Pin
arkiboys8-May-07 5:39
arkiboys8-May-07 5:39 
AnswerRe: loop dictionary Pin
Judah Gabriel Himango8-May-07 5:57
sponsorJudah Gabriel Himango8-May-07 5:57 
AnswerRe: loop dictionary Pin
Martin#8-May-07 6:06
Martin#8-May-07 6:06 
QuestionCreating a Windows Service account... Pin
ccitt8-May-07 5:19
ccitt8-May-07 5:19 
AnswerRe: Creating a Windows Service account... Pin
ccitt8-May-07 6:45
ccitt8-May-07 6:45 

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.