Solved

Help with VB 4.0 and forms

Posted on 1998-08-27
4
121 Views
Last Modified: 2010-04-30
I cant get the other forms to show in a prog with the frm.show thing, It says Object required...and then the prog closes...I was wondering if you could help me...I heard I might need to make a DLL file, or get one.
0
Comment
Question by:Klueny2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:waty
Comment Utility
If your command is

   frm.show

"frm" should be a valid form or even a variable used as following :

   Dim frm     as New Form

   Set frm = frmMainWindow

   frm.Show
0
 

Author Comment

by:Klueny2
Comment Utility
It says Sub or function not defined with "set"
0
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 50 total points
Comment Utility
You have to use .Shoe on a form that exists, like if you have a form named form2, use form2.Show
anything else will generate an error
0
 
LVL 14

Expert Comment

by:waty
Comment Utility
frmMainWindow should be a valid form in your project. It has been givan as a sample
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now