473,383 Members | 1,829 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,383 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 1288

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...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.