Click here to Skip to main content
15,889,096 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Unistall from vb.net Pin
Mithun.Shitole17-Jun-09 1:53
Mithun.Shitole17-Jun-09 1:53 
QuestionCalling a C# exe with argument from vb code. Pin
mark_me16-Jun-09 13:06
mark_me16-Jun-09 13:06 
AnswerRe: Calling a C# exe with argument from vb code. Pin
Henry Minute16-Jun-09 14:11
Henry Minute16-Jun-09 14:11 
QuestionRe: Calling a C# exe with argument from vb code. Pin
mark_me16-Jun-09 17:27
mark_me16-Jun-09 17:27 
AnswerRe: Calling a C# exe with argument from vb code. Pin
Luc Pattyn16-Jun-09 14:22
sitebuilderLuc Pattyn16-Jun-09 14:22 
GeneralRe: Calling a C# exe with argument from vb code. Pin
mark_me16-Jun-09 17:31
mark_me16-Jun-09 17:31 
GeneralRe: Calling a C# exe with argument from vb code. Pin
The Man from U.N.C.L.E.16-Jun-09 22:45
The Man from U.N.C.L.E.16-Jun-09 22:45 
GeneralRe: Calling a C# exe with argument from vb code. Pin
Jon_Boy17-Jun-09 6:58
Jon_Boy17-Jun-09 6:58 
.DLL:
do what Uncle said above to make the .dll support interop. Make sure you to use generic data types in your method signature. There are plenty of tutorials on this. Use regasm as nec on clients, etc.


.EXE:
You can start a .Net exe from VB6. For a simple example, all you have to do is something like:

strRunFilename = strRunFilename & " " & gstrCommandLineProgram

Shell strRunFilename, vbNormalFocus


Note that gstrCommandLineProgram get parsed from within the .Net .exe and the appropriate action(s) are taken. You could also use CreateProcessWithLogon, WaitForSingleObject, etc, etc depending on exactly what you need to do; but shell is easy and probably suffice for you what you're trying to do.

This is digging deep in the memory banks, but I think shell will work pretty much for any OS level where as CreateProcessWithLogon may have not worked with win98 (if there are OS requirements).

Cheers!

"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

QuestionMouse Location Pin
No-e16-Jun-09 10:23
No-e16-Jun-09 10:23 
AnswerRe: Mouse Location Pin
Henry Minute16-Jun-09 10:52
Henry Minute16-Jun-09 10:52 
GeneralRe: Mouse Location Pin
No-e17-Jun-09 2:03
No-e17-Jun-09 2:03 
QuestionWhat is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 7:40
Jon_Boy16-Jun-09 7:40 
AnswerRe: What is the .Net equiv to this VB6 format statement Pin
The Man from U.N.C.L.E.16-Jun-09 7:42
The Man from U.N.C.L.E.16-Jun-09 7:42 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 7:58
Jon_Boy16-Jun-09 7:58 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
The Man from U.N.C.L.E.16-Jun-09 8:04
The Man from U.N.C.L.E.16-Jun-09 8:04 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 8:42
Jon_Boy16-Jun-09 8:42 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Henry Minute16-Jun-09 8:50
Henry Minute16-Jun-09 8:50 
GeneralRe: What is the .Net equiv to this VB6 format statement Pin
Jon_Boy16-Jun-09 9:01
Jon_Boy16-Jun-09 9:01 
AnswerRe: What is the .Net equiv to this VB6 format statement Pin
The Man from U.N.C.L.E.16-Jun-09 22:40
The Man from U.N.C.L.E.16-Jun-09 22:40 
GeneralRe: What is the .Net equiv to this VB6 format statement [modified] Pin
Jon_Boy17-Jun-09 6:05
Jon_Boy17-Jun-09 6:05 
QuestionForm Loading in VB .net [modified] Pin
No-e16-Jun-09 4:59
No-e16-Jun-09 4:59 
AnswerRe: Form Loading in VB .net [modified] Pin
dan!sh 16-Jun-09 5:34
professional dan!sh 16-Jun-09 5:34 
GeneralRe: Form Loading in VB .net Pin
Colin Angus Mackay16-Jun-09 5:43
Colin Angus Mackay16-Jun-09 5:43 
GeneralRe: Form Loading in VB .net Pin
dan!sh 16-Jun-09 5:50
professional dan!sh 16-Jun-09 5:50 
GeneralRe: Form Loading in VB .net Pin
No-e16-Jun-09 6:08
No-e16-Jun-09 6:08 

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.