Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning 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 October 25th, 2004, 02:26 AM
q8z q8z is offline
Registered User
 
Join Date: Oct 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to start new form

'hi
'i want to show the start form from the module,i do this and it
' is not work:
    Sub main()
        Dim st As Start
        st = New Start()
        st.Show()
    End Sub
'what i need to do?(in order to open Start)?
'thanks

 
Old October 25th, 2004, 12:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

st is an Object, thus it requires the Set:

set st = New Start

Marco
 
Old October 26th, 2004, 05:40 AM
Aal Aal is offline
Authorized User
 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try this :

sub Make_Form()
Dim st as New Form1
    load st:st.visible = true
end sub

nice coding for you . . . bye






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cascading forms, form start locations pigparent Visual Basic 2005 Basics 3 June 27th, 2008 10:34 AM
How can I make my main form start up invisibly? dylanbutler Visual Studio 2005 1 May 16th, 2008 08:47 AM
start.com david_ste BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 March 27th, 2006 06:22 AM
How to auto load(on start) a form in access 2000? method Access 1 June 17th, 2005 10:55 PM
Start a form from a form? ZiqXx C# 12 July 6th, 2004 03:55 AM





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