Click here to Skip to main content
15,909,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
OriginalGriff27-Jul-10 9:43
mveOriginalGriff27-Jul-10 9:43 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 17:58
ayandelhi27-Jul-10 17:58 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
PIEBALDconsult27-Jul-10 18:01
mvePIEBALDconsult27-Jul-10 18:01 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 18:07
ayandelhi27-Jul-10 18:07 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
PIEBALDconsult27-Jul-10 18:11
mvePIEBALDconsult27-Jul-10 18:11 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 18:14
ayandelhi27-Jul-10 18:14 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Dave Kreskowiak28-Jul-10 1:41
mveDave Kreskowiak28-Jul-10 1:41 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Dave Kreskowiak27-Jul-10 18:11
mveDave Kreskowiak27-Jul-10 18:11 
He's correct. If you want a smooth version of this, you'd have to rewrite part of the Win32 API. There is no namespace or class in the .NET Framework that can do this for you. The only way you can do it is if you used a couple of the Win32 API functions, constantly polling for the foreground window and moving it when it appears. This will introduce a flicker as you have to wait for the window to show up in one spot then move it, painting the window twice in two different spots. There is no way to avoid this.

GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 18:21
ayandelhi27-Jul-10 18:21 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Dave Kreskowiak28-Jul-10 1:40
mveDave Kreskowiak28-Jul-10 1:40 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi28-Jul-10 2:33
ayandelhi28-Jul-10 2:33 
QuestionC# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
ayandelhi27-Jul-10 8:37
ayandelhi27-Jul-10 8:37 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
Yusuf27-Jul-10 9:21
Yusuf27-Jul-10 9:21 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
riced27-Jul-10 11:06
riced27-Jul-10 11:06 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
ayandelhi27-Jul-10 18:05
ayandelhi27-Jul-10 18:05 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered PinPopular
Chris Trelawny-Ross27-Jul-10 12:55
Chris Trelawny-Ross27-Jul-10 12:55 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
Kim Togo28-Jul-10 1:35
professionalKim Togo28-Jul-10 1:35 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
aj.esler28-Jul-10 1:28
aj.esler28-Jul-10 1:28 
QuestionHow come I get a rounded number when I multiply doubles?? [modified] Pin
roman_s27-Jul-10 5:52
roman_s27-Jul-10 5:52 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
harold aptroot27-Jul-10 6:03
harold aptroot27-Jul-10 6:03 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
Luc Pattyn27-Jul-10 6:06
sitebuilderLuc Pattyn27-Jul-10 6:06 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
Richard MacCutchan27-Jul-10 6:10
mveRichard MacCutchan27-Jul-10 6:10 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
T M Gray27-Jul-10 9:01
T M Gray27-Jul-10 9:01 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
William Winner27-Jul-10 9:24
William Winner27-Jul-10 9:24 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
T M Gray27-Jul-10 10:12
T M Gray27-Jul-10 10:12 

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.