Visio addin delete event on custom window

I have a Vision Addin which shows a Grid on a custom window.

When I press Delete the selected shape is deleted(evev when the focus is on my custom window)

Is there a way to get the Delete Event on the Grid when the focus is on my custom window?

I have used the KeyDown event of the grid but this event fires for other keys but in case of Delete, it deletes the shape and the grid refreshes.

Thanks

Hatim Shaukat

August 5th, 2013 5:40am

Hi,

From your description, I notice that your add-in may be a third party add-in.

Whats the add-in name?

I dont have the add-in and cant test in my computer.

I recommend you to disable the add-in.

If the issue is disappeared, you can contact the author of the add-in.

There may have update to fix the issue.

Free Windows Admin Tool Kit Click here and download it now
August 6th, 2013 4:48am

both the data grid and visio support capturing a delete event before it is allowed to happen.

al

August 6th, 2013 1:37pm

Hi,

From your description, I notice that your add-in may be a third party add-in.

Whats the add-in name?

I dont have the add-in and cant test in my computer.

I recommend you to disable the add-in.

If the issue is disappeared, you can contact the author of the add-in.

There may have update to fix the issue.


Yes it is a Third Party Addin and I am the developer of that addin.

My Addin open a window which has a Grid in it. I would like to handle the Delete event when the focus is on my Grid

Thanks

Free Windows Admin Tool Kit Click here and download it now
August 12th, 2013 3:38am

both the data grid and visio support capturing a delete event before it is allowed to happen.

al

August 12th, 2013 3:57am

both of them will have a subject object that can be tested for  the control that fired the event. The data grid control uses the "datagridview" subject. I usually just  do a simple direct cast against the subject  as the first instruction within a try-catch so that if it isn't the datagridview it will fail out of the code if it isn't in the correct place.

al

Free Windows Admin Tool Kit Click here and download it now
August 12th, 2013 9:09am

both of them will have a subject object that can be tested for  the control that fired the event. The data grid control uses the "datagridview" subject. I usually just  do a simple direct cast against the subject  as the first instruction within a try-catch so that if it isn't the datagridview it will fail out of the code if it isn't in the correct place.

al

August 17th, 2013 7:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics