Click here to Skip to main content
16,006,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: problem Pin
Great Shipra14-Apr-06 22:28
Great Shipra14-Apr-06 22:28 
AnswerRe: problem Pin
Mekong River15-Apr-06 23:23
Mekong River15-Apr-06 23:23 
Question3D Globe Pin
spelltwister14-Apr-06 13:48
spelltwister14-Apr-06 13:48 
AnswerRe: 3D Globe Pin
Ed.Poore15-Apr-06 23:33
Ed.Poore15-Apr-06 23:33 
GeneralRe: 3D Globe Pin
spelltwister28-Apr-06 18:41
spelltwister28-Apr-06 18:41 
GeneralRe: 3D Globe Pin
Ed.Poore28-Apr-06 23:32
Ed.Poore28-Apr-06 23:32 
QuestionApplication Framework Pin
GtheMan14-Apr-06 12:30
GtheMan14-Apr-06 12:30 
AnswerRe: Application Framework Pin
GtheMan14-Apr-06 21:21
GtheMan14-Apr-06 21:21 
Well guys, I found the solution to my problem and it's so easy!

First of all, turn on the application framework and check the single instance checkbox underneath in the settings. Then, add this little chuck of code to your project:
<br />
Namespace My<br />
    Partial Friend Class MyApplication<br />
<br />
        Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup<br />
            Try<br />
                msgbox(e.CommandLine(0))<br />
            Catch<br />
<br />
            End Try<br />
        End Sub<br />
<br />
        Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs) Handles Me.StartupNextInstance<br />
            e.BringToForeground = True<br />
            Try<br />
                msgbox(e.CommandLine(0))<br />
            Catch<br />
<br />
            End Try<br />
<br />
        End Sub<br />
<br />
    End Class<br />
End Namespace<br />


The sub MyApplication_Startup starts when the first instance get's run, you can insert your own chunk of code there. The other sub starts when a user tries to start a second instance of the same application. Easy, isn't it? Laugh | :laugh:
QuestionVC++ "Handle" type causing issues in .NET Pin
REnginear14-Apr-06 10:37
REnginear14-Apr-06 10:37 
AnswerRe: VC++ "Handle" type causing issues in .NET Pin
Dave Kreskowiak14-Apr-06 12:06
mveDave Kreskowiak14-Apr-06 12:06 
GeneralRe: VC++ "Handle" type causing issues in .NET Pin
REnginear15-Apr-06 12:59
REnginear15-Apr-06 12:59 
GeneralRe: VC++ "Handle" type causing issues in .NET Pin
REnginear16-Apr-06 13:58
REnginear16-Apr-06 13:58 
QuestionDataset bound to combobox Pin
G7236014-Apr-06 9:28
G7236014-Apr-06 9:28 
AnswerRe: Dataset bound to combobox Pin
Dave Kreskowiak17-Apr-06 4:24
mveDave Kreskowiak17-Apr-06 4:24 
QuestionAdvice for tracking a recordset change - Hash Value? Pin
Brad6ft414-Apr-06 7:59
Brad6ft414-Apr-06 7:59 
AnswerRe: Advice for tracking a recordset change - Hash Value? Pin
Dave Kreskowiak14-Apr-06 8:26
mveDave Kreskowiak14-Apr-06 8:26 
GeneralRe: Advice for tracking a recordset change - Hash Value? Pin
Brad6ft414-Apr-06 8:47
Brad6ft414-Apr-06 8:47 
GeneralRe: Advice for tracking a recordset change - Hash Value? Pin
Dave Kreskowiak14-Apr-06 9:28
mveDave Kreskowiak14-Apr-06 9:28 
GeneralRe: Advice for tracking a recordset change - Hash Value? Pin
Brad6ft417-Apr-06 4:42
Brad6ft417-Apr-06 4:42 
GeneralRe: Advice for tracking a recordset change - Hash Value? Pin
Dave Kreskowiak17-Apr-06 12:29
mveDave Kreskowiak17-Apr-06 12:29 
GeneralRe: Advice for tracking a recordset change - Hash Value? Pin
Brad6ft422-Apr-06 6:33
Brad6ft422-Apr-06 6:33 
Questionobjectdatasource has no values to insert Pin
dr S.A.f.14-Apr-06 2:43
dr S.A.f.14-Apr-06 2:43 
AnswerRe: objectdatasource has no values to insert Pin
Steve Pullan14-Apr-06 3:50
Steve Pullan14-Apr-06 3:50 
GeneralRe: objectdatasource has no values to insert Pin
dr S.A.f.14-Apr-06 8:20
dr S.A.f.14-Apr-06 8:20 
QuestionVb 6 and access 2000 in LAN Pin
arunendra14-Apr-06 2:11
arunendra14-Apr-06 2:11 

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.