Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
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 July 7th, 2006, 06:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:[i]...You are not opening the form, you are creating a new one and showing it...
yes, that is exactly what my snippet of code does, and I never said otherwise. Load a new form and display it. Then depends to the developer to modify it according with the project's requirements.
 
Old July 7th, 2006, 09:53 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

Use this...it works for me


Dim frm as Form

For Each frm In Forms
  If frm.Name = Rs.Fields(0) Then
    frm.Show 'Same form found, show it and exit sub
    frm.SetFocus
    Exit Sub
  End If
Next
Forms.Add(Rs.Fields(0)).Show







Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically load new forms into Frames MichaelS Classic ASP Professional 0 July 11th, 2006 02:59 PM
Dynamically call javascript functions austinf Javascript 1 May 13th, 2006 07:31 AM
Loading forms dynamically bmains C# 2005 1 November 30th, 2005 03:53 PM
Save Dynamically created forms DaDeViL Access VBA 2 August 17th, 2005 08:29 AM
Dynamically resizing forms siptah Access 4 May 11th, 2005 04:24 AM





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