Click here to Skip to main content
16,006,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing a collection object to a method as a ref parameter... or not? Pin
lvanerstrom15-Dec-06 18:34
lvanerstrom15-Dec-06 18:34 
QuestionAnybody know how to upload video using ASP.NET? Pin
mujin0315-Dec-06 17:12
mujin0315-Dec-06 17:12 
AnswerRe: Anybody know how to upload video using ASP.NET? Pin
Alper Camel17-Dec-06 9:04
Alper Camel17-Dec-06 9:04 
QuestionGetting dynamic Datagrid Pin
narendrakumarp15-Dec-06 16:39
narendrakumarp15-Dec-06 16:39 
QuestionNewbie problems Pin
new to this15-Dec-06 15:10
new to this15-Dec-06 15:10 
AnswerRe: Newbie problems Pin
Guffa15-Dec-06 17:08
Guffa15-Dec-06 17:08 
QuestionCreating an own Rectangle class Pin
babbelfisken15-Dec-06 13:30
babbelfisken15-Dec-06 13:30 
AnswerRe: Creating an own Rectangle class Pin
Guffa15-Dec-06 15:58
Guffa15-Dec-06 15:58 
For a simple test, you don't have to bother about the Paint event. Just draw anything on the screen to see if you can do it. What you draw will of course not be persisted by windows, and might be erased by any window redrawing itself, but that doesn't seem to be your first concern right now.

When you want what you draw to be persisted by windows, you have to draw it using the Paint event. The Paint event is used to redraw a control, so if you want to draw something on a control, you just make sure that the code in the Paint event draws it, and call Invalidate on the control. Then the GUI will use the Paint event to redraw the control, and your code will also be used. What you draw will also be persisted, as the GUI will use your code whenever the control has to be redrawn, for example when you switch back and forth between windows.

---
It's amazing to see how much work some people will go through just to avoid a little bit of work.

AnswerRe: Creating an own Rectangle class Pin
CPallini15-Dec-06 22:29
mveCPallini15-Dec-06 22:29 
Questionpersistant variable? Pin
amatbrewer15-Dec-06 13:12
amatbrewer15-Dec-06 13:12 
AnswerRe: persistant variable? Pin
Guffa15-Dec-06 17:20
Guffa15-Dec-06 17:20 
JokeRe: persistant variable? Pin
amatbrewer18-Dec-06 5:24
amatbrewer18-Dec-06 5:24 
AnswerRe: persistant variable? Pin
Luc Pattyn15-Dec-06 18:47
sitebuilderLuc Pattyn15-Dec-06 18:47 
GeneralRe: persistant variable? Pin
Guffa15-Dec-06 19:20
Guffa15-Dec-06 19:20 
GeneralRe: persistant variable? Pin
Luc Pattyn16-Dec-06 4:35
sitebuilderLuc Pattyn16-Dec-06 4:35 
GeneralRe: persistant variable? Pin
Guffa16-Dec-06 16:04
Guffa16-Dec-06 16:04 
QuestionRegex Help Pin
Expert Coming15-Dec-06 11:52
Expert Coming15-Dec-06 11:52 
AnswerRe: Regex Help Pin
Ravi Bhavnani15-Dec-06 11:58
professionalRavi Bhavnani15-Dec-06 11:58 
AnswerRe: Regex Help Pin
User 665815-Dec-06 11:59
User 665815-Dec-06 11:59 
GeneralRe: Regex Help Pin
Expert Coming15-Dec-06 12:03
Expert Coming15-Dec-06 12:03 
QuestionArrayList??????????? Pin
sajid.salim.khan15-Dec-06 10:20
sajid.salim.khan15-Dec-06 10:20 
AnswerRe: ArrayList??????????? Pin
User 665815-Dec-06 10:38
User 665815-Dec-06 10:38 
QuestionConfused about sockets... Pin
Lord Kixdemp15-Dec-06 10:14
Lord Kixdemp15-Dec-06 10:14 
AnswerRe: Confused about sockets... Pin
Ravi Bhavnani15-Dec-06 11:57
professionalRavi Bhavnani15-Dec-06 11:57 
GeneralRe: Confused about sockets... Pin
Lord Kixdemp15-Dec-06 17:27
Lord Kixdemp15-Dec-06 17:27 

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.