o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Shape1_click event -

how can I come to know that a particuar shape has been clicked..?
wat i wan to do is...
i acttually want to toggle the shape fill color when the user clicks on the shape..
wat wud be the best way to do it...

let say i have three shapes in a form or picture box (i don't know whic one wud be best suited for this purpose)
when the user click on the shape its Fill color shud be toggled i.e (blue/Gray)

how can i do this.......
Please advice / suggest

 

Shape1_click event -
how can I come to know that a particuar shape has been clicked..? wat i wan to do is... i acttually want to toggle the shape fill color when the user clicks on the shape.. wat wud be the best way to do it... let say i have three shapes in a form or picture box (i don't know whic


triggering event while another event is processing -
I have an event called winsock1_DataArrival(). If this event is triggered while the previous event didn't finish processing yet, what happens to this new event? Does it get process or is skipped? Thanks.


(Resolved) Computing Odds -
I seem to have forgotten everything how to compute complex odds, sad b/c I took college math classes just two years ago. Anywho, here's what I want to fiqure out how to do... If the odds of Event A are x1 in y1, and the events of Event B are x2 in y2, how can I fiqure out what th


Disable event, possibly -
As I know there is three ways an event can occur. * The user can do something that triggers an event. (For instance click a button and fire the buttonname_Click event) * The OS can "do something" * The code can do something Directly by calling the event pro


FileSystemWatcher getting double triggers (sometimes)... please help -
Sometimes (it seems inconsistant) a simple change of a file is causing 2 FileSystemWatcher events. I reduced it down to bare bones ... just manually saving a few line text file with WordPad and my NotifyFilter set to "LastWrite" (I've tried other filter settings too) still


event question(maybe tough) -
Is there any way to make a event by myself and then make it follows the event I want it to follows? say, I want to my a event call MyEvent which follows the Datagrid control event AfterUpdate, so that every time the AfterUpdate event finishes, MyEvent will run??? Is there any way


Stopping an Event -
Is there a way using API or anything else where you can stop an event from actually occuring? The reason I want to know this is I have a datagrid and I have some code in the RowColChange event. So anytime a user goes to a new row or col the event gets called and I do some editing and w


How to log to server's event log -
Hi all, I'm writing a VBA Access 2003 app which will have to log an event to the event log of the server it runs on, so that it'll be visible from the Event Viewer. I just can't find any examples of this; can anybody tell me how, or point me towards an example? Many thanks in adva


How to have event sub called from non-child process -
I have an app that needs to be notified when another app triggers an event in its COM. I've registered it and I can see the event, but when I attempt to use the event, my event sub is not triggered. How can I acces the running process' COM event in my app? The running app is not


WSAWaitForMultipleEvents // WSAEnumNetworkEvents -
This should be my last question, I hope it gets answered. I am not sure how to use the combination of the two above functions to get a nice working thread which will recieve and deal connections. I get a port to listen. Bind it. Create an event using WSACreateEvent() Set it w


cancelling an event -
is there a way to cancel an event from running if another event occurs? when I type in a listbox, the onclick event is triggered, I don't want the onclick event to trigger unless I click or hit the enter key. is there a command like cancel listbox1_Click?


[02/03] Event handler problem -
Hello everybody, Sometimes it happens that click event of a button or load event of form doesn't fire. I then check the InitializeComponent() method and find that the event handler is not registered and I register it and it starts working however the event handler was previously re


inserting into valid date slot in database -
hihi.. i am trying to insert a start_date and an end_date of an event into the database. Assume that i have already inserted a number of events into the database and there is no crash of event date. Initially i have based on the end date of the last event to check if the schedule ha


Dropdownlist event not firing -
Guys, I have 2 ddl boxes, if i click on the first box the second box is filled correctly (i.e. the selectindexchanged event fires), however if i use the selectedindex on a page load event it does not fire the selectindexchanged event on the second.... Any ideas how to fire the se


Validate() event -
What is the significance of Validate() event in VB? Can you please specify an example as to where this event can be used? In the programs I have created, I have written the validations in the Change() and KeyPress() events in case of text fields and in Click() event in case of butt


Change Event WorkAround -
I call the textbox with a XProcess call which triggers the change event. I now need to call a Command Button(OK) in code after or during the change event. The TextBox_Change event processes after the TextBox_LostFocus Event so no call can be originated from LostFocus A direc


12 hour clock -
Example, How do you set a timer that will change an event every twelve hours from the start of the event until the event is closed, the event can stay open for months, so it something that has to be able to do it automatically when the user opens up the website from day to day and a


Calling Event Functions Dynamically -
Hello, I have a form with 3 comboboxes and I want to call a specific event function of 1 of the comboboxes in 1 of the form's functions. The problem is that I don't know in advance which combobox it will be and therefore I can't know the name of the event function. Example: Suppo


Events from Form to ActiveX -
Hi, Can I declare an Event in a Form in an ActiveX control and trap the event from the cotrol? For Example I have an Event in the Form. Public Event A() And Iam raising the Event in the form at a particular point RaiseEvent A How do I capture this event in the ActiveX c


ButtonClick Event on DGV -
Hello, I have go an DGV with one button. At this time I use the CellContentClick Event to raise an action if the dgv is clicked. But that event is raised if any column is clicked. Is it possible to add a event handler for the DataGridViewButtonColumn? Thx


Start an event from another event -
How can I start for example the MouseUp event from an Image control from the for example Change event of a Textbox control? I thought it was Image1_MouseUp, but that doesn't work. It gives the "Argument not optional" error. I also tried to change the MouseUp event to a Public


DataGridView v2.0 Question -
I would like to know if there is a way to drag rows or even a cell off of the DGV? I see there is an event for a DragDrop but no event for ItemDrag which is the event in all other .NET components for starting a drag event.


Capturing names of fired events -
Is there a way to capture the name of the event that an object fires? I'm trying to understand a datagrid control's events by seeing what causes them to fire. Right now I've done this by creating an event sub for every event and put messageboxes named with the particular event in


How events really happen -
Hi You have Object1 and Object2 Object2 has a public event that fires when a value is changed. Object1 is setup to handle the event. when object2 fires the event, object1 recieves the event and does it's magic. Me and a coworker who, obviosly are newbies, argues that


KeyDown event in a usercontrol (OCX) -
Well, my problem i think it's a bug. Firts the keydown event raises twice when i press "delete" key. But now, when i press that key, the keydown event does not raise. i create a ocx with some control placed on it, i place this ocx in a html page and the keydown event does not


event firing(Datagrid and other components) -
AHHHHHHHH! HAving a problem with updating my data in the datagrid. think I got it srted but the datagrid_leave event is screwing me over! If I put two simple pieces of code(to announce when the event has been fired eg:msgbox or edit txtbox) in say the datagrid_leave and say an


Raising and handling custom events -
hi there's this event-observer model that i intend to incorporate in my design. i want to use several instances of my activex control that are waiting for an event to occur, the event being a timer tick in my case. how do i do it? first i'll have to somehow raise a custom event and it


Event in Class stored in Session -
Hi, I got a class that raise an event when one of it's properties are changed. I store an instance of this class in the session, and with each form in which I want to use this class, I create a local instance of it, and set it to the instance stored in the session. Then I subsc


[2.0] Why do I need delegates for events -
Bear with me, I'm a VB6 programmer with some vb.net exp. Most of my grief is coming from the syntax. So in every example on how to handle events in C#, the authors begin with defining a Delegate. Why? I do not, apparently need a delegate to handle the Event... or at least I don'


[2008] Overriding 'OnMouseDown' event - UserControl -
Hey, I have a UserControl on which I placed a standard TabControl. I need to Override the OnMouseDown event (for example, I also need others) for some functionality I have in mind. Is it possible to override the TabControl's OnMouseDown event, not the UserControl's event? Or


excel combobox event missing -
hi, i would like to fire an event when an element in the combobox was selected by the user. as far as i know afterupdate event is used for this. unfortunately my combobox does not have this event. any ideas how to resolve this? thanks and regards


[2005] SelectChangedCommitted in combo box -
Hello, I want to detect when a user selects an item from a combo box, Normally I use the selectChangedCommitted event of the combo box. However, I am creating a PDA using WM 5.0, and that event is not available. They have only selectValueChanged and selectItemChanged. However, I


Trapping Instances from Event Viewer -
I did a search and found that there was a post made asking: "Does anyone know how to open the event viewer and connect to another machines event viewer using code?" I too am curious. What I would like to try and do is have a little script that is run every 10mins an


validate event -
I have a text box with a validate event with some code in it. The validate event never occurs. Any ideas or similar situations? There is a keypress event as well for the same text box if that makes any difference. CausesValidation property is set to true for the text box. I would ex


[2008] Event Handlers -
I'd like to remove an event handler conditionally. How can I check to see if an event handler has already been added? If (Event Handler exists?) Then RemoveHandler End If


Having more than one event handler for the same event -
Has anyone tried this yet? If so I would like to know more about this: If I have an object that raises an event, and I add more than one event handler for this event, what will happen? From what I have read so far, all the registered handlers should be invoked. But is there any o


How I detect the Tab keystroke -
Hi team. I need to know if the LostFocus event was caused by the tab key, as opposed to some other event, as i want to respond differently to the tab. The trouble is I can't pick up the tab keystroke with the Keydown event. The LostFocus event fires instead. Does anyone know how t


Mouse event trigger problem -
I want to trigger a mouse event in realtime and all i found was some API with SendMessage, mouse_event, GetCursor, SetCursor, etc. But all those functions send or retreive messages on request. I need to trigger the event when the user moves his mouse over his desktop or any other wind


DataGrid event fire --needed to be resolved -
Hi all gurus, Once again, I am back to my rescue team. I want to check several functions in click event of DataGrid ROWS. Rightnow, I have wrote it in _CurrentCellChanged event. but I want it on 1] click event in datagrid rows. and 2] keypress event in datag


Prototype Event Doesn't work -
Hi all, I have just started working on Prototpye JS. I must say it runs likea charm. but whenever i tried to Use Event object to observe key press event it gives js error. Actually i want to find out whether the click is done over the selected div or not.. if not then i want to hide