|
-
Oct 12th, 2003, 10:33 AM
#1
Thread Starter
Fanatic Member
Back to Basics...
Hi everyone,
I was just wondering if anyone could please tell me where I could go to learn the absolute basics for VB.Net which have been changed from VB6, because I cant do something so simple anymore.
The actual problem I got which is so simple is that I cant make a form visible or invisible using code.
VB Code:
Form1.Visible = True
Form2.Visible = False
Thats obviously how you would do it in VB6, but even that wont work in VB.Net now! The method used after an upgrade of a vb6 program to vb.net doesnt work either. It uses some sort of DefInstance (if thats right, cant remmeber).
Also about Unloading a form, thats changed aswell.
I dont know what parts in my books has this info so i need to ask here.
Thanks very much,
-
Oct 12th, 2003, 11:12 AM
#2
Visable works......
But if you want to hide and show a form, it's exactly like VB6. form1.hide() form2.show() (though you have to declare form2 as a new form in order to use the show() function)
For unloading, just use form.close() and I think someone here said the memory gets unallocated faster if you put the Keyword "End" in the closing event.
-
Oct 12th, 2003, 02:09 PM
#3
PowerPoster
-
Oct 13th, 2003, 05:05 PM
#4
New Member
visual basic 6
Hello everybody
Please help me you with this function...I have a problem with the VBA...Can someone tell me how to write the array function number and swith it number ?...example 1 2 to 2 1...thank you
-
Oct 14th, 2003, 07:41 PM
#5
Re: visual basic 6
Originally posted by tuantran
Hello everybody
Please help me you with this function...I have a problem with the VBA...Can someone tell me how to write the array function number and swith it number ?...example 1 2 to 2 1...thank you
wrong forum
-
Nov 18th, 2003, 01:23 PM
#6
Thread Starter
Fanatic Member
I have found you need to include a .ActiveForm after it, so now it goes
Form1.ActiveForm.Visible = True
unless you declare you form,
Dim Form1 As Form (somet like that)
Then you can use Form1.Visible = True
-
Nov 18th, 2003, 01:58 PM
#7
Addicted Member
i think you can simply use
me.visible=true
istead of
Form1.ActiveForm.Visible = True
-
Nov 19th, 2003, 10:57 AM
#8
Thread Starter
Fanatic Member
try that on another form, lol
You cant use 'me' if your starting the code from a different form or want to make a different form visible or not visible
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
|