473,836 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB2005 Hiding Windows Forms

I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide any
forms using the me.hide() or me.visible = False methods. As far as I can tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks

Aug 9 '06 #1
7 1765

"Steve954" <St******@discu ssions.microsof t.comwrote in message
news:81******** *************** ***********@mic rosoft.com...
>I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide
any
forms using the me.hide() or me.visible = False methods. As far as I can
tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks
<FormName>.Visi ble = False works fine here, as does Me.Hide().
VS .NET Pro 2005 on Win XP SP2.
Please provide a short, but complete example where it fails on your PC.

Aug 9 '06 #2

"Steve954" <St******@discu ssions.microsof t.comwrote in message
news:81******** *************** ***********@mic rosoft.com...
>I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide
any
forms using the me.hide() or me.visible = False methods. As far as I can
tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks
<FormName>.Visi ble = False works fine here. VS .NET Pro 2005 on Win XP SP2.
Please provide a short, but complete example where it fails on your PC.
Aug 9 '06 #3
On Wed, 9 Aug 2006 14:49:57 -0700, Steve954 <St******@discu ssions.microsof t.comwrote:
>I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide any
forms using the me.hide() or me.visible = False methods. As far as I can tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks
Not working as in still visible, or, Closing rather than Hiding?
How and where are you using Hide?

Gene
Aug 10 '06 #4

It won't work if you call it in form's Load event.
Even if you call Close in form Load, the form might splash before
hiding.
Calling Dispose() does not splash.

Steve954 wrote:
I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide any
forms using the me.hide() or me.visible = False methods. As far as I can tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks
Aug 10 '06 #5
Neither method works, it is as if they were not called, the form stays both
visible and fully usable.

I created a new project with a single form (with the defaullt name), tried
adding the me.hide() to the form load event but the form remains visible. I
tried replacing the me.hide() with the me.visible = False but still the same.
Thus the code could not be simpler.

Many Thanks

"gene kelley" wrote:
On Wed, 9 Aug 2006 14:49:57 -0700, Steve954 <St******@discu ssions.microsof t.comwrote:
I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide any
forms using the me.hide() or me.visible = False methods. As far as I can tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks

Not working as in still visible, or, Closing rather than Hiding?
How and where are you using Hide?

Gene
Aug 10 '06 #6
On Thu, 10 Aug 2006 00:38:01 -0700, Steve954 <St******@discu ssions.microsof t.comwrote:
>Neither method works, it is as if they were not called, the form stays both
visible and fully usable.

I created a new project with a single form (with the defaullt name), tried
adding the me.hide() to the form load event but the form remains visible. I
tried replacing the me.hide() with the me.visible = False but still the same.
Thus the code could not be simpler.

Many Thanks
Me.Hide has no meaning in a Load Event as the form does not become visible until the Load Event is
completed (nothing yet to hide). What you are seeing is simply the form loading and displaying as
normal.

Put a Button on that simple form example and add Me.Hide to the button click event.
Gene

>
"gene kelley" wrote:
>On Wed, 9 Aug 2006 14:49:57 -0700, Steve954 <St******@discu ssions.microsof t.comwrote:
>I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide any
forms using the me.hide() or me.visible = False methods. As far as I can tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks

Not working as in still visible, or, Closing rather than Hiding?
How and where are you using Hide?

Gene
Aug 10 '06 #7
Thanks your advise led me to look for a event that fires after the form load
has completed and subsequently found the Form_Shown event. I have used the
me.hide method in this and all now works as required.

Many Thanks

"gene kelley" wrote:
On Thu, 10 Aug 2006 00:38:01 -0700, Steve954 <St******@discu ssions.microsof t.comwrote:
Neither method works, it is as if they were not called, the form stays both
visible and fully usable.

I created a new project with a single form (with the defaullt name), tried
adding the me.hide() to the form load event but the form remains visible. I
tried replacing the me.hide() with the me.visible = False but still the same.
Thus the code could not be simpler.

Many Thanks

Me.Hide has no meaning in a Load Event as the form does not become visible until the Load Event is
completed (nothing yet to hide). What you are seeing is simply the form loading and displaying as
normal.

Put a Button on that simple form example and add Me.Hide to the button click event.
Gene


"gene kelley" wrote:
On Wed, 9 Aug 2006 14:49:57 -0700, Steve954 <St******@discu ssions.microsof t.comwrote:

I recently installed and started using VS2005 on a Windows XP Pro machine.
When creating a new windows forms project I find that I am unable to hide any
forms using the me.hide() or me.visible = False methods. As far as I can tell
these methods are available and should work in VB2005. Any help and advise
would be great as this is causing be a number of problems of two new
projects I am working on.

Many Thanks

Not working as in still visible, or, Closing rather than Hiding?
How and where are you using Hide?

Gene
Aug 11 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
2925
by: Bob Weiner | last post by:
What is the purpose of hiding intead of overriding a method? I have googled the question but haven't found anything that makes any sense of it. In the code below, the only difference is that when the Poodle is upcast to the Dog (in its wildest dreams) it then says "bow wow" where the bernard always says "woof" (see code). Basically, it appears that I'm hiding the poodle's speak method from everything except the poodle. Why would I...
6
3032
by: Maileen | last post by:
Hi, I have a listview in report mode. I have 3 columns in this listview and 1 column i would like to hide it from user's view. i tried to give width = 0 but user is still able to resize column after in runtime mode. So, could someone help me please ? thx, Maileen
4
1617
by: Slindee | last post by:
This statement worked in VB2003, but generates an error for 'CursorPosition' in VB2005. Did not find anything in Help. mouseX = CursorPosition.X - Me.Location.X *** Sent via Developersdex http://www.developersdex.com ***
10
1950
by: Galen Somerville | last post by:
Going from VB6 (RAD) to VB2005 (SAD) The documentation always shows graphics drawing in a paint event like Private Sub Pictcolor_Paint(ByVal sender As Object, ByVal e _ As System.Windows.Forms.PaintEventArgs) Handles PictColor.Paint End Sub But my VB6 program draws to the picturebox PictColor from many different
1
2113
by: Rich | last post by:
I have a simple vb2005 app (for testing). It is just a simple winform with one button that brings up a message box. When I invoke the app and click on the button, the message box comes up OK. When I click a button on the message box, the form and message box drop behind the IDE to the background. The exe does the same thing. What can I do to keep the app from dropping/falling to the background like that? Here is the code behind the...
14
2435
by: Dom | last post by:
Hi all I'm developing a control, and I need to hide some properties to the user. For example, suppose I need Text property to be completely inacessible (from a Form/Code that is into another project/assembly). I tried with attributes: <Browsable(False), _ EditorBrowsable(EditorBrowsableState.Never), _ RefreshProperties(RefreshProperties.Repaint), _
15
2032
by: Aalaan | last post by:
I am presently a user of classic vb6 and hang out on those newsgroups. Some of you may be aware that there is a very anti MS and vb2005 feeling there. I have tried to get them to tell me which features of vb2005 are actually worse then vb6 in practice, and forget the philosophy of backward compatibility for a moment. I would now like to hear "the other side". Could *anyone who previously used vb6* (only those pleased; I feel the others...
1
4444
by: Jeffrey Christiansen | last post by:
I wanted to add a toggle button to a VB2005 form to be used for a simple Windows Application (i.e. compiled to a "*.exe"), so I added the ActiveX Microsoft Forms Object toggle button, however I can't get this button does work properly. The documentation I found in the FM20.CHM files says the button state can be determined from its "Value" property, but the property list shown in VB2005 does not have a "Value" property. How is the button...
3
958
by: Web Search Store | last post by:
Hello, Just started with vb2005. In the old vb6, you could click on a button, and it would bring you right to the code for that button. In this new one, it takes you to some code, but doesn't seem to give you a blank template for the button on which to work.
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9656
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10526
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10240
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5811
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3100
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.