Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I just wanted to say THANKS for the forum. The knowledge I gain from your site is invaluable..."

Geography

Where in the world do Tek-Tips members come from?

CALL A SUBROUTINE BY VARIABLE (STRING) NAME VB.NETHelpful Member!(2) 

paulgenga (Programmer)
14 May 12 5:47
Hi,

I am painfully stuck on this please help.
I have created a DLL through which I need to call procedures in my Application with parameters.
I hereby hope to find a way to practical function more or less like this one...

Public Sub Main(ByVal formName as String, ByVal subName as String, ByVal param as Object)
' subName may be contain the value AAA or BBB in my formName
End Sub
'===========================
Public Sub AAA(param)
'do something for AAA
End Sub
'===========================
Public Sub BBB(param)
'do something for BBB
End Sub

I greatly appreciate your help/advice on this problem..

Regards

pgenga

:-|Bob

SkipVought (Programmer)
14 May 12 7:26
hi,

If you are running this in a Microsoft application, like Excel or Word, then...

CODE

Application.Run Param

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

paulgenga (Programmer)
14 May 12 9:03
Thank You for your Reply, I am sorry...
I have created a VB.Net Form Application. from the DLL I am trying to access and execute a procedure in these form classes...

Please help me achieve this...

:-|Bob

Helpful Member!  Gruuuu (Programmer)
14 May 12 9:06
paul, you will want to check with this forum
SkipVought (Programmer)
14 May 12 9:10
...after all, this forum is Visual Basic for Applications not .net

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

paulgenga (Programmer)
14 May 12 9:20
@Gruuuu
I am sorry but I Server not Found for the provided forum,
Would you please review the Link for me....

Paul

:-|Bob

Gruuuu (Programmer)
14 May 12 9:30
Whoops. clicked the wrong one anyway

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close