Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: Code to move window not working. Pin
Member 1280196718-Oct-16 23:49
Member 1280196718-Oct-16 23:49 
GeneralRe: Code to move window not working. Pin
OriginalGriff18-Oct-16 23:59
mveOriginalGriff18-Oct-16 23:59 
GeneralRe: Code to move window not working. Pin
Member 1280196719-Oct-16 0:26
Member 1280196719-Oct-16 0:26 
GeneralRe: Code to move window not working. Pin
OriginalGriff19-Oct-16 0:31
mveOriginalGriff19-Oct-16 0:31 
GeneralRe: Code to move window not working. Pin
Member 1280196719-Oct-16 0:36
Member 1280196719-Oct-16 0:36 
GeneralRe: Code to move window not working. Pin
OriginalGriff19-Oct-16 0:47
mveOriginalGriff19-Oct-16 0:47 
GeneralRe: Code to move window not working. Pin
Member 1280196719-Oct-16 0:59
Member 1280196719-Oct-16 0:59 
GeneralRe: Code to move window not working. Pin
OriginalGriff19-Oct-16 1:17
mveOriginalGriff19-Oct-16 1:17 
Backup a second...
When you are a form, you have four properties you are interested in: Width and Height - which tell you how big the whole form is; then Top and Left - which tell you where you are relative to the container the form is displayed within. For Windows, that's the Desktop - so Top and Left of zero is the top left hand corner of your monitor.
The Client Area of a form is the bit of the form that isn't the title bar and the form border and it measured relative to the form top left corner - so the Client Area will normally be smaller than the Width and Height, and never, ever bigger.
So trying to move the form doesn't involve the form's client area for "reaching an edge" - it involves whatever the form is contained within: normally the Desktop.
See if you have a Screen object you can access the Width and Height from and try those.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: Code to move window not working. Pin
Member 1280196719-Oct-16 1:59
Member 1280196719-Oct-16 1:59 
GeneralRe: Code to move window not working. Pin
OriginalGriff19-Oct-16 2:07
mveOriginalGriff19-Oct-16 2:07 
GeneralRe: Code to move window not working. Pin
Rahul VB19-Oct-16 9:06
professionalRahul VB19-Oct-16 9:06 
QuestionHow i pass the list view column value in stored procedure as a parameter in vb dot net. Pin
Member 1280150118-Oct-16 19:28
Member 1280150118-Oct-16 19:28 
AnswerRe: How i pass the list view column value in stored procedure as a parameter in vb dot net. Pin
OriginalGriff18-Oct-16 19:39
mveOriginalGriff18-Oct-16 19:39 
AnswerRe: How i pass the list view column value in stored procedure as a parameter in vb dot net. Pin
OriginalGriff18-Oct-16 19:40
mveOriginalGriff18-Oct-16 19:40 
QuestionWhy Interface? Pin
Member 973087818-Oct-16 2:17
Member 973087818-Oct-16 2:17 
AnswerRe: Why Interface? Pin
Kenneth Haugland18-Oct-16 2:58
mvaKenneth Haugland18-Oct-16 2:58 
AnswerRe: Why Interface? Pin
OriginalGriff18-Oct-16 4:03
mveOriginalGriff18-Oct-16 4:03 
SuggestionRe: Why Interface? Pin
Richard Deeming18-Oct-16 4:30
mveRichard Deeming18-Oct-16 4:30 
GeneralRe: Why Interface? Pin
OriginalGriff18-Oct-16 4:41
mveOriginalGriff18-Oct-16 4:41 
AnswerRe: Why Interface? Pin
Gerry Schmitz18-Oct-16 6:21
mveGerry Schmitz18-Oct-16 6:21 
JokeRe: Why Interface? Pin
Pete O'Hanlon18-Oct-16 9:20
mvePete O'Hanlon18-Oct-16 9:20 
GeneralRe: Why Interface? Pin
Gerry Schmitz18-Oct-16 20:36
mveGerry Schmitz18-Oct-16 20:36 
AnswerRe: Why Interface? Pin
Eddy Vluggen18-Oct-16 11:17
professionalEddy Vluggen18-Oct-16 11:17 
SuggestionRe: Why Interface? Pin
Richard Deeming18-Oct-16 12:21
mveRichard Deeming18-Oct-16 12:21 
GeneralRe: Why Interface? Pin
Eddy Vluggen18-Oct-16 12:36
professionalEddy Vluggen18-Oct-16 12:36 

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.