473,397 Members | 2,099 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,397 software developers and data experts.

ShowInTaskbar problems at run time

Ive an application that usually runs in the taskbar. ShowInTaskbar is set to
false during InitializeComponent.
It works fine.
However, I decided that i'd like the application to show in the task bar
when it was open on the desktop so set ShowInTaskbar to true when the form
was unhidden.
Unfortunately the application fell over with an "unable to get window
handle" error.
Am I able to set this property after initialization?

thanks
Claire

Nov 16 '05 #1
2 7170
Perhaps you could post some example code showing this problem...

Regards
Lee Alexander

"Claire" <bl****@blahhhhh.com> wrote in message
news:uS****************@TK2MSFTNGP11.phx.gbl...
Ive an application that usually runs in the taskbar. ShowInTaskbar is set to false during InitializeComponent.
It works fine.
However, I decided that i'd like the application to show in the task bar
when it was open on the desktop so set ShowInTaskbar to true when the form
was unhidden.
Unfortunately the application fell over with an "unable to get window
handle" error.
Am I able to set this property after initialization?

thanks
Claire

Nov 16 '05 #2
Hi Clair,

What I have done and it seems to work so far is put the following code in
the constructor of the form. I think I went down the path trying to hide
the form too but ran into problems.

this.ShowInTaskbar = false;
this.WindowState = FormWindowState.Minimized;

When I want to reshow the form I basicaly do the opposite.

this.WindowState = FormWindowState.Normal;
this.ShowInTaskbar = true;

Hope this helps
Paul

"Claire" <bl****@blahhhhh.com> wrote in message
news:uS****************@TK2MSFTNGP11.phx.gbl...
Ive an application that usually runs in the taskbar. ShowInTaskbar is set
to false during InitializeComponent.
It works fine.
However, I decided that i'd like the application to show in the task bar
when it was open on the desktop so set ShowInTaskbar to true when the form
was unhidden.
Unfortunately the application fell over with an "unable to get window
handle" error.
Am I able to set this property after initialization?

thanks
Claire

Nov 16 '05 #3

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

Similar topics

0
by: ptass | last post by:
I have a main form (Form1) which opens a second form (Form2) when a button is clicked. Form2 has .FormBorderStyle set to FixedSingle. Form2 contains two buttons, one which unpins it from Form1...
2
by: WoodBeeProgrammer | last post by:
i have a bunch of icons located to the right of my ShowInTaskbar windows and to the left of my status tray icons. they do stuff like microphone, speech tools, ime etc. how do they get there? ...
0
by: Bobby D | last post by:
I have two applications, one is sending a message, one is receiving. The sending app's code is as follows: ------------------------------------------------------------------------ private void...
0
by: Machi | last post by:
I am using C#.NET. API version showintaskbar form Window taskbar hide show not fire events MouseLeave and MouseEnter! Now i am facing a critical problem for MouseLeave and MouseEnter event when i...
2
by: Darren | last post by:
After several postings and a lot of messing around I have found that when changing the ShowInTaskbar option of the form the player starts to resize itself when a file is played. It also crashes...
3
by: Mitchell Vincent | last post by:
I can't find the post now but several months back I posted a problem I was having using the WebBrowser control when trying to have a systray icon pop back up a window that hadn't been shown in the...
0
by: yasker | last post by:
I register a hotkey following this article: http://www.dotnet2themax.com/ShowContent.aspx?ID=103cca7a-0323-47eb-b210-c2bb7075ba78 Using windows api to archive it. But when I use it as a part of my...
4
by: Mike | last post by:
I have a winforms application that is hidden using the following code upon prompt: //Remove from the taskbar and also from alt+tab this.Visible = false; this.ShowInTaskbar = false;...
1
by: afavretto | last post by:
Why if my WindowsForm has ShowInTaskbar to "False", the process isn't able to receive wMsg of type 0x4A from other processes ??? If ShowInTaskbar is true, my process can send and receive WMessages...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.