Click here to Skip to main content
14,766,746 members
Home » Discussions » Visual Basic
   

Visual Basic

 
Questionopen a new form from previous one Pin
dadhich29-Apr-07 21:33
Memberdadhich29-Apr-07 21:33 
AnswerRe: open a new form from previous one [modified] Pin
A*****29-Apr-07 21:41
MemberA*****29-Apr-07 21:41 
GeneralRe: open a new form from previous one Pin
Christian Graus29-Apr-07 21:59
protectorChristian Graus29-Apr-07 21:59 
GeneralRe: open a new form from previous one Pin
A*****29-Apr-07 22:16
MemberA*****29-Apr-07 22:16 
GeneralRe: open a new form from previous one Pin
Dave Kreskowiak30-Apr-07 9:13
mveDave Kreskowiak30-Apr-07 9:13 
QuestionHow to open only one instance of an application? Pin
just3ala229-Apr-07 21:18
Memberjust3ala229-Apr-07 21:18 
AnswerRe: How to open only one instance of an application? Pin
just3ala229-Apr-07 21:51
Memberjust3ala229-Apr-07 21:51 
AnswerRe: How to open only one instance of an application? Pin
Steven J Jowett30-Apr-07 1:42
MemberSteven J Jowett30-Apr-07 1: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 4:41
Memberjust3ala230-Apr-07 4:41 
QuestionProblem while data insertion in Access - Plz need help Pin
Jats_4ru29-Apr-07 21:09
MemberJats_4ru29-Apr-07 21:09 
AnswerRe: Problem while data insertion in Access - Plz need help Pin
Christian Graus29-Apr-07 22:00
protectorChristian Graus29-Apr-07 22:00 
GeneralRe: Problem while data insertion in Access - Plz need help Pin
Jats_4ru29-Apr-07 22:08
MemberJats_4ru29-Apr-07 22:08 
GeneralRe: Problem while data insertion in Access - Plz need help Pin
Colin Angus Mackay30-Apr-07 6:24
MemberColin Angus Mackay30-Apr-07 6:24 
QuestionHow to read volume label Pin
re infecta29-Apr-07 20:24
Memberre infecta29-Apr-07 20:24 
AnswerRe: How to read volume label Pin
A*****29-Apr-07 20:42
MemberA*****29-Apr-07 20:42 
QuestionRunning a function every hour Pin
re infecta29-Apr-07 20:22
Memberre infecta29-Apr-07 20:22 
AnswerRe: Running a function every hour Pin
Dave Kreskowiak30-Apr-07 9:09
mveDave Kreskowiak30-Apr-07 9:09 
Questioncsv file reading Problem Pin
virendra_00729-Apr-07 20:08
Membervirendra_00729-Apr-07 20:08 
AnswerRe: csv file reading Problem Pin
Dave Kreskowiak30-Apr-07 9:08
mveDave Kreskowiak30-Apr-07 9:08 
GeneralRe: csv file reading Problem Pin
virendra_0072-May-07 0:51
Membervirendra_0072-May-07 0:51 
Questioncombo box Pin
Patelgarha29-Apr-07 19:50
MemberPatelgarha29-Apr-07 19:50 
AnswerRe: combo box Pin
Christian Graus29-Apr-07 19:57
protectorChristian Graus29-Apr-07 19:57 
AnswerRe: combo box Pin
Sonia Gupta29-Apr-07 20:29
MemberSonia Gupta29-Apr-07 20:29 
QuestionEmbedding Javascript in ASP Pin
jase7629-Apr-07 19:11
Memberjase7629-Apr-07 19:11 
AnswerRe: Embedding Javascript in ASP Pin
Christian Graus29-Apr-07 19:21
protectorChristian Graus29-Apr-07 19: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.