GUI Template
Hi,
I'm new to Visual basic. Most of the tutorials for beginners are not in depth so I am asking anyone here for a little help.
I want to make a GUI independent program(1) to control another program(2) which has a object library file that can access methods to open and manipulate files through program(2).
Can someone show me an example code form to achieve this? I want each button to use a method in the library being used. I am having problems declaring methods & using them.
Thanks,
Ty
[535 byte] By [
ThaXiong] at [2007-11-11 7:26:16]

# 1 Re: GUI Template
Can you clarify your question? First, what is a "GUI-independent program?" Second, do you own Program 2, or is it a third-party application? Can you provide an example of Program 2's object model? What are the classes and methods that you want to call from Program 1?
# 2 Re: GUI Template
GUI(Graphic user interface) program. I own program 2. "pcdlrn.tlb" is the object library file I use. Some examples of the tree is as follows:
PCDLRN.Application
Application.Open
PCDLRN.PartProgram
PartProgram.EXECUTE
Basically I want to make it easier to open and use programs from Program(2) using the GUI (Program(1)).
# 3 Re: GUI Template
Try something like this:
Dim objApp As PCDLRN.Application
Set objApp = New PCDLRN.Application
objApp.Open
Dim objPartProg As PCDLRN.PartProgram
Set objPartProg = New PCDLRN.PartProgram
objPartProg.Execute