• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 558
  • Last Modified:

Prevent same window open more than once?

I need to open a licensing window for a project, however it needs a restriction to prevent hackers from simply opening several windows.
0
kvnsdr
Asked:
kvnsdr
1 Solution
 
jmeyer43Commented:
make the form class a singleton so there can't be more than 1 at a time

if this screen is the first screen in the app, an alternative might be to check on start-up for another instance of your program, if you find one give it focus and exit otherwise show your start form
0
 
bruintjeCommented:
Hello kvnsdr,

assuming you mean to prevent a seocnd instance of your application you could look into creating a named mutex for your app, and for a very thorough overview of how to implement
source: http://odetocode.com/Blogs/scott/archive/2004/08/20/401.aspx

hope this helps a bit
bruintje
0
 
nguyenvinhtuCommented:
Dear kvnsdr,
Have a look at it if it could help your idea.
http://www.rentsch-online.de/sc_index.asp?pageid=22167
0
 
kvnsdrAuthor Commented:
Thanks jmeyer43.

Here's the perfect link for others to follow.....

http://aspalliance.com/793
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now