Click here to Skip to main content
16,004,919 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Need guidance and proposal of design and implementation for an e-voting (electronic voting) system Pin
K030615-Jul-09 23:38
K030615-Jul-09 23:38 
QuestionSuitable criteria for a distributed application Pin
Zeeshan Riaz15-Jul-09 11:32
Zeeshan Riaz15-Jul-09 11:32 
AnswerRe: Suitable criteria for a distributed application Pin
DaveyM6915-Jul-09 13:01
professionalDaveyM6915-Jul-09 13:01 
QuestionSingle-instance applications and batch files Pin
supercat915-Jul-09 5:59
supercat915-Jul-09 5:59 
AnswerRe: Single-instance applications and batch files Pin
Luc Pattyn16-Jul-09 1:36
sitebuilderLuc Pattyn16-Jul-09 1:36 
GeneralRe: Single-instance applications and batch files Pin
supercat916-Jul-09 13:20
supercat916-Jul-09 13:20 
GeneralRe: Single-instance applications and batch files Pin
Luc Pattyn16-Jul-09 13:26
sitebuilderLuc Pattyn16-Jul-09 13:26 
GeneralRe: Single-instance applications and batch files Pin
supercat917-Jul-09 4:41
supercat917-Jul-09 4:41 
I've never actually done an application with a Main() under vb.net, and the only way I've confined applications to single-instance operation is via check-box in the project options. I know that Microsoft added support for named pipes in .net 3.5, but for the moment I'm working with VS2005 and .net 2.0 which does not include the built-in support.

FYI, if the "single-instance operation" box is checked in vb, the first-run instance of the application will receive a special event when an attempt is made to launch additional instances; it will receive the command line from the new instance. Very convenient, but I don't know how to have the second instance delay completion and return a particular error code. It will probably be necessary to write a custom Main() to accomplish that, or else go with a two-application approach. The only advantage to the latter would be the ability to have the command-line-launched part show text in the command-prompt window. By my understanding, windowed applications can't do that (unless I'm mistaken?) In response to something like "progger /?" it is often nicer to show a program's options in the command-prompt window than to pop up another window listing them (the exception being if there are over 24 lines of options). It's also nice to see a 'list' in the command-prompt window of what worked and what didn't.
GeneralRe: Single-instance applications and batch files Pin
Luc Pattyn17-Jul-09 11:40
sitebuilderLuc Pattyn17-Jul-09 11:40 
GeneralRe: Single-instance applications and batch files Pin
supercat917-Jul-09 13:21
supercat917-Jul-09 13:21 
GeneralRe: Single-instance applications and batch files Pin
Luc Pattyn17-Jul-09 13:57
sitebuilderLuc Pattyn17-Jul-09 13:57 
GeneralRe: Single-instance applications and batch files Pin
supercat920-Jul-09 4:56
supercat920-Jul-09 4:56 
QuestionSpell Check Recommendations Pin
musefan15-Jul-09 5:11
musefan15-Jul-09 5:11 
AnswerRe: Spell Check Recommendations Pin
Luc Pattyn15-Jul-09 6:30
sitebuilderLuc Pattyn15-Jul-09 6:30 
GeneralRe: Spell Check Recommendations Pin
musefan15-Jul-09 6:43
musefan15-Jul-09 6:43 
GeneralRe: Spell Check Recommendations Pin
Luc Pattyn15-Jul-09 6:45
sitebuilderLuc Pattyn15-Jul-09 6:45 
Questionhow to pass values from pop-up window(child page) to a master page(parant page) datagrid? please help me out [modified] Pin
staycool_khan15-Jul-09 4:11
staycool_khan15-Jul-09 4:11 
AnswerRe: how to pass values from pop-up window(child page) to a master page(parant page) datagrid? please help me out Pin
Not Active15-Jul-09 4:56
mentorNot Active15-Jul-09 4:56 
QuestionHow to create static library in C++ .net 2008 and call it from VC6 Pin
stefanidou15-Jul-09 1:46
stefanidou15-Jul-09 1:46 
AnswerRe: How to create static library in C++ .net 2008 and call it from VC6 Pin
Ravi Bhavnani18-Jul-09 6:13
professionalRavi Bhavnani18-Jul-09 6:13 
QuestionHow can patch .NET assembly code Pin
ham_tim_hieu14-Jul-09 21:29
ham_tim_hieu14-Jul-09 21:29 
AnswerRe: How can patch .NET assembly code Pin
Luc Pattyn15-Jul-09 2:55
sitebuilderLuc Pattyn15-Jul-09 2:55 
AnswerRe: How can patch .NET assembly code Pin
harold aptroot15-Jul-09 5:09
harold aptroot15-Jul-09 5:09 
GeneralRe: How can patch .NET assembly code Pin
ham_tim_hieu15-Jul-09 8:09
ham_tim_hieu15-Jul-09 8:09 
GeneralRe: How can patch .NET assembly code Pin
ham_tim_hieu16-Jul-09 16:24
ham_tim_hieu16-Jul-09 16:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.