PDA

View Full Version : Autocad 2005 Visual Basic


Matthew Hastings
20-12-2004, 05:21 AM
Hi, I have a program I run from a custom menu in 2002 which works fine.
recently I upgraded to 2005 but now the program keeps stopping here.


frmProgress.ProgressBar1.Value = 27

Application.Update
Application.ZoomExtents <<<here
Unload frmProgress
Unload frmDrawShed

Any help would be appreciated.
Regards,
Matt

hendie
20-12-2004, 09:02 AM
what is the error message you're getting when it stops ?

Matthew Hastings
20-12-2004, 09:58 PM
This is the error message I get . Run-time error '-2145320932 (8021001c)':AutoCAD Main window is invisible

Thanks,
matt

hendie
20-12-2004, 10:33 PM
the autocad window doesn't have the focus.
you either have to make the form hide or change the modal properties of the form (I think) ~ I haven't got 2005 so I can't tell you for sure.