Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to put a watermark on a form? Pin
Heath Stewart6-Jan-05 14:31
protectorHeath Stewart6-Jan-05 14:31 
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 
Heath Stewart wrote:
If you're form contains controls you've defined, be sure you're extending the right class. Far too often I see people extending UserControl, which is a container control with a lot of overhead. Notice how I simply extended Control for my example (and an example it is, mind you)? Much less overhead. A window (since every control is a window) is still required unless you take that unweildy approach from the first reply, whether it uses a clipping region or layered windows (which will give you better performance, but - again - is only supported on Windows 2000 and newer).

Nope, I'm just using out of the box Infragistics components. I have a healthy respect for the problems that you can run into making your own controls based on my experience doing it with mfc / win32 stuff years ago. Our software is commercial, has to support a wide variety of opsys, hardware and locales and so we use out of the box stuff only in general.

The problem I alluded to turned out to be in an underlying business object, completely unrelated and your example worked fine on my XP pro development station.

My only further question is that your method appears to work just fine, however you mentioned windows 2000 and above for layered windows, what will happen if I attempt this on a Win98 system? Will it not work, or will the text completely obscure the existing controls on the form or interfere with them in some way? What I'm hoping for is that the watermark text will be translucent so that it really is a watermark and doesn't interfere with the underlying controls already on the form.

However if this is not the case for win98 I can't use it since we (sadly) must support w98.
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 
AnswerRe: How much exception handling is to much? Pin
Andy Brummer6-Jan-05 7:57
sitebuilderAndy Brummer6-Jan-05 7:57 
GeneralRe: How much exception handling is to much? Pin
Heath Stewart6-Jan-05 13:52
protectorHeath Stewart6-Jan-05 13:52 
GeneralRe: How much exception handling is to much? Pin
Andy Brummer6-Jan-05 16:06
sitebuilderAndy Brummer6-Jan-05 16:06 
GeneralAnother C to c# help.... Pin
Blubbo6-Jan-05 5:48
Blubbo6-Jan-05 5:48 
GeneralRe: Another C to c# help.... Pin
Heath Stewart6-Jan-05 13:41
protectorHeath Stewart6-Jan-05 13:41 
GeneralDisabled Button still accepts presses Pin
mikey_g6-Jan-05 5:45
mikey_g6-Jan-05 5:45 
GeneralRe: Disabled Button still accepts presses Pin
Nick Parker6-Jan-05 7:04
protectorNick Parker6-Jan-05 7:04 

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.