Click here to Skip to main content
15,919,774 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: ComboBox Type Pin
Jay Royall8-Apr-09 23:23
Jay Royall8-Apr-09 23:23 
GeneralRe: ComboBox Type Pin
Dalek Dave8-Apr-09 23:39
professionalDalek Dave8-Apr-09 23:39 
Questionread grayscale image Pin
shefa' isied8-Apr-09 20:01
shefa' isied8-Apr-09 20:01 
AnswerRe: read grayscale image Pin
Deresen8-Apr-09 23:45
Deresen8-Apr-09 23:45 
GeneralRe: read grayscale image Pin
shefa' isied9-Apr-09 2:09
shefa' isied9-Apr-09 2:09 
GeneralRe: read grayscale image Pin
Dave Kreskowiak9-Apr-09 3:33
mveDave Kreskowiak9-Apr-09 3:33 
QuestionDuplicate Objects Pin
SeanTWard8-Apr-09 16:55
SeanTWard8-Apr-09 16:55 
AnswerRe: Duplicate Objects Pin
Luc Pattyn8-Apr-09 17:34
sitebuilderLuc Pattyn8-Apr-09 17:34 
Hi,

When a form gets a new size (including gets maximized), but also when it gets minimized, the Resize event will fire. When minimizing, the Form's location and size will be fake, which is fine most of the time. However, you have a Refresh() inside the Resize() handler, I have never seen that before, and it doesn't make sense to me. Windows by itself will fire a Paint event if there is a need, typically when you enlarge, uncover, restore or maximize the form, but not when you minimize it. So I suggest to remove the Refresh().

remark: if you put a Panel on the Form, and anchor it to the 4 edges of the form (you can use Visual Designer to add, postion and anchor the Panel), you then can paint in that Panel's Paint handler instead of the Form's Paint handler; the advantage then is you don't have to account for the border width, the caption height, etc. All the coordinates inside the Panel's Paint handler are relative to the top left of the Panel.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Duplicate Objects Pin
SeanTWard8-Apr-09 17:46
SeanTWard8-Apr-09 17:46 
GeneralRe: Duplicate Objects Pin
Luc Pattyn8-Apr-09 17:57
sitebuilderLuc Pattyn8-Apr-09 17:57 
AnswerRe: Duplicate Objects Pin
Dave Kreskowiak8-Apr-09 17:36
mveDave Kreskowiak8-Apr-09 17:36 
GeneralRe: Duplicate Objects Pin
SeanTWard8-Apr-09 17:58
SeanTWard8-Apr-09 17:58 
GeneralRe: Duplicate Objects Pin
Luc Pattyn8-Apr-09 18:04
sitebuilderLuc Pattyn8-Apr-09 18:04 
GeneralRe: Duplicate Objects Pin
SeanTWard8-Apr-09 18:19
SeanTWard8-Apr-09 18:19 
Questionproblem related to tab control Pin
nazimghori8-Apr-09 16:37
nazimghori8-Apr-09 16:37 
AnswerRe: problem related to tab control Pin
Luc Pattyn8-Apr-09 16:49
sitebuilderLuc Pattyn8-Apr-09 16:49 
QuestionA Return to VB Email Pin
Dalek Dave8-Apr-09 13:20
professionalDalek Dave8-Apr-09 13:20 
AnswerRe: A Return to VB Email Pin
Dave Kreskowiak8-Apr-09 13:26
mveDave Kreskowiak8-Apr-09 13:26 
GeneralRe: A Return to VB Email Pin
Dalek Dave8-Apr-09 13:50
professionalDalek Dave8-Apr-09 13:50 
GeneralRe: A Return to VB Email Pin
Christian Graus8-Apr-09 14:31
protectorChristian Graus8-Apr-09 14:31 
GeneralRe: A Return to VB Email Pin
Dave Kreskowiak8-Apr-09 17:28
mveDave Kreskowiak8-Apr-09 17:28 
GeneralRe: A Return to VB Email Pin
Dalek Dave8-Apr-09 21:27
professionalDalek Dave8-Apr-09 21:27 
QuestionWhy is this loop intermittently slow? Pin
Steve Faust8-Apr-09 11:56
Steve Faust8-Apr-09 11:56 
AnswerRe: Why is this loop intermittently slow? Pin
Luc Pattyn8-Apr-09 12:40
sitebuilderLuc Pattyn8-Apr-09 12:40 
AnswerRe: Why is this loop intermittently slow? Pin
Dave Kreskowiak8-Apr-09 12:41
mveDave Kreskowiak8-Apr-09 12:41 

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.