no see form

how can i make a form & controls invisble?
computerrajeshAsked:
Who is Participating?
 
Erick37Connect With a Mentor Commented:
Me.Visible = False

or

Form3.Visible = False
0
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.