mza1979m Posted March 11, 2003 Posted March 11, 2003 I have 2 Data Forms in my project (used to access tables in an external database). My question is, how do I show and hide these forms? Obviously, "DataForm1.Show" won't work. Apparently that's been upgraded as well. "DataForm1.DefInstance.Show" doesn't work either. So what is the syntax to show and hide a DataForm? Quote
*Gurus* divil Posted March 11, 2003 *Gurus* Posted March 11, 2003 To show a form, you must first create an instance of it: Dim f As DataForm1 = New DataForm1() f.Show() Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Cassio Posted March 11, 2003 Posted March 11, 2003 Try this: Dim frmData as New DataForm1 frmData.Show() Quote Stream of Consciousness (My blog)
Cassio Posted March 11, 2003 Posted March 11, 2003 Ooops, didnt see your reply Divil. Almost same time. Quote Stream of Consciousness (My blog)
mza1979m Posted March 11, 2003 Author Posted March 11, 2003 Thank you :) That worked perfectly. Thanks a lot. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.