Click here to Skip to main content
15,911,890 members
Home / Discussions / C#
   

C#

 
GeneralRe: Object Inheritance Pin
therealmccoy8-Jul-05 5:33
therealmccoy8-Jul-05 5:33 
GeneralRe: Object Inheritance Pin
S. Senthil Kumar8-Jul-05 5:46
S. Senthil Kumar8-Jul-05 5:46 
GeneralOut of Memory when I Drawing Pin
Alex Cutovoi8-Jul-05 4:21
Alex Cutovoi8-Jul-05 4:21 
GeneralRe: Out of Memory when I Drawing Pin
leppie8-Jul-05 4:24
leppie8-Jul-05 4:24 
GeneralRe: Out of Memory when I Drawing Pin
Alex Cutovoi8-Jul-05 6:42
Alex Cutovoi8-Jul-05 6:42 
GeneralRe: Out of Memory when I Drawing Pin
leppie8-Jul-05 6:50
leppie8-Jul-05 6:50 
GeneralRe: Out of Memory when I Drawing Pin
Alex Cutovoi8-Jul-05 9:54
Alex Cutovoi8-Jul-05 9:54 
GeneralRe: Out of Memory when I Drawing Pin
Guffa8-Jul-05 10:41
Guffa8-Jul-05 10:41 
No, it's not correct.

You store a reference to the graphics object in the draw event, but that is useless once the draw event has ended. You can't use it from the keypress event.

Also, you shouldn't just draw things on the screen. The proper way to do this is to store where you want your graphics drawn, and invalidate the control where you want it drawn, so that new draw events are executed that can draw the graphics. The graphics object that you get in the draw event is clipped and ready to draw exactly the area that is needed so that you don't draw on other windows that might partly overlap your window.

---
b { font-weight: normal; }

GeneralRe: Out of Memory when I Drawing Pin
Alex Cutovoi9-Jul-05 6:32
Alex Cutovoi9-Jul-05 6:32 
GeneralRe: Out of Memory when I Drawing Pin
Alex Cutovoi9-Jul-05 6:32
Alex Cutovoi9-Jul-05 6:32 
GeneralS.M.A.R.T. Support Pin
bernardoh8-Jul-05 4:16
bernardoh8-Jul-05 4:16 
GeneralRe: S.M.A.R.T. Support Pin
leppie8-Jul-05 4:22
leppie8-Jul-05 4:22 
GeneralRe: S.M.A.R.T. Support Pin
bernardoh8-Jul-05 4:25
bernardoh8-Jul-05 4:25 
QuestionHow can I delete multiple items from collection? Pin
Tesic Goran8-Jul-05 3:58
professionalTesic Goran8-Jul-05 3:58 
AnswerRe: How can I delete multiple items from collection? Pin
leppie8-Jul-05 4:20
leppie8-Jul-05 4:20 
GeneralRe: How can I delete multiple items from collection? Pin
Tesic Goran8-Jul-05 4:26
professionalTesic Goran8-Jul-05 4:26 
GeneralRe: How can I delete multiple items from collection? Pin
S. Senthil Kumar8-Jul-05 5:50
S. Senthil Kumar8-Jul-05 5:50 
AnswerRe: How can I delete multiple items from collection? Pin
Sean Michael Murphy8-Jul-05 7:14
Sean Michael Murphy8-Jul-05 7:14 
GeneralDockable Tool Windows Pin
PatteOne8-Jul-05 3:47
PatteOne8-Jul-05 3:47 
Generalhelp for adding com component Pin
arusmemon8-Jul-05 3:33
arusmemon8-Jul-05 3:33 
GeneralDataGridBoolColumn Problem Pin
webhay8-Jul-05 2:14
webhay8-Jul-05 2:14 
GeneralRe: DataGridBoolColumn Problem Pin
Robert Rohde8-Jul-05 5:02
Robert Rohde8-Jul-05 5:02 
GeneralRe: DataGridBoolColumn Problem Pin
webhay8-Jul-05 5:17
webhay8-Jul-05 5:17 
GeneralRe: DataGridBoolColumn Problem Pin
Alomgir Miah8-Jul-05 6:01
Alomgir Miah8-Jul-05 6:01 
GeneralRe: DataGridBoolColumn Problem Pin
webhay8-Jul-05 6:57
webhay8-Jul-05 6:57 

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.