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

Visual Basic

 
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 
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 
IIRC on a multi-monitor environment, Windows puts every Form on the "primary monitor"
by default, and that might not be what you want.

If the desktop got extended over all monitors (that's a checkbox per monitor),
and if the monitors are arranged such that they (almost) cover a true rectangle,
then it makes sense to validate a form's bounds (thats location+size) against
SystemInformation.VirtualScreen

You may want to have a closer look at the Rectangle type, in particular Rectangle.Contains().

If the desktop does not extend over all monitors, then I don't know how forms get
positioned on those non-desktop monitors. Feel free to tell me more about that.

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


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 
Questiondisable row Pin
jds12076-Aug-07 7:54
jds12076-Aug-07 7:54 
AnswerRe: disable row Pin
Dave Kreskowiak6-Aug-07 8:01
mveDave Kreskowiak6-Aug-07 8:01 
AnswerRe: disable row Pin
nlarson116-Aug-07 10:50
nlarson116-Aug-07 10:50 

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.