Click here to Skip to main content
15,897,518 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionopen a new form from previous one Pin
dadhich29-Apr-07 20:33
dadhich29-Apr-07 20:33 
AnswerRe: open a new form from previous one [modified] Pin
A*****29-Apr-07 20:41
A*****29-Apr-07 20:41 
GeneralRe: open a new form from previous one Pin
Christian Graus29-Apr-07 20:59
protectorChristian Graus29-Apr-07 20:59 
GeneralRe: open a new form from previous one Pin
A*****29-Apr-07 21:16
A*****29-Apr-07 21:16 
GeneralRe: open a new form from previous one Pin
Dave Kreskowiak30-Apr-07 8:13
mveDave Kreskowiak30-Apr-07 8:13 
QuestionHow to open only one instance of an application? Pin
just3ala229-Apr-07 20:18
just3ala229-Apr-07 20:18 
AnswerRe: How to open only one instance of an application? Pin
just3ala229-Apr-07 20:51
just3ala229-Apr-07 20:51 
AnswerRe: How to open only one instance of an application? Pin
Steven J Jowett30-Apr-07 0:42
Steven J Jowett30-Apr-07 0:42 
Try this :-

Dim currentProcess As Process = Process.GetCurrentProcess()<br />
Dim allProcesses() As Process = Process.GetProcessesByName(currentProcess.ProcessName)<br />
<br />
If allProcesses.Length > 1 Then<br />
    Me.Opacity = 0.5<br />
    MessageBox.Show("Program already running. This session will close")<br />
    Application.Exit()<br />
End If




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: How to open only one instance of an application? Pin
just3ala230-Apr-07 3:41
just3ala230-Apr-07 3:41 
QuestionProblem while data insertion in Access - Plz need help Pin
Jats_4ru29-Apr-07 20:09
Jats_4ru29-Apr-07 20:09 
AnswerRe: Problem while data insertion in Access - Plz need help Pin
Christian Graus29-Apr-07 21:00
protectorChristian Graus29-Apr-07 21:00 
GeneralRe: Problem while data insertion in Access - Plz need help Pin
Jats_4ru29-Apr-07 21:08
Jats_4ru29-Apr-07 21:08 
GeneralRe: Problem while data insertion in Access - Plz need help Pin
Colin Angus Mackay30-Apr-07 5:24
Colin Angus Mackay30-Apr-07 5:24 
QuestionHow to read volume label Pin
re infecta29-Apr-07 19:24
re infecta29-Apr-07 19:24 
AnswerRe: How to read volume label Pin
A*****29-Apr-07 19:42
A*****29-Apr-07 19:42 
QuestionRunning a function every hour Pin
re infecta29-Apr-07 19:22
re infecta29-Apr-07 19:22 
AnswerRe: Running a function every hour Pin
Dave Kreskowiak30-Apr-07 8:09
mveDave Kreskowiak30-Apr-07 8:09 
Questioncsv file reading Problem Pin
virendra_00729-Apr-07 19:08
virendra_00729-Apr-07 19:08 
AnswerRe: csv file reading Problem Pin
Dave Kreskowiak30-Apr-07 8:08
mveDave Kreskowiak30-Apr-07 8:08 
GeneralRe: csv file reading Problem Pin
virendra_0071-May-07 23:51
virendra_0071-May-07 23:51 
Questioncombo box Pin
Patelgarha29-Apr-07 18:50
Patelgarha29-Apr-07 18:50 
AnswerRe: combo box Pin
Christian Graus29-Apr-07 18:57
protectorChristian Graus29-Apr-07 18:57 
AnswerRe: combo box Pin
Sonia Gupta29-Apr-07 19:29
Sonia Gupta29-Apr-07 19:29 
QuestionEmbedding Javascript in ASP Pin
jase7629-Apr-07 18:11
jase7629-Apr-07 18:11 
AnswerRe: Embedding Javascript in ASP Pin
Christian Graus29-Apr-07 18:21
protectorChristian Graus29-Apr-07 18:21 

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.