473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Form.Hide() or Form.Visable won't work. :(

For some reason Form1.hide() won't hide the form. I run this command at
form load. I need it to hide because I'm placing an icon on the system
tray. Any ideals? I probley changed something that messed it up.

Thanks for reading,

AK

Sep 4 '06 #1
5 16391
AK,

Can you post your code?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ak*****@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
For some reason Form1.hide() won't hide the form. I run this command at
form load. I need it to hide because I'm placing an icon on the system
tray. Any ideals? I probley changed something that messed it up.

Thanks for reading,

AK

Sep 4 '06 #2
Their is really nothing to post. My form designer code looks like this:

http://pastebin.ca/160562

I run this.hide() at form_load.

Sep 4 '06 #3

ak*****@gmail.com wrote:
Their is really nothing to post. My form designer code looks like this:

http://pastebin.ca/160562

I run this.hide() at form_load.
Well, you say that you run "this.hide()" at form_load... you could post
_that_ code.

Sep 4 '06 #4
*sigh*
namespace teklinks
{
public partial class Form1 : Form
{
public Form1()
{
this.Hide();
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
}
}
}

:P

Sep 4 '06 #5
ak*****@gmail.com wrote:
*sigh*
namespace teklinks
{
public partial class Form1 : Form
{
public Form1()
{
this.Hide();
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
}
}
}
Hiding the form inside the form's load event will not work.

If you don't want the form to be visible, then don't call it's Show or
ShowDialog method. Instead, put your icon in the system tray inside of
your main method. Then call Application.Run without any arguments.

Sep 5 '06 #6

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

Similar topics

3
by: Oliver Spiesshofer | last post by:
Hi, I have a script that calls an fopen() on an external URL. I can run the script from the server as an url fine. When however the script should be run from crontab, it does not work. I get ...
5
by: Catherine | last post by:
I am having a problem viewing asp pages on iis version 5.1 xp pro. HTML pages are viewable on http://localhost but .asp pages are not. I have created a test program called timetest.asp with the...
3
by: earl | last post by:
Hey Say I have two <form> on a page like this : <form action="private.asp" method="post" name="form1"> // code <input type=submit value="submit" name="submit"> </form> <form...
19
by: Allen Thompson | last post by:
sorry for the simple question, haven't done this in a while. when I use the following script it keeps displaying the value of "x" like a string. for example, if I type the number 7 in the prompt,...
13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
0
by: yasker | last post by:
Hi, all I'm developing an application that needs to pop up when the user presses a global hot key. I followed instruction using Win32 API RegisterHotKey. It works fine at first, but what's the...
3
by: Raj Wall | last post by:
Hi, I have an application which, when running, is to be seen only in the system tray as a right-clickable icon. However I want the main Form window itself to immediately disappear without...
17
by: so many sites so little time | last post by:
all right so the script is pretty simple it goes it retrives what the id of the post is and it lets you edit it well no it doesnt. now if you go to www.kirewire.com/pp2/index/php you will see a...
8
by: Mark12345 | last post by:
Hi folks, thanks for looking. I have a database that takes down order details. Each customer has there own priceid in the price table. the errors that I get say enter parameter value for:...
3
by: ukfusion | last post by:
I have a php page with a form....the form has a hidden variable called subjoin. with a value of 1 in the page the data is posted to i have the following code <?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.