Click here to Skip to main content
15,902,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
'Drew7-Aug-07 7:24
'Drew7-Aug-07 7:24 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
Dave Kreskowiak7-Aug-07 11:49
mveDave Kreskowiak7-Aug-07 11:49 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
'Drew7-Aug-07 12:14
'Drew7-Aug-07 12:14 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
Dave Kreskowiak7-Aug-07 12:50
mveDave Kreskowiak7-Aug-07 12:50 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
'Drew7-Aug-07 12:56
'Drew7-Aug-07 12:56 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
emunews31-Oct-08 3:15
emunews31-Oct-08 3:15 
QuestionChanging the location of a form through code Pin
'Drew6-Aug-07 13:01
'Drew6-Aug-07 13:01 
AnswerRe: Changing the location of a form through code Pin
Luc Pattyn6-Aug-07 13:17
sitebuilderLuc Pattyn6-Aug-07 13:17 
Hi again,

Your earlier post was on size, and you can protect size with the Form.MinimumSize
property (it will refuse a Size that is less than that); just give it a reasonable
minimum with Visual Designer. You could also set a MaximumSize, but there is no need AFAIK.

As far as location is concerned, if Form.StartPosition is not set to Manual, you have no
control; and if it is, you are responsible; bad coordinates will be accepted but may put
it off-screen. So you may want to validate them, by comparing with (0,0) and
SystemInformation.PrimaryMonitorSize, assuming you only have one monitor.
With multiple monitors it gets complex easily.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Changing the location of a form through code Pin
'Drew6-Aug-07 13:23
'Drew6-Aug-07 13:23 
GeneralRe: Changing the location of a form through code Pin
The ANZAC6-Aug-07 13:28
The ANZAC6-Aug-07 13:28 
GeneralRe: Changing the location of a form through code Pin
Luc Pattyn6-Aug-07 13:31
sitebuilderLuc Pattyn6-Aug-07 13:31 
Questiongetting memory info from wmi Pin
dduffy6-Aug-07 11:33
dduffy6-Aug-07 11:33 
AnswerRe: getting memory info from wmi [modified] Pin
Luc Pattyn6-Aug-07 11:41
sitebuilderLuc Pattyn6-Aug-07 11:41 
AnswerRe: getting memory info from wmi Pin
'Drew6-Aug-07 11:53
'Drew6-Aug-07 11:53 
GeneralRe: getting memory info from wmi Pin
Luc Pattyn6-Aug-07 12:00
sitebuilderLuc Pattyn6-Aug-07 12:00 
GeneralRe: getting memory info from wmi Pin
'Drew6-Aug-07 12:17
'Drew6-Aug-07 12:17 
QuestionResizing a form in code Pin
'Drew6-Aug-07 11:09
'Drew6-Aug-07 11:09 
AnswerRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:12
sitebuilderLuc Pattyn6-Aug-07 11:12 
QuestionRe: Resizing a form in code Pin
'Drew6-Aug-07 11:23
'Drew6-Aug-07 11:23 
AnswerRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:27
sitebuilderLuc Pattyn6-Aug-07 11:27 
QuestionRe: Resizing a form in code Pin
'Drew6-Aug-07 11:41
'Drew6-Aug-07 11:41 
AnswerRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:46
sitebuilderLuc Pattyn6-Aug-07 11:46 
GeneralRe: Resizing a form in code Pin
'Drew6-Aug-07 11:47
'Drew6-Aug-07 11:47 
GeneralRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:56
sitebuilderLuc Pattyn6-Aug-07 11:56 
GeneralRe: Resizing a form in code Pin
The ANZAC6-Aug-07 12:01
The ANZAC6-Aug-07 12:01 

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.