Click here to Skip to main content
15,892,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Getting error System.InvalidCastException occurred Pin
Bernhard Hiller11-May-12 3:05
Bernhard Hiller11-May-12 3:05 
GeneralRe: Getting error System.InvalidCastException occurred Pin
KireronThunderStone11-May-12 9:23
KireronThunderStone11-May-12 9:23 
GeneralRe: Getting error System.InvalidCastException occurred Pin
Bernhard Hiller13-May-12 20:22
Bernhard Hiller13-May-12 20:22 
QuestionHow can i Import Mutiple DBF files to different Tables in MDB Pin
baru_240910-May-12 20:46
baru_240910-May-12 20:46 
AnswerRe: How can i Import Mutiple DBF files to different Tables in MDB Pin
Eddy Vluggen11-May-12 0:34
professionalEddy Vluggen11-May-12 0:34 
GeneralRe: How can i Import Mutiple DBF files to different Tables in MDB Pin
baru_240911-May-12 1:50
baru_240911-May-12 1:50 
GeneralRe: How can i Import Mutiple DBF files to different Tables in MDB Pin
Eddy Vluggen11-May-12 5:44
professionalEddy Vluggen11-May-12 5:44 
QuestionStarting program with a command line parameter Pin
KreativeKai10-May-12 4:53
professionalKreativeKai10-May-12 4:53 
I've googled, searched CodeProject, etc, and I hope I'm overlooking something, but here is what I want to do:

I want to call a Windows Form application from another Windows Form application.

The program being called, may be called from different form based applications and needs to know who is calling.

I've found in testing, that with this code, I can accept a parameter:

Public Shared Sub Main() <br />
      If Command$() = "/CR" Then<br />
            strAppStartedFrom = "CR" 'Started from Check Recon Application<br />
        Else<br />
            strAppStartedFrom = "--"<br />
        End If<br />
        MsgBox(strAppStartedFrom & Command$())<br />
        frmFTP.ShowDialog()<br />
    End Sub<br />


I've published it, and from what I can find it puts the exe in this location?
C:\Users\username\AppData\Local\Apps\2.0\0BTCBQ53.QL1\OMCV071R.O93\carr..tion_c302ad764aefaa28_0001.0001_bcaadc20b696e727\CarrollFlexFTP.exe /CR

This path seems like it might change and not be consistent when installing it for different users.

The above link works if it is executed with a /CR parameter, but I need a more stable way of doing this.

In the past I've pointed shortcuts to the setup.exe file in the location we publish the application to, but if I run the app using the setup.exe /CR parameter, it doesn't work.

Suggestions?
Lost in the vast sea of .NET

AnswerRe: Starting program with a command line parameter Pin
Dave Kreskowiak10-May-12 9:20
mveDave Kreskowiak10-May-12 9:20 
GeneralRe: Starting program with a command line parameter Pin
KreativeKai10-May-12 9:29
professionalKreativeKai10-May-12 9:29 
GeneralRe: Starting program with a command line parameter Pin
Dave Kreskowiak10-May-12 12:53
mveDave Kreskowiak10-May-12 12:53 
GeneralRe: Starting program with a command line parameter Pin
KreativeKai11-May-12 1:29
professionalKreativeKai11-May-12 1:29 
GeneralRe: Starting program with a command line parameter Pin
Dave Kreskowiak11-May-12 1:38
mveDave Kreskowiak11-May-12 1:38 
GeneralRe: Starting program with a command line parameter Pin
KreativeKai11-May-12 1:57
professionalKreativeKai11-May-12 1:57 
AnswerRe: Starting program with a command line parameter Pin
Sasha Laurel15-May-12 13:40
Sasha Laurel15-May-12 13:40 
AnswerRe: Starting program with a command line parameter Pin
pcusr806-Jun-12 3:57
pcusr806-Jun-12 3:57 
QuestionDRAG & DROP LABELS SWAP Pin
User 871522210-May-12 0:57
professionalUser 871522210-May-12 0:57 
AnswerRe: DRAG & DROP LABELS SWAP Pin
Dave Kreskowiak10-May-12 2:21
mveDave Kreskowiak10-May-12 2:21 
AnswerRe: DRAG & DROP LABELS SWAP Pin
User 871522210-May-12 23:11
professionalUser 871522210-May-12 23:11 
QuestionGet currency conversion from website Pin
wouterv819-May-12 13:33
wouterv819-May-12 13:33 
AnswerRe: Get currency conversion from website Pin
Dave Kreskowiak9-May-12 18:44
mveDave Kreskowiak9-May-12 18:44 
QuestionThis row already belongs to this table error Pin
rusydan.khir9-May-12 7:03
rusydan.khir9-May-12 7:03 
AnswerRe: This row already belongs to this table error Pin
Dave Kreskowiak9-May-12 10:23
mveDave Kreskowiak9-May-12 10:23 
GeneralRe: This row already belongs to this table error Pin
rusydan.khir9-May-12 18:27
rusydan.khir9-May-12 18:27 
GeneralRe: This row already belongs to this table error Pin
Dave Kreskowiak9-May-12 18:46
mveDave Kreskowiak9-May-12 18:46 

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.