Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: C to C# Array address offsetting Pin
Heath Stewart6-Jan-05 14:36
protectorHeath Stewart6-Jan-05 14:36 
QuestionIs it possible to put a watermark on a form? Pin
Member 966-Jan-05 8:08
Member 966-Jan-05 8:08 
AnswerRe: Is it possible to put a watermark on a form? Pin
perlmunger6-Jan-05 9:14
perlmunger6-Jan-05 9:14 
GeneralRe: Is it possible to put a watermark on a form? Pin
Member 966-Jan-05 10:30
Member 966-Jan-05 10:30 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart6-Jan-05 14:29
protectorHeath Stewart6-Jan-05 14:29 
GeneralRe: Is it possible to put a watermark on a form? Pin
perlmunger6-Jan-05 15:12
perlmunger6-Jan-05 15:12 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart6-Jan-05 15:47
protectorHeath Stewart6-Jan-05 15:47 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart6-Jan-05 14:31
protectorHeath Stewart6-Jan-05 14:31 
That is not true. The child controls are painted over their parent, so only the form needs to draw the watermark and you don't have to calculate which "pieces" to draw. See my reply to him at http://www.codeproject.com/script/comments/forums.asp?msg=1010209&forumid=1649#xx1010209xx[^].

Also, you never use CreateGraphics for owner-drawing unless you want your painted object to disappear when a section or all of it is invalidated. When possible, override OnPaint; otherwise, handle the Paint event of the control you wish to paint.

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

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Is it possible to put a watermark on a form? Pin
perlmunger6-Jan-05 14:59
perlmunger6-Jan-05 14:59 
AnswerRe: Is it possible to put a watermark on a form? Pin
Heath Stewart6-Jan-05 15:44
protectorHeath Stewart6-Jan-05 15:44 
GeneralRe: Is it possible to put a watermark on a form? Pin
perlmunger6-Jan-05 16:04
perlmunger6-Jan-05 16:04 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart7-Jan-05 5:40
protectorHeath Stewart7-Jan-05 5:40 
GeneralRe: Is it possible to put a watermark on a form? Pin
Member 967-Jan-05 5:22
Member 967-Jan-05 5:22 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart7-Jan-05 5:31
protectorHeath Stewart7-Jan-05 5:31 
GeneralRe: Is it possible to put a watermark on a form? Pin
Member 967-Jan-05 8:39
Member 967-Jan-05 8:39 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart7-Jan-05 9:09
protectorHeath Stewart7-Jan-05 9:09 
GeneralRe: Is it possible to put a watermark on a form? Pin
Member 967-Jan-05 9:29
Member 967-Jan-05 9:29 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart7-Jan-05 11:38
protectorHeath Stewart7-Jan-05 11:38 
GeneralApplication.Exit Pin
pcJuice6-Jan-05 7:42
pcJuice6-Jan-05 7:42 
GeneralRe: Application.Exit Pin
Nick Parker6-Jan-05 7:56
protectorNick Parker6-Jan-05 7:56 
GeneralRe: Application.Exit Pin
pcJuice6-Jan-05 8:01
pcJuice6-Jan-05 8:01 
GeneralRe: Application.Exit Pin
Adam Goossens7-Jan-05 0:55
Adam Goossens7-Jan-05 0:55 
GeneralRe: Application.Exit Pin
Adam Goossens7-Jan-05 1:21
Adam Goossens7-Jan-05 1:21 
GeneralRe: Application.Exit Pin
pcJuice7-Jan-05 13:51
pcJuice7-Jan-05 13:51 
QuestionHow much exception handling is to much? Pin
KevinMac6-Jan-05 6:26
KevinMac6-Jan-05 6:26 

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.