Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2008

Tip: Looking for answers? Try searching our database.

Deactive control, but still enabled?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brandon Arnold - 31 Jul 2008 02:24 GMT
I have an app i'm developing and i'd like users to be able to drag and
drop controls within the UI.  After selecting the option to enable it,
i have 3 mouse events(mousedown, up and move) that capture the
movements and the coordinates of the mouse and reposition the control
accordingly.  The problem comes in when I try to move around things
like buttons and combo boxes.  Obviously when I click on them I
inadvertently "use" them, the combo drops down and the button
clicks(not so good when I move the "close" button).  I can't set
enable to false since that stops the control from reading any input,
thus rendering my mouse capturing events useless because it ignores
the clicks.  Is there a way I can disable the control(button,
listview, combobox, textbox, label) but still have them raise mouse
events?
Thanks,
Brandon

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
Brandon Arnold - 31 Jul 2008 02:30 GMT
>my problem

Also, on the same topic, is there a way I can bind a label with the
control it's decribing?  Like the label "Address" associated with the
text box for address input, so when I move the textbox, everything
moves as one item?  I'd like to avoid moving them individually as that
can get confusing and messy, and i've got 3 mouse event handlers
that'd i'd like to hold onto that just use the object sent that I cast
as a Control.  That way I have 3 handlers for everything, instead of 3
handlers for each control(there are a few).  The only way i've been
able to really do this was to have a mouse hander for each and
manually specify the label associated with it.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.