Click here to Skip to main content
15,918,976 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 14:30
sitebuilderLuc Pattyn11-Nov-07 14:30 
GeneralRe: Paint a rectangle [modified] Pin
The ANZAC11-Nov-07 14:48
The ANZAC11-Nov-07 14:48 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:10
sitebuilderLuc Pattyn11-Nov-07 15:10 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:13
The ANZAC11-Nov-07 15:13 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 14:56
The ANZAC11-Nov-07 14:56 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:01
sitebuilderLuc Pattyn11-Nov-07 15:01 
GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:07
The ANZAC11-Nov-07 15:07 
GeneralRe: Paint a rectangle Pin
Luc Pattyn11-Nov-07 15:15
sitebuilderLuc Pattyn11-Nov-07 15:15 
There seem to be two kinds of drawing methods in ControlPaint:
- the ones working on the screen, using screen coordinates, ignoring all windows, just
painting everywhere;
- the ones needing a Graphics; now a Graphics always has clipping built-in, that's one of
its features (did you ever care about a DrawString exceeding the width of a Control?).

As another reply already told you, you (theoretically) cannot make a Control's OnPaint
paint outside the Control, i.e. you must set the Control's Size large enough so it contains
all the areas where you want it to paint something (that's how non-rectangular Forms
basically work, as far as I can tell from reading some articles, I am not really in to this).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: Paint a rectangle Pin
The ANZAC11-Nov-07 15:17
The ANZAC11-Nov-07 15:17 
QuestionCystal Report Pin
Assaf8210-Nov-07 22:38
Assaf8210-Nov-07 22:38 
AnswerRe: Cystal Report Pin
AliAmjad10-Nov-07 23:24
AliAmjad10-Nov-07 23:24 
Questionmake a switch with serial port Pin
nasser5910-Nov-07 8:51
nasser5910-Nov-07 8:51 
AnswerRe: make a switch with serial port Pin
Fu Manchu10-Nov-07 13:23
Fu Manchu10-Nov-07 13:23 
AnswerRe: make a switch with serial port [modified] Pin
Luc Pattyn10-Nov-07 14:38
sitebuilderLuc Pattyn10-Nov-07 14:38 
QuestionHow to manipulate disk quota using vb 6? Pin
gblue0710-Nov-07 6:09
gblue0710-Nov-07 6:09 
QuestionString to Object Question Pin
Fahad Sadah10-Nov-07 5:37
Fahad Sadah10-Nov-07 5:37 
AnswerRe: String to Object Question Pin
AliAmjad10-Nov-07 5:44
AliAmjad10-Nov-07 5:44 
GeneralRe: String to Object Question Pin
Colin Angus Mackay10-Nov-07 10:46
Colin Angus Mackay10-Nov-07 10:46 
GeneralRe: String to Object Question Pin
AliAmjad10-Nov-07 22:21
AliAmjad10-Nov-07 22:21 
GeneralRe: String to Object Question Pin
Fahad Sadah10-Nov-07 23:00
Fahad Sadah10-Nov-07 23:00 
GeneralRe: String to Object Question Pin
AliAmjad10-Nov-07 23:38
AliAmjad10-Nov-07 23:38 
GeneralRe: String to Object Question Pin
Colin Angus Mackay11-Nov-07 0:30
Colin Angus Mackay11-Nov-07 0:30 
GeneralRe: String to Object Question Pin
AliAmjad11-Nov-07 1:29
AliAmjad11-Nov-07 1:29 
GeneralRe: String to Object Question Pin
Colin Angus Mackay11-Nov-07 3:00
Colin Angus Mackay11-Nov-07 3:00 
GeneralRe: String to Object Question Pin
AliAmjad11-Nov-07 4:55
AliAmjad11-Nov-07 4:55 

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.