|
-
Jul 6th, 2004, 08:04 PM
#1
Thread Starter
Addicted Member
Referencing a run-time created form
I am using this code to create a new form...
VB Code:
Dim frmShow As New Form
With frmShow
.WindowState = FormWindowState.Maximized
.MaximizeBox = False
.MinimizeBox = False
.BackColor = System.Drawing.Color.Black
End With
frmShow.Show()
In a different subroutine, I wanted to reference the now open "frmShow"
What should I do?
BeengieHappy.Vaue = (SharksScore > OpponentsScore)
Go Sharks!
-
Jul 6th, 2004, 08:20 PM
#2
PowerPoster
Hi,
Your code is obviously inside a sub routine and frmShow will cease to exist when you exit that sub.
Put the declaration as public in the genaral section of the appropriate form or module .
VB Code:
Public frmShow as New Form
Last edited by taxes; Jul 6th, 2004 at 08:27 PM.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Jul 6th, 2004, 08:46 PM
#3
Thread Starter
Addicted Member
Yes, thank you...
I keep forgetting about the basics while trying to figure out the changes with .NET
BeengieHappy.Vaue = (SharksScore > OpponentsScore)
Go Sharks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|