Click here to Skip to main content
15,896,153 members
Home / Discussions / C#
   

C#

 
GeneralRe: Move Email Pin
Pete O'Hanlon3-Mar-11 11:32
mvePete O'Hanlon3-Mar-11 11:32 
GeneralRe: Move Email Pin
MWRivera3-Mar-11 11:44
MWRivera3-Mar-11 11:44 
GeneralRe: Move Email Pin
Pete O'Hanlon3-Mar-11 21:36
mvePete O'Hanlon3-Mar-11 21:36 
GeneralRe: Move Email Pin
MWRivera7-Mar-11 9:40
MWRivera7-Mar-11 9:40 
QuestionC# Pin
Karo1113-Mar-11 8:24
Karo1113-Mar-11 8:24 
AnswerRe: C# Pin
OriginalGriff3-Mar-11 9:06
mveOriginalGriff3-Mar-11 9:06 
GeneralRe: C# Pin
Pravin Patil, Mumbai4-Mar-11 0:06
Pravin Patil, Mumbai4-Mar-11 0:06 
QuestionMake window dock/undock to parent window Pin
manchukuo3-Mar-11 8:18
manchukuo3-Mar-11 8:18 
Hi,

I am trying to do an app which has children windows inside it, and make it capable of when drag the mouse off the parent window it undocks and float all around the desktop, but for some reason i can seem to accomplish this. I am using the SetWindowLong method to change style of the window from WS_CHILD to WS_POPUP but it doesn't work, can someone please show me some code to make it work Sigh | :sigh:

long lastStyle = NativeMethods.GetWindowLong(myControl.Handle,
                             (int)NativeMethods.GetWindowLongConst.GWL_EXSTYLE);


long newStyle = NativeMethods.SetWindowLong(myControl.Handle,
                             (int)NativeMethods.GetWindowLongConst.GWL_STYLE,
                             (uint)NativeMethods.WindowStyles.WS_POPUP);

 newStyle = NativeMethods.SetWindowLong(myControl.Handle,
                             (int)NativeMethods.GetWindowLongConst.GWL_EXSTYLE,
                            (long)(NativeMethods.WindowStylesEx.WS_EX_APPWINDOW | NativeMethods.WindowStylesEx.WS_EX_TOOLWINDOW));

 myControl.Location = new Point(100, 200);//just a test

QuestionIs there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 6:14
turbosupramk33-Mar-11 6:14 
AnswerRe: Is there a way to search through all buttons of a window handle? Pin
SledgeHammer013-Mar-11 6:23
SledgeHammer013-Mar-11 6:23 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 6:52
turbosupramk33-Mar-11 6:52 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
SledgeHammer013-Mar-11 8:11
SledgeHammer013-Mar-11 8:11 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 8:30
turbosupramk33-Mar-11 8:30 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
SledgeHammer013-Mar-11 9:42
SledgeHammer013-Mar-11 9:42 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 10:05
turbosupramk33-Mar-11 10:05 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
SledgeHammer013-Mar-11 11:55
SledgeHammer013-Mar-11 11:55 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 15:45
turbosupramk33-Mar-11 15:45 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 8:55
turbosupramk33-Mar-11 8:55 
AnswerRe: Is there a way to search through all buttons of a window handle? Pin
Jason Vetter3-Mar-11 10:48
Jason Vetter3-Mar-11 10:48 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk33-Mar-11 15:52
turbosupramk33-Mar-11 15:52 
GeneralRe: Is there a way to search through all buttons of a window handle? Pin
turbosupramk34-Mar-11 2:17
turbosupramk34-Mar-11 2:17 
QuestionChrome - search from command line? Pin
Alan Burkhart3-Mar-11 1:33
Alan Burkhart3-Mar-11 1:33 
AnswerRe: Chrome - search from command line? Pin
Luc Pattyn3-Mar-11 2:34
sitebuilderLuc Pattyn3-Mar-11 2:34 
GeneralRe: Chrome - search from command line? Pin
Alan Burkhart3-Mar-11 2:54
Alan Burkhart3-Mar-11 2:54 
GeneralRe: Chrome - search from command line? [modified] Pin
Luc Pattyn3-Mar-11 3:18
sitebuilderLuc Pattyn3-Mar-11 3:18 

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.