Click here to Skip to main content
15,925,255 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: To retrieve data from diffrent textbox to put in one field Pin
zaimah11-Feb-08 20:45
zaimah11-Feb-08 20:45 
GeneralRe: To retrieve data from diffrent textbox to put in one field Pin
zaimah15-Feb-08 15:10
zaimah15-Feb-08 15:10 
GeneralWebbrowser control need help Pin
King of Kingz11-Feb-08 18:36
King of Kingz11-Feb-08 18:36 
GeneralRe: Webbrowser control need help Pin
Christian Graus11-Feb-08 18:51
protectorChristian Graus11-Feb-08 18:51 
Generalmaximize window application Pin
nitin_ion11-Feb-08 18:18
nitin_ion11-Feb-08 18:18 
GeneralRe: maximize window application Pin
Christian Graus11-Feb-08 18:52
protectorChristian Graus11-Feb-08 18:52 
GeneralRe: maximize window application Pin
nitin_ion11-Feb-08 19:48
nitin_ion11-Feb-08 19:48 
GeneralRe: maximize window application Pin
Ajay.k_Singh11-Feb-08 20:41
Ajay.k_Singh11-Feb-08 20:41 
In order to detect already running instance of an existing application you may use following code in form load event-

--------------------------------------------
Dim ProgName As String = Diagnostics.Process.GetCurrentProcess.MainModule.ModuleName

Dim ProcName As String = System.IO.Path.GetFileNameWithoutExtension(ProgName)

If Process.GetProcessesByName(ProcName).Length > 1 Then

‘This will close the new instance of application
Application.Exit()

End If
---------------------------------------------

However in order to maximize currently running instance you will need to use a call back function in your application.

You may check following link for getting more information about cross-thread communication-

http://www.vbcity.com/forums/topic.asp?tid=112111

I hope this helps.

-Dave.

Dave Traister,
ComponentOne LLC.
www.componentone.com

QuestionHow can I click the link to navigate to the link. Pin
SekharOne11-Feb-08 18:00
SekharOne11-Feb-08 18:00 
QuestionCompare colors Pin
nishkarsh_k11-Feb-08 17:19
nishkarsh_k11-Feb-08 17:19 
GeneralRe: Compare colors Pin
Christian Graus11-Feb-08 17:47
protectorChristian Graus11-Feb-08 17:47 
GeneralRe: Compare colors Pin
nishkarsh_k11-Feb-08 17:59
nishkarsh_k11-Feb-08 17:59 
GeneralRe: Compare colors Pin
Christian Graus11-Feb-08 18:12
protectorChristian Graus11-Feb-08 18:12 
GeneralRe: Compare colors Pin
nishkarsh_k11-Feb-08 18:51
nishkarsh_k11-Feb-08 18:51 
GeneralRe: Compare colors Pin
Christian Graus11-Feb-08 18:52
protectorChristian Graus11-Feb-08 18:52 
GeneralHelp me to get printer share on the network Pin
nimolZero11-Feb-08 15:09
nimolZero11-Feb-08 15:09 
GeneralRe: Help me to get printer share on the network Pin
Christian Graus11-Feb-08 17:48
protectorChristian Graus11-Feb-08 17:48 
GeneralVB 6 Shows extraneous modules at startup Pin
jim_taylor11-Feb-08 13:43
jim_taylor11-Feb-08 13:43 
GeneralRe: VB 6 Shows extraneous modules at startup Pin
MohammadAmiry11-Feb-08 22:51
MohammadAmiry11-Feb-08 22:51 
GeneralRe: VB 6 Shows extraneous modules at startup [modified] Pin
jim_taylor12-Feb-08 5:39
jim_taylor12-Feb-08 5:39 
GeneralSplitContainer with more than 2 panels Pin
cstrader23211-Feb-08 13:11
cstrader23211-Feb-08 13:11 
GeneralRe: SplitContainer with more than 2 panels Pin
J$11-Feb-08 14:00
J$11-Feb-08 14:00 
GeneralRe: SplitContainer with more than 2 panels Pin
cstrader23212-Feb-08 4:10
cstrader23212-Feb-08 4:10 
GeneralDetect keypress on startup Pin
cstrader23211-Feb-08 6:53
cstrader23211-Feb-08 6:53 
GeneralRe: Detect keypress on startup Pin
Dave Kreskowiak11-Feb-08 8:06
mveDave Kreskowiak11-Feb-08 8:06 

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.