Author Topic: Preventing multiple instances of a form  (Read 1312 times)

0 Members and 1 Guest are viewing this topic.

cannorth

  • Guest
Preventing multiple instances of a form
« on: January 17, 2012, 12:20:32 PM »
Hello,

  Is there anyway to prevent multiple instances of a form to show for a VB.Net AutoCAD DLL?  If so, how could this be done with COM or ObjectARX?

Thanks,

cannorth

cincir

  • Guest
Re: Preventing multiple instances of a form
« Reply #1 on: January 17, 2012, 01:31:58 PM »
if you are going to use .Net as your platform you can make your forms constructor private or protected and define a static variable holding the value of form's current instance. shortly you can use singleton design pattern to have only one instance of your form object.

if you are not going to use .Net as your platform i advise you to post to the related sections of the forum.