I'm working on a vb.net form for a macro I've written, and I'm having problems using the spacebar to 'click' a button... Instead of carrying out the relevant function for the click event, it's opening a whole new form window to duplicate the original... and it's doing this for all (4) buttons... not just one or two... If I click with the mouse it works fine though...
I thought perhaps the spacebar was somehow running the 'last command' from Inventor, but when I looked the macro isn't recognised as a command, so it isn't that...
Has anyone got any suggestions? This is most bizarre....
Still looking for a solution to this issue. However I can update the situation a bit.
If I'm in a text field, and use the 'space bar' to insert a space character, then a new (duplicate) form opens.
If I use the 'enter' key a new form opens.
I've tried trapping the key down events, and using e.handled=true to abort the event after I've done what is required, but it hasn't helped, so presumably the new window is being opened before the form knows that the event has fired.
Any suggestions would be great.
Did you find a solution? I am having the same problem here.
Using VB Express 2010 with Inventor 2013.
whenever space bar is pressed in any text box, it opens a new dialog box.
Someone please help.
Yes I did, though it was a while ago, so the solution is a little fuzzy.
I think it had to do with how I was calling up my form object. Originally I had defined the form object (dim form1 as userform = new userform) in the local module, But I changed that to a public declaration (public form1 as userform = new userform)
Give that a shot if you're not already doing it, and see how it goes. If it doesn't help then you're on your own I'm afraid.
Thanks for your quick reply.
I will try your suggestion.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.