Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralEXCEL question saving a file saving the the first column as read only Pin
macupryk6-Jan-05 9:51
macupryk6-Jan-05 9:51 
GeneralRe: EXCEL question saving a file saving the the first column as read only Pin
perlmunger6-Jan-05 11:24
perlmunger6-Jan-05 11:24 
GeneralC to C# Array address offsetting Pin
Anonymous6-Jan-05 9:17
Anonymous6-Jan-05 9:17 
GeneralRe: C to C# Array address offsetting Pin
Christian Graus6-Jan-05 12:26
protectorChristian Graus6-Jan-05 12:26 
GeneralRe: C to C# Array address offsetting Pin
Heath Stewart6-Jan-05 14:44
protectorHeath Stewart6-Jan-05 14:44 
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 
If it is possible, it's not trivial. You would probably have to determine the position of each of the controls and draw pieces of your image on the individual controls according to the place of the entire image over the form.

Say that you call CreateGraphics and get the graphics context for the form. You then create an offscreen context on which you draw your diagonal text. Then you iterate through your controls and find their position and size on the form. Then you clip the region of the offscreen graphics containing your text according to the position and size and then draw it on the control from which you got those dimensions. Although, I think that if you override the drawing of each individual control, you may cause your controls to function improperly. Anyhow, though it's probably possible I'm fairly certain it is not worth the effort. Wink | ;-)

Best Regards.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
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 
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 

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.