Click here to Skip to main content
15,891,951 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding Windows Form to DLL? Pin
Thomas Stockwell23-Aug-08 7:20
professionalThomas Stockwell23-Aug-08 7:20 
AnswerRe: Adding Windows Form to DLL? Pin
Mycroft Holmes23-Aug-08 22:52
professionalMycroft Holmes23-Aug-08 22:52 
QuestionUsing temp data in a loop [modified] Pin
Netblue23-Aug-08 3:33
Netblue23-Aug-08 3:33 
AnswerRe: Using temp data in a loop Pin
xx77abs23-Aug-08 8:04
xx77abs23-Aug-08 8:04 
AnswerRe: Using temp data in a loop Pin
Guffa23-Aug-08 15:00
Guffa23-Aug-08 15:00 
GeneralRe: Using temp data in a loop Pin
Netblue23-Aug-08 16:05
Netblue23-Aug-08 16:05 
GeneralRe: Using temp data in a loop Pin
Guffa24-Aug-08 12:47
Guffa24-Aug-08 12:47 
QuestionReading arguments from external associated file Pin
WhitW22-Aug-08 23:48
WhitW22-Aug-08 23:48 
Hey,

I'm trying to get my program to launch from a file with an associated extension and have the program immediately load that file.

I've already figured out how to register the extensions thanks to the article at http://www.codeproject.com/KB/vb/VBFileAssociation.aspx[^]. If I doubleclick the external file, my app does successfully launch, but I'm having difficulty getting it to actually load the external file.

So far I think my best bet is to use Application.CommandLineArgs, but I'm not having any luck implementing it. I've tried using the following code, but haven't had any success:

Friend myArgument As String = ""

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
	myArgument = My.Application.CommandLineArgs(0)

Catch ex As Exception
	If myArgument <> "" Then
		InputFile(myArgument)
	End If

End Try
...


Does anyone have any ideas? Thanks a bunch!
AnswerRe: Reading arguments from external associated file Pin
jzonthemtn23-Aug-08 2:03
jzonthemtn23-Aug-08 2:03 
QuestionAvoid connecting to a database through a connection string Pin
John Kh22-Aug-08 23:02
John Kh22-Aug-08 23:02 
AnswerRe: Avoid connecting to a database through a connection string Pin
coolguy007023-Aug-08 0:55
coolguy007023-Aug-08 0:55 
GeneralRe: Avoid connecting to a database through a connection string Pin
jzonthemtn23-Aug-08 2:05
jzonthemtn23-Aug-08 2:05 
AnswerRe: Avoid connecting to a database through a connection string Pin
jzonthemtn23-Aug-08 2:07
jzonthemtn23-Aug-08 2:07 
AnswerRe: Avoid connecting to a database through a connection string Pin
rprateek24-Aug-08 15:44
rprateek24-Aug-08 15:44 
AnswerRe: Avoid connecting to a database through a connection string Pin
Jon_Boy25-Aug-08 1:40
Jon_Boy25-Aug-08 1:40 
AnswerRe: Avoid connecting to a database through a connection string Pin
AlexeiXX325-Aug-08 6:15
AlexeiXX325-Aug-08 6:15 
Generalproblem when change C# to VB.Net Pin
Golden Jing22-Aug-08 18:36
Golden Jing22-Aug-08 18:36 
GeneralRe: problem when change C# to VB.Net Pin
Paul Conrad22-Aug-08 19:40
professionalPaul Conrad22-Aug-08 19:40 
GeneralRe: problem when change C# to VB.Net Pin
Golden Jing26-Aug-08 0:09
Golden Jing26-Aug-08 0:09 
QuestionVB 2005 program thread calling vbscript 5 [modified] Pin
rderkis22-Aug-08 14:56
rderkis22-Aug-08 14:56 
AnswerRe: VB 2005 program thread calling vbscript 5 Pin
jzonthemtn23-Aug-08 2:12
jzonthemtn23-Aug-08 2:12 
QuestionVB 6 to VB.Net syntax... Pin
CCG322-Aug-08 6:57
CCG322-Aug-08 6:57 
AnswerRe: VB 6 to VB.Net syntax... Pin
paas22-Aug-08 10:36
paas22-Aug-08 10:36 
GeneralRe: VB 6 to VB.Net syntax... Pin
Thomas Stockwell24-Aug-08 5:17
professionalThomas Stockwell24-Aug-08 5:17 
Questionloading report using crystal report Pin
Wael Hawari22-Aug-08 5:03
Wael Hawari22-Aug-08 5:03 

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.