|
-
May 28th, 2004, 06:19 PM
#1
Thread Starter
Member
"user control" doesn't move
hello,
i'm guessing it is a simple problem.
i created user control which include 3 buttons.
when i'm adding this control to a form, i can't move it using the mouse .
the only way to move it is to change the left/top value's in the properties.
why ?
many thanks
eran
-
May 28th, 2004, 06:55 PM
#2
Frenzied Member
I don't know. Does it inherit from a moveable control? You may have to code for drag & drop events in the control.
-
May 28th, 2004, 07:17 PM
#3
Thread Starter
Member
welll....
it inherit from
Inherits System.Windows.Forms.UserControl
the funny thing is that using the keyboard i can move the control.
i can't do so with the mouse (which is the common way).
what to do ?
-
May 28th, 2004, 07:23 PM
#4
Frenzied Member
Just to make sure, it's that you can't move the control in the IDE, not on the runnng form? Sounds dumb, but never hurts to ask.
I haven't created any user controls in .Net. Is there a Moveable boolean property or similar? Some properties from the base class may have to be overridden.
-
May 29th, 2004, 02:05 AM
#5
Thread Starter
Member
nothing overrides....
thanks for the reply.
my problem is when i'm in the IDE (design mode).
i'm guessing nothing overrides anything because :
1. it moves when using the arrows in the keyboard.
2. i didnt' add yet my own methods, properties...
just to make clear, i don't want that the buttons inside my user control will move. i want to move the whole control.
-
May 29th, 2004, 09:16 AM
#6
Frenzied Member
Do you have controls locked? Is there a locked property to the control set to true? Can you move standard controls on the form?
-
May 31st, 2004, 03:19 PM
#7
Thread Starter
Member
maybe this will help
hello,
i have costum control which inherits the button class
Inherits System.Windows.Forms.Button
i discovered that this control is the cause of the problem.
when i remove this item from my control, i can move it.
just to make sure this is the problem, i replaced my costum button with the default one and it worked.
what should i add my button so it will be ok ?
thanks
Eran.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|