Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Preventing multiple instances of a form
« previous
next »
Print
Pages: [
1
] |
Go Down
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
Logged
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.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Preventing multiple instances of a form