|
||||||
| C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
How do you hide form1 on startup? I have an application where I have a notifyicon and don't want to display the main form (although the notifyicon is in the form1 on load). I used
Code:
this.visible = false;
__________________
I Need Help |
| Sponsored Links |
|
|
|
|||||
|
I've seen this problem before. You can do this:
On Form Load: Code:
this.opacity = 0; Code:
this.opacity = 1;
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||
|
You could do this.WindowState = WindowState.Minimized, which will minimize the form, but show it in the taskbar. By setting this.ShowInTaskbar to False, you'll get rid of the task, but it can still be gotten to via Alt-Tab.
The better way to do this would be to use a void Main() as a startup. Then, you can either just show the TrayIcon, or control what forms are shown. |
|
|||
|
Quote:
How do I use void main as startup?
__________________
I Need Help |
| Sponsored Links |
|
|
|
|||||
|
I was able to replicate the program just now. Not sure why it shows a little box there but if you follow the steps above that will happen. If you set the form to minimized in the properties it will not show but if you return it to normal it shows as the box instead of showing the "normal" state form.
Not sure if this is a bug or what. I'd go with brackett's suggestion and switch it to void main().
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coding a change password form | InternetGeek | Visual Basic Programming | 11 | 02-16-2008 01:53 PM |
| Lost form | InternetGeek | Visual Basic Programming | 3 | 02-10-2007 05:26 PM |
| Run code on startup? | CheeseBurgerMan | Visual Basic Programming | 7 | 07-28-2006 04:00 PM |
| Calling a form from another form | Void | Managed C++ | 1 | 07-01-2006 09:44 AM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 65%