.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

jig called from palette is not quite right

3 REPLIES 3
Reply
Message 1 of 4
yaqiz
416 Views, 3 Replies

jig called from palette is not quite right

Hi Guys,



I am using VB.net
I manage to jig move object, but when I trigger the function from palette AutoCAD drawing won't automatically grab focus. I need to click somewhere on the palette or the drawing.

Any idea or hints?

Thanks very much

Regards,
Yaqi

3 REPLIES 3
Message 2 of 4
mohnston
in reply to: yaqiz

This is a bug.

It may have to do with the type of control that is triggering the function.

I know that toolbars and datagridviews have the problem and there may be others.

There is a proposed solution using PInvoke but it didn't work for me.

A search in this forum should turn up more information.

CAD Programming Solutions
Message 3 of 4
michael_vanhoose
in reply to: yaqiz

This worked for me 

 

Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView()

Message 4 of 4
andred
in reply to: michael_vanhoose

For me too,

 

Thanks a lot

 

André

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost