Click here to Skip to main content
15,917,641 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralStack Overflow Exception in Vb.Net windows Application. Pin
Balagurunathan S29-Jan-08 0:56
Balagurunathan S29-Jan-08 0:56 
GeneralRe: Stack Overflow Exception in Vb.Net windows Application. Pin
Steven J Jowett29-Jan-08 1:36
Steven J Jowett29-Jan-08 1:36 
GeneralRe: Stack Overflow Exception in Vb.Net windows Application. Pin
Luc Pattyn29-Jan-08 2:34
sitebuilderLuc Pattyn29-Jan-08 2:34 
GeneralSingle instance application Pin
manisghouri29-Jan-08 0:44
manisghouri29-Jan-08 0:44 
GeneralRe: Single instance application Pin
Steven J Jowett29-Jan-08 1:34
Steven J Jowett29-Jan-08 1:34 
GeneralRe: Single instance application Pin
manisghouri29-Jan-08 3:30
manisghouri29-Jan-08 3:30 
GeneralRe: Single instance application Pin
Steven J Jowett29-Jan-08 5:38
Steven J Jowett29-Jan-08 5:38 
GeneralRe: Single instance application Pin
Steven J Jowett29-Jan-08 5:44
Steven J Jowett29-Jan-08 5:44 
Just an after-throught :-

To check that the program is the first instance, try this code :-

 'Check to see if already running<br />
        Dim currentProcess As Process = Process.GetCurrentProcess()<br />
        Dim allProcesses() As Process = Process.GetProcessesByName(currentProcess.ProcessName)<br />
<br />
        If allProcesses.Length > 1 Then<br />
'already running<br />
        Else<br />
'not already running<br />
        End If


You could also pass the necessary parameter via a file. For instance write an file somewhere, containing the necessary parameters and use a FileSystemWatcher to monitor the file for changes.

Depands how slick you want it, but the simplest options are usually the best.

Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

GeneralRe: Single instance application Pin
manisghouri31-Jan-08 1:41
manisghouri31-Jan-08 1:41 
Generalhh:mm:ss in web form Pin
soniasan29-Jan-08 0:16
soniasan29-Jan-08 0:16 
GeneralRe: hh:mm:ss in web form Pin
Steven J Jowett29-Jan-08 0:21
Steven J Jowett29-Jan-08 0:21 
QuestionHow can i save 'Pen' to dataset table ? Pin
BooleanTrue28-Jan-08 23:48
professionalBooleanTrue28-Jan-08 23:48 
AnswerRe: How can i save 'Pen' to dataset table ? Pin
Guffa29-Jan-08 3:24
Guffa29-Jan-08 3:24 
GeneralListView management Pin
ilgale28-Jan-08 23:38
ilgale28-Jan-08 23:38 
GeneralRe: ListView management Pin
Johan Hakkesteegt2-Feb-08 10:29
Johan Hakkesteegt2-Feb-08 10:29 
QuestionDatabinding not working correctly on user pc's Pin
Gr1mR33p3r28-Jan-08 23:36
Gr1mR33p3r28-Jan-08 23:36 
GeneralRe: Databinding not working correctly on user pc's Pin
Johan Hakkesteegt2-Feb-08 10:26
Johan Hakkesteegt2-Feb-08 10:26 
GeneralFile handling in vb.net Pin
soniasan28-Jan-08 23:33
soniasan28-Jan-08 23:33 
GeneralRe: File handling in vb.net Pin
Steven J Jowett29-Jan-08 0:18
Steven J Jowett29-Jan-08 0:18 
QuestionHow to get MAC address Pin
saravana00128-Jan-08 21:38
saravana00128-Jan-08 21:38 
AnswerRe: How to get MAC address Pin
Mustafa Ismail Mustafa28-Jan-08 22:16
Mustafa Ismail Mustafa28-Jan-08 22:16 
AnswerRe: How to get MAC address Pin
Steven J Jowett28-Jan-08 22:45
Steven J Jowett28-Jan-08 22:45 
GeneralRe: How to get MAC address Pin
OtisBiscuit29-Jan-08 1:28
OtisBiscuit29-Jan-08 1:28 
QuestionHow to create like Windows O.S have run command box (Combo Box) Pin
Francis K Antony28-Jan-08 19:22
Francis K Antony28-Jan-08 19:22 
GeneralRe: How to create like Windows O.S have run command box (Combo Box) Pin
Mustafa Ismail Mustafa28-Jan-08 22:27
Mustafa Ismail Mustafa28-Jan-08 22:27 

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.