|
-
May 2nd, 2003, 12:44 PM
#1
Thread Starter
Junior Member
Invoking multiple Event handlers and events!
Is there a way to synchronize two handlers for a single event ?
Also, is there a way to combine two different events that have the same handle ? Thanks
-
May 2nd, 2003, 12:58 PM
#2
Is there a way to synchronize two handlers for a single event ?
What do you mean?
Also, is there a way to combine two different events that have the same handle ?
You can add items to handles statement at the end of the method that handles the event, if set at designtime. Or at runtime you can use AddHandler to specify which method handles an event.
VB Code:
Public Sub ClickHandler(sender as object, e as eventargs) Handles btnOk.Click, btnApply.Click
AddHandler btnApply.Click,AddressOf ClickHandler
-
May 2nd, 2003, 01:17 PM
#3
Thread Starter
Junior Member
Can you tell me which events do i use to accomplish this :
The user clicks on a circle and drags it so that the circle becomes bigger. Now, I want to display the circle as it grows while the user drags it. Thanks for your time.
-
May 2nd, 2003, 01:31 PM
#4
You are talking about a circle drawn through GDI, right? Then I don't believe it has events, or if it does I don't which ones, sorry.
-
May 2nd, 2003, 01:33 PM
#5
Fanatic Member
May I suggest Control.MouseMove with a check to see if the button is depressed?
-
May 2nd, 2003, 02:04 PM
#6
Thread Starter
Junior Member
See there is no control associated with this. I draw a circle using createGraphics method. Thats why this is stumping me. I could have used the drag and drop if it were a control. I can use mousedown to get the coordinates when the user starts dragging and mouse up coords to find the distance dragged and then expand the circle. But I want the circle growing as the dragging is happening, the drag should be visible.
-
May 2nd, 2003, 02:56 PM
#7
Fanatic Member
Would Form.MouseMove not work?
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
|