Click here to Skip to main content
15,921,884 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: File associations & File Types Editor Pin
nvmoss13-Apr-04 14:02
nvmoss13-Apr-04 14:02 
GeneralRe: File associations & File Types Editor Pin
Dave Kreskowiak13-Apr-04 17:02
mveDave Kreskowiak13-Apr-04 17:02 
GeneralRe: File associations & File Types Editor Pin
nvmoss14-Apr-04 2:08
nvmoss14-Apr-04 2:08 
GeneralRe: File associations & File Types Editor Pin
Dave Kreskowiak14-Apr-04 2:42
mveDave Kreskowiak14-Apr-04 2:42 
GeneralRe: File associations & File Types Editor Pin
nvmoss14-Apr-04 3:40
nvmoss14-Apr-04 3:40 
GeneralRe: File associations & File Types Editor Pin
Dave Kreskowiak14-Apr-04 4:26
mveDave Kreskowiak14-Apr-04 4:26 
GeneralRe: File associations & File Types Editor Pin
nvmoss14-Apr-04 5:23
nvmoss14-Apr-04 5:23 
GeneralRe: File associations & File Types Editor Pin
Dave Kreskowiak14-Apr-04 8:40
mveDave Kreskowiak14-Apr-04 8:40 
That's expected unless you code it otherwise. Your app is going to have to check for a previous instance that is already running. THis code cample is right out of the VB.NET docs:
' Visual Basic .NET
Function PrevInstance() As Boolean
   If Ubound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then
      Return True
   Else
      Return False
   End If
End Function

You'll also have to write a mechanism so the app can communicate with another instance of itself. Look into Call Context or Asynchronous Remoting for some examples. They will look kind of wierd and you'll be wondering why your using http to send this stuff back and forth, but it's right. You'll be sending the full filename from the new instance to the old one.


RageInTheMachine9532
GeneralRe: File associations & File Types Editor Pin
Heath Stewart8-Apr-04 8:50
protectorHeath Stewart8-Apr-04 8:50 
GeneralPass Server Exception to Client proxy Pin
Anonymous8-Apr-04 2:46
Anonymous8-Apr-04 2:46 
GeneralWrite into a text file Pin
Daminda8-Apr-04 0:33
Daminda8-Apr-04 0:33 
GeneralRe: Write into a text file Pin
Dave Kreskowiak8-Apr-04 2:16
mveDave Kreskowiak8-Apr-04 2:16 
GeneralRe: Write into a text file Pin
Nadroj8-Apr-04 3:03
Nadroj8-Apr-04 3:03 
Generalanyone can provide simple code for printing??VB.NET Pin
MJay7-Apr-04 21:26
MJay7-Apr-04 21:26 
Generalmultiple projects in a solution Pin
PaleyX7-Apr-04 13:50
PaleyX7-Apr-04 13:50 
GeneralRe: multiple projects in a solution Pin
Dwayne J. Baldwin7-Apr-04 15:30
Dwayne J. Baldwin7-Apr-04 15:30 
GeneralRe: multiple projects in a solution Pin
PaleyX7-Apr-04 16:20
PaleyX7-Apr-04 16:20 
GeneralRe: multiple projects in a solution Pin
PaleyX7-Apr-04 16:54
PaleyX7-Apr-04 16:54 
GeneralRe: multiple projects in a solution Pin
PaleyX8-Apr-04 0:16
PaleyX8-Apr-04 0:16 
GeneralRe: multiple projects in a solution Pin
Dave Kreskowiak8-Apr-04 2:38
mveDave Kreskowiak8-Apr-04 2:38 
GeneralRe: multiple projects in a solution Pin
PaleyX9-Apr-04 1:48
PaleyX9-Apr-04 1:48 
GeneralRe: multiple projects in a solution Pin
Serge Lobko-Lobanovsky12-Apr-04 0:37
Serge Lobko-Lobanovsky12-Apr-04 0:37 
GeneralRemoving service Pin
Lord_Kaos7-Apr-04 10:00
Lord_Kaos7-Apr-04 10:00 
QuestionHourGlass??? Pin
hounetdev7-Apr-04 5:44
hounetdev7-Apr-04 5:44 
AnswerRe: HourGlass??? Pin
Dave Kreskowiak7-Apr-04 5:52
mveDave Kreskowiak7-Apr-04 5:52 

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.