no see form

how can i make a form & controls invisble?
computerrajeshAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Erick37Commented:
Me.Visible = False

or

Form3.Visible = False
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ninooCommented:
hai rajesh

for each i in me.control
  i.visible=false
next i
me.visible=false

i hope my answer is more precise than eric37

 
0
vettrangerCommented:
and then there's always :

text1.visible=false
text1.visible=true

(Just in case he only wants to hide ONE control. ;-)  )
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

JuiletteCommented:
not really...if your form is invisible, so are all the controls, so why add code that not needed.

Wayne
0
Erick37Commented:
If the form is invisible, everything on the form is invisible.
Ninoo, you are assuming that every control has a Visible property.

This is more "precise":

Dim c As Control
On Error Resume Next
For Each c In Me.Controls
    c.Visible = False
Next
On Error Goto 0
0
ninooCommented:
OH! erick i give it to u,i hope u will take it lighter
0
JuiletteCommented:
ah heck...don't run the app and everythings invisible.
0
vettrangerCommented:
Wayne, I think I need to sell some clients on this concept! LOL We'll call it 'thinkware'. :-D
0
ninooCommented:
vettranger

  i did'nt get u

ninoo
0
Éric MoreauSenior .Net ConsultantCommented:
If you use "Load frmX" instead of "frmX.Show", the form will be available but not visible.
0
mark2150Commented:
The other alternative is to make a formless project. Create a new project. Add a module. Set the starting point to Sub Main instead of Form1. Delete the form. Compile and you'll have an .EXE that doesn't create a window when running.

M
0
DaveWaltonCommented:
computerrajesh seems to have disappeared from this discussion - I wonder where he went.  Perhaps he inadvertantly set his .Visible property to False...?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.