VB doesn't allow to draw while a form is shown

VB doesn't allow to draw while a form is shown

Anonymous
Not applicable
198 Views
3 Replies
Message 1 of 4

VB doesn't allow to draw while a form is shown

Anonymous
Not applicable
Hello,

I'm using AutoCAD 2K with VB, and I would like to create an application
which allows me to keep a form on the screen while I'm continuing to draw.
Another possibility is to hide the form, and to get it back when I click on
an icon, but the form changes during the process, so it must comes back in
the same state it was when i've hid it.

Is there a possibility to do that?

Thanks,

Alexis

[email protected]
0 Likes
199 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Alexis,

Look in this folder on your system :

\AutoCAD2000\Sample\ActiveX\Facility\Facility.vbp

This example provided by Autodesk allow you to have a form always on top.

Hope this help
________________________________
Alain Bouchard
Graduate student
Geomatics Research Center
Laval University
[email protected]

Alexis Perdaen wrote in message
news:[email protected]...
> Hello,
>
> I'm using AutoCAD 2K with VB, and I would like to create an application
> which allows me to keep a form on the screen while I'm continuing to draw.
> Another possibility is to hide the form, and to get it back when I click
on
> an icon, but the form changes during the process, so it must comes back in
> the same state it was when i've hid it.
>
> Is there a possibility to do that?
>
> Thanks,
>
> Alexis
>
> [email protected]
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
Alexis

Yu can do that

From.load
Form.show
Do what you want in the form
With a button, Form.hide
Do what you want
Form.show
....

Bernard

Alexis Perdaen a écrit dans le message :
[email protected]...
> Hello,
>
> I'm using AutoCAD 2K with VB, and I would like to create an application
> which allows me to keep a form on the screen while I'm continuing to draw.
> Another possibility is to hide the form, and to get it back when I click
on
> an icon, but the form changes during the process, so it must comes back in
> the same state it was when i've hid it.
>
> Is there a possibility to do that?
>
> Thanks,
>
> Alexis
>
> [email protected]
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi Alexis. You've already received some good advice but here are some
details: a VBA form is modal. While it is showing, the user cannot gain
access to AutoCAD. As Bernard pointed out, you have to hide the form first.
Alain's tip seems to be an out-of-process Visual Basic project. As such, it
is not actually running inside of AutoCAD which is why the form can stay on
top the whole time. If you want to create VBA applications that are
modeless, you need to use Jorge Lopez's ACCONT.ARX
(http://home.pacbell.net/cprog) as well as a control from Dennis Gagne. I
don't have a link for his product but he's all over this group, so it
shouldn't be difficult to get his email address.

--
Visit me at http://www2.stonemedia.com/franko

Alexis Perdaen wrote in message
news:[email protected]...
> Hello,
>
> I'm using AutoCAD 2K with VB, and I would like to create an application
> which allows me to keep a form on the screen while I'm continuing to draw.
> Another possibility is to hide the form, and to get it back when I click
on
> an icon, but the form changes during the process, so it must comes back in
> the same state it was when i've hid it.
>
> Is there a possibility to do that?
>
> Thanks,
>
> Alexis
>
> [email protected]
>
0 Likes