C
Charles Law
Sorry for reposting this question, but I did not get a single answer last
time, and I'm sure you guys must have some thoughts on the matter.
I have a user control which can be dragged and dropped onto a form in my
application when it is running. I allow it to be clicked and dragged to a
new location on the form. However, the user control has a check box on it,
and if the user clicks over the checkbox to drag the user control, the check
box changes state.
Is there a way that I can simulate the design mode effect of the VS IDE,
such that whilst designing a form controls do not behave in the normal way?
The same problem occurs if clicking over a dropdown list: the list drops
down and then the control can be dragged away from under it. It doesn't look
very good.
It would be nice to stop all mouse effects on the member controls of my user
control, for example, checkboxes with the popup style change their
appearance when the mouse moves over them, but I would like to suppress this
whilst my user control is in 'design mode'.
Just to clarify, although I use the term 'design mode' my application is
actually running. I am just referring to the state in which it is running,
that is I allow users to design a simple form and then turn design mode off,
whereupon the form should behave normally.
TIA
Charles
time, and I'm sure you guys must have some thoughts on the matter.
I have a user control which can be dragged and dropped onto a form in my
application when it is running. I allow it to be clicked and dragged to a
new location on the form. However, the user control has a check box on it,
and if the user clicks over the checkbox to drag the user control, the check
box changes state.
Is there a way that I can simulate the design mode effect of the VS IDE,
such that whilst designing a form controls do not behave in the normal way?
The same problem occurs if clicking over a dropdown list: the list drops
down and then the control can be dragged away from under it. It doesn't look
very good.
It would be nice to stop all mouse effects on the member controls of my user
control, for example, checkboxes with the popup style change their
appearance when the mouse moves over them, but I would like to suppress this
whilst my user control is in 'design mode'.
Just to clarify, although I use the term 'design mode' my application is
actually running. I am just referring to the state in which it is running,
that is I allow users to design a simple form and then turn design mode off,
whereupon the form should behave normally.
TIA
Charles