Click here to Skip to main content
15,894,539 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Install Pin
dotnetdev@univ.kiev.ua31-Mar-04 3:20
dotnetdev@univ.kiev.ua31-Mar-04 3:20 
GeneralRe: Custom Install Pin
Heath Stewart31-Mar-04 3:23
protectorHeath Stewart31-Mar-04 3:23 
GeneralClick Sound Pin
johnstacey29-Mar-04 5:23
johnstacey29-Mar-04 5:23 
GeneralRe: Click Sound Pin
Heath Stewart29-Mar-04 5:28
protectorHeath Stewart29-Mar-04 5:28 
GeneralTutor application Pin
Saleh Alshadheli29-Mar-04 5:00
Saleh Alshadheli29-Mar-04 5:00 
GeneralRe: Tutor application Pin
Heath Stewart29-Mar-04 5:24
protectorHeath Stewart29-Mar-04 5:24 
GeneralMoveable Controls - Form Style Pin
Tristan Rhodes29-Mar-04 4:58
Tristan Rhodes29-Mar-04 4:58 
GeneralRe: Moveable Controls - Form Style Pin
Heath Stewart29-Mar-04 5:22
protectorHeath Stewart29-Mar-04 5:22 
One way is to implement .NET's drag and drop features for controls. I've mentioned this several times in the forum, so try a search. Just use some custom clipboard format (like ".NETControl" or something) and you can reposition controls that way.

You could also handle the MouseDown event and mark a flag. In the MouseMove event update the control's Location as you move if that flag is set. In MouseUp, reset the flag so that just simply moving the mouse doesn't move a control when your mouse passes over it.

 

Microsoft MVP, Visual C#
My Articles
GeneralNever Mind Pin
Tristan Rhodes29-Mar-04 6:25
Tristan Rhodes29-Mar-04 6:25 
GeneralHalf way there Pin
Tristan Rhodes29-Mar-04 6:41
Tristan Rhodes29-Mar-04 6:41 
GeneralRe: Half way there Pin
Heath Stewart29-Mar-04 8:01
protectorHeath Stewart29-Mar-04 8:01 
GeneralRe: Half way there Pin
Tristan Rhodes29-Mar-04 8:15
Tristan Rhodes29-Mar-04 8:15 
GeneralRe: Half way there Pin
Heath Stewart29-Mar-04 8:35
protectorHeath Stewart29-Mar-04 8:35 
GeneralCursor Clipping Pin
Tristan Rhodes29-Mar-04 8:38
Tristan Rhodes29-Mar-04 8:38 
GeneralRe: Cursor Clipping Pin
Heath Stewart29-Mar-04 8:44
protectorHeath Stewart29-Mar-04 8:44 
GeneralRe: Cursor Clipping Pin
Tristan Rhodes29-Mar-04 8:57
Tristan Rhodes29-Mar-04 8:57 
GeneralRe: Cursor Clipping Pin
Heath Stewart29-Mar-04 9:13
protectorHeath Stewart29-Mar-04 9:13 
GeneralRe: Cursor Clipping Pin
Tristan Rhodes29-Mar-04 11:05
Tristan Rhodes29-Mar-04 11:05 
GeneralEvents Pin
Demian Panello29-Mar-04 4:40
Demian Panello29-Mar-04 4:40 
GeneralRe: Events Pin
Colin Angus Mackay29-Mar-04 5:11
Colin Angus Mackay29-Mar-04 5:11 
GeneralRe: Events Pin
Colin Angus Mackay29-Mar-04 5:13
Colin Angus Mackay29-Mar-04 5:13 
GeneralRe: Events Pin
Heath Stewart29-Mar-04 5:19
protectorHeath Stewart29-Mar-04 5:19 
GeneralSerializing /DeSerializing a class by itself Pin
MANJU_JOHN29-Mar-04 4:32
sussMANJU_JOHN29-Mar-04 4:32 
GeneralRe: Serializing /DeSerializing a class by itself Pin
Heath Stewart29-Mar-04 5:18
protectorHeath Stewart29-Mar-04 5:18 
GeneralCustom textbox with OnPaintBackground Pin
Stephen Birdsall29-Mar-04 3:59
Stephen Birdsall29-Mar-04 3:59 

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.