Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2005, 11:32 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show a vb6 form using vbs

Hello!
I need to show an exxisting vb6 form ( frmHello ) using a vbscript.

I've already build a vb6 project and subroutine that call and execute a vbs file.
Now I send my form to vbs as parameter( and this is not a problem for me ).
But I don't know the code necessary to lunch a form.

HELP ME PLEASE!
I'm sorry form my english but i'm an italian boy
Tanks

 
Old January 25th, 2005, 11:46 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Ciao!

I’m wondering: Why use VBS at all? It seems like a step backward, to something more primitive...

Ciao!
 
Old January 25th, 2005, 12:02 PM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok Friend, I think so, but i can't change this old technology.
My software depend of another existing software.

have you got some advices to give me

Tanks so much

 
Old January 25th, 2005, 12:22 PM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Real problem is that.
I store the name of my form in a MSAccess database.
if I send directly the form to vbs, this problem don't exist, but I mus send to procedure a string.


 
Old January 25th, 2005, 03:39 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I do not think that you can address a form directly. A form is a dependent object within another container, whether that is a class, an EXE or a DLL.

You should be able to put what it is that you need to do inside an ActiveX DLL.
Then you can create an object of this type in your VBS, and use a method in the DLL that you set up to show the form.

VBS can instantiate objects, and ActiveX DLLs can be instantiated.
Having instantiated a given object, if it has methods, VBS can call them. If it has properties, VBS can set or read them.

Capito?
 
Old January 26th, 2005, 04:07 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yea guy.

I can't put all in a dll but your previous response is clean.

I CAN'T INSTANCE A FORM OR ADDRESS A FORM DIRECTLY TO A VBS!!!
I'm resolving my problem from another way.

grazie tante a bello alla prossima!!
tank you so much good guy, at next time!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
VB6 show a Forms with details? ecabralrojas Beginning VB 6 2 June 27th, 2008 10:51 AM
crystal report does not show up in vb6 JOAT VB How-To 9 January 15th, 2008 10:52 AM
How to Show Form AccessAasif@aol.com C# 2005 1 November 30th, 2007 03:44 PM
How To Close One Form And Show Another form Israr VS.NET 2002/2003 1 December 7th, 2004 12:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.