Click here to Skip to main content
15,891,633 members
Home / Discussions / C#
   

C#

 
QuestionSystem Tray Icon Update Pin
Coffmans5-Nov-05 6:36
Coffmans5-Nov-05 6:36 
AnswerRe: System Tray Icon Update Pin
Heath Stewart5-Nov-05 12:33
protectorHeath Stewart5-Nov-05 12:33 
GeneralRe: System Tray Icon Update Pin
Coffmans5-Nov-05 13:33
Coffmans5-Nov-05 13:33 
GeneralRe: System Tray Icon Update Pin
Heath Stewart5-Nov-05 13:36
protectorHeath Stewart5-Nov-05 13:36 
QuestionProblems printing Pin
naglbitur5-Nov-05 6:15
naglbitur5-Nov-05 6:15 
AnswerRe: Problems printing Pin
Heath Stewart5-Nov-05 12:00
protectorHeath Stewart5-Nov-05 12:00 
GeneralRe: Problems printing Pin
naglbitur5-Nov-05 21:54
naglbitur5-Nov-05 21:54 
GeneralRe: Problems printing Pin
Heath Stewart6-Nov-05 5:55
protectorHeath Stewart6-Nov-05 5:55 
For your curves and other lines you do the same thing you're already doing. I recommend refactoring that code into a new method that takes at least a Graphics object as a parameter. Then, you can call that method from your OnPaint override (or Paint event handler, but overriding virtual or abstract methods is faster than even handlers and you have more control) and your printing override (or even handler). This makes your code more maintainable since the same code is used over and any changes affect both painting on screen and to a printer device.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralRe: Problems printing Pin
naglbitur31-Dec-05 8:02
naglbitur31-Dec-05 8:02 
AnswerRe: Problems printing Pin
Heath Stewart1-Jan-06 10:06
protectorHeath Stewart1-Jan-06 10:06 
GeneralRe: Problems printing Pin
naglbitur1-Jan-06 19:57
naglbitur1-Jan-06 19:57 
GeneralRe: Problems printing Pin
naglbitur28-Nov-05 12:45
naglbitur28-Nov-05 12:45 
GeneralRe: Problems printing Pin
Heath Stewart28-Nov-05 20:37
protectorHeath Stewart28-Nov-05 20:37 
GeneralRe: Problems printing Pin
naglbitur29-Nov-05 6:40
naglbitur29-Nov-05 6:40 
QuestionMail Server Windows App C# Pin
TAREQ F ABUZUHRI5-Nov-05 6:04
TAREQ F ABUZUHRI5-Nov-05 6:04 
AnswerRe: Mail Server Windows App C# Pin
Heath Stewart5-Nov-05 11:54
protectorHeath Stewart5-Nov-05 11:54 
QuestionSend EnterKey to telnet Pin
Niles Davis5-Nov-05 3:51
Niles Davis5-Nov-05 3:51 
AnswerRe: Send EnterKey to telnet Pin
Heath Stewart5-Nov-05 11:45
protectorHeath Stewart5-Nov-05 11:45 
QuestionCan't parse SOAP with XPath Pin
Zhornyk5-Nov-05 3:23
Zhornyk5-Nov-05 3:23 
AnswerRe: Can't parse SOAP with XPath Pin
leppie5-Nov-05 3:32
leppie5-Nov-05 3:32 
GeneralRe: Can't parse SOAP with XPath Pin
Zhornyk5-Nov-05 4:00
Zhornyk5-Nov-05 4:00 
GeneralRe: Can't parse SOAP with XPath Pin
leppie5-Nov-05 4:14
leppie5-Nov-05 4:14 
QuestionNetLocalGroupAddMembers Pin
g00fyman5-Nov-05 0:14
g00fyman5-Nov-05 0:14 
AnswerRe: NetLocalGroupAddMembers Pin
S. Senthil Kumar5-Nov-05 2:02
S. Senthil Kumar5-Nov-05 2:02 
GeneralRe: NetLocalGroupAddMembers Pin
g00fyman5-Nov-05 2:12
g00fyman5-Nov-05 2:12 

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.