Click here to Skip to main content
15,926,703 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: need some help securing an application Pin
Dave Kreskowiak10-Jan-08 13:33
mveDave Kreskowiak10-Jan-08 13:33 
GeneralRe: need some help securing an application Pin
Shimmy Weitzhandler10-Jan-08 17:55
Shimmy Weitzhandler10-Jan-08 17:55 
GeneralReloading a form Pin
manisghouri10-Jan-08 7:16
manisghouri10-Jan-08 7:16 
GeneralRe: Reloading a form Pin
Dave Kreskowiak10-Jan-08 7:26
mveDave Kreskowiak10-Jan-08 7:26 
GeneralRe: Reloading a form Pin
manisghouri10-Jan-08 15:57
manisghouri10-Jan-08 15:57 
GeneralRe: Reloading a form Pin
Mycroft Holmes10-Jan-08 16:22
professionalMycroft Holmes10-Jan-08 16:22 
GeneralRe: Reloading a form Pin
Dave Kreskowiak11-Jan-08 1:25
mveDave Kreskowiak11-Jan-08 1:25 
QuestionAvoid new instance of a running Application Pin
dotnetme210-Jan-08 6:40
dotnetme210-Jan-08 6:40 
Not sure if I'm heading in the right direction but I have an application that when minimized it goes into the system tray, but then when the user double clicks the the application icon a second time it opens another instance of the application I would like it to activate the instance already running in the system tray. I can use Process.GetProcesses() to find if the process is currently running, but not sure what comes next I will list below what I have got so far... This application requires the user to login so I use a sub main to login then run app and when not used it is minimized don't want users logging in multiple instance...

Any help would be Greatly Appreciated Confused | :confused:

VB.net VS2005
---------------------------
Public Sub Main()
Dim localAll As Process() = Process.GetProcesses()
Dim x As Integer

For x = 0 To localAll.Length - 1
If InStr(localAll(x).ToString, "MyApp") Then
'Activate the running app ' <-- Need Help Here
Else
Dim dlg As New LoginForm1
If dlg.ShowDialog() = DialogResult.OK Then
Application.Run(Form1)
End If
End If
Next

End Sub

dotnetme2

GeneralRe: Avoid new instance of a running Application Pin
Dave Kreskowiak10-Jan-08 7:28
mveDave Kreskowiak10-Jan-08 7:28 
GeneralRe: Avoid new instance of a running Application Pin
dotnetme210-Jan-08 8:15
dotnetme210-Jan-08 8:15 
GeneralRe: Avoid new instance of a running Application Pin
Dave Kreskowiak10-Jan-08 8:32
mveDave Kreskowiak10-Jan-08 8:32 
GeneralRe: Avoid new instance of a running Application Pin
dotnetme210-Jan-08 10:34
dotnetme210-Jan-08 10:34 
GeneralDon't know where else to ask this but... Pin
Dalek Dave10-Jan-08 5:42
professionalDalek Dave10-Jan-08 5:42 
GeneralRe: Don't know where else to ask this but... Pin
Dave Kreskowiak10-Jan-08 5:57
mveDave Kreskowiak10-Jan-08 5:57 
GeneralRe: Don't know where else to ask this but... Pin
Dalek Dave10-Jan-08 6:19
professionalDalek Dave10-Jan-08 6:19 
Generalmain method -- Standalone and windows forms Pin
Cory Kimble10-Jan-08 4:32
Cory Kimble10-Jan-08 4:32 
GeneralRe: main method -- Standalone and windows forms Pin
Dave Kreskowiak10-Jan-08 4:53
mveDave Kreskowiak10-Jan-08 4:53 
QuestionHow to manage MDI Child document same as MS Word Editor Pin
msalman_ali10-Jan-08 2:04
msalman_ali10-Jan-08 2:04 
GeneralRe: How to manage MDI Child document same as MS Word Editor Pin
Dave Kreskowiak10-Jan-08 5:10
mveDave Kreskowiak10-Jan-08 5:10 
GeneralRe: How to manage MDI Child document same as MS Word Editor Pin
msalman_ali11-Jan-08 18:23
msalman_ali11-Jan-08 18:23 
GeneralRe: How to manage MDI Child document same as MS Word Editor Pin
Dave Kreskowiak12-Jan-08 6:55
mveDave Kreskowiak12-Jan-08 6:55 
Generalfree disc space Pin
Smithers-Jones10-Jan-08 1:03
Smithers-Jones10-Jan-08 1:03 
GeneralRe: free disc space Pin
Dave Kreskowiak10-Jan-08 4:38
mveDave Kreskowiak10-Jan-08 4:38 
GeneralRe: free disc space Pin
Smithers-Jones10-Jan-08 7:16
Smithers-Jones10-Jan-08 7:16 
QuestionWebbrowser control need help Pin
King of Kingz10-Jan-08 0:58
King of Kingz10-Jan-08 0:58 

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.