473,405 Members | 2,171 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.

Show/Hide Deskband Programmatically

Hi!

I have created a deskband, which appears on the taskbar(like Quick Launch
bar, language bar eyc). I would like to be able to

enable and disable it through an application(not from the context menu
appearing on the taskbar).

I have studied the functinon "ShowBrowserBar" of Shell32.IShellDispatch2 i
think which can help me but it gives me an exception.

I have added the reference Shell32.dll in my Application. and write the
folloeing code.

Dim oshell As Shell32.IShellDispatch2

oshell = New Shell32.Shell

oshell.ShowBrowserBar("{0A4286EA-E355-44FB-8086-AF3DF7645BD9}", True)

It generates the following error message:

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in Show-Hide.exe

Additional information: Unspecified error"

but if I want to show/hide the Favuorite band in Web Browser then it works
fine. For this I have to add the SHDocVw.dll in Reference. This is the
following code for that

Dim objWB As New SHDocVw.WebBrowser

objWB.ShowBrowserBar("{EFA24E61-B078-11d0-89E4-00C04FC9E26E}", True)

objWB.Visible = True

But i want to show/hide deskbar (Quick Launch , Windows Media Player,
Language bar) programmatically.

If anybody have done
with it then plz reply me

Thanx.

Apr 12 '06 #1
0 1606

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

Similar topics

1
by: Markus Dreinberg | last post by:
Hello, I tried to build a deskband based on a tutorial at http://www.thecodeproject.com/csharp/dotnetbandobjects.asp All in all it works fine but after a reboot of my computer the deskband...
0
by: mcr | last post by:
Hi I have seen this article http://www.codeproject.com/csharp/dotnetbandobjects.asp and then created my own deskband. Now i wonder how can i communicate with the main window in explorer from...
8
by: Andrew | last post by:
Hello, friends, We created a drop-down menu bar and a show/hide calendar web user controls mainly using javaScript and html. However, they both have the problem that they are not dispaly as...
5
by: bbembi_de | last post by:
Hello everyone, I have a deskband that resides in the taskbar. I can start it manually. But I want to start it with system start and for all users. Is there a registry entry I have to make? ...
0
by: Usman Sherwani | last post by:
Hi! I have created a deskband, which appears on the taskbar(like Quick Launch bar, language bar eyc). I would like to be able to enable and disable it through an application(not from the...
0
by: DHarry | last post by:
Hello, I've created a DeskBand in C# and I want to add a ContextMenu to my DeskBand. I am using VS2005. I added a ContextMenu with VS2005 to my UserControl. All works fine, but if I make a...
1
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
0
by: Delfim Da costa | last post by:
Hi all, I wrote a Desk band application, unfortunately, this application didn't stay in the taskbar after a reboot and if the deskband is shown in the taskbar during a reboot, the quick launch bar...
0
by: Delfim Da costa | last post by:
Hi all, I wrote a Desk band application, unfortunately, this application didn't stay in the taskbar after a reboot and if the deskband is shown in the taskbar during a reboot, the quick launch bar...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.