|
-
Sep 21st, 2002, 04:19 PM
#1
Thread Starter
New Member
Blank Form
Show a new Blank Form using Code
Ej.
Programming a CommandButton that show a new Form without using Add Form in Visual Basic
I'm try this
dim frmC as form
set frmC = new Form
but this don't work
I know that I can put
set frmC = new Form1 but this show all element in the form1 and if I change the name of form1, this make and error.
I need that when click the button appear a new Blank Form.
I need this to implement my Activex Control.
Send me an email to [email protected]
-
Sep 21st, 2002, 11:00 PM
#2
Junior Member
I think it will work.
VB Code:
dim frmC as form
set frmC = new Form
frmC.show
Using the code you listed just create a new FORM object, but it's not explicit you want to show it.
-
Sep 22nd, 2002, 02:24 AM
#3
Thread Starter
New Member
Nop, this not work
this give a compile error
Invalid use of New Keywork
if I put
Dim frmC as form
set frmC = new Form1
frmc.show
this work but when I change the name of the form, this give an error
-
Sep 23rd, 2002, 01:33 PM
#4
Fanatic Member
Originally posted by juanki23
Nop, this not work
this give a compile error
Invalid use of New Keywork
if I put
Dim frmC as form
set frmC = new Form1
frmc.show
this work but when I change the name of the form, this give an error
#
You will have to change your code to suit your form names
holly
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
|