473,322 Members | 1,610 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,322 software developers and data experts.

band objects

Hi,
i am working on creating bandobject in dot net. i have created band object
sucessfully. but to show that band object in taskbar i have to right click &
then click on tollbar, then i have to select my bandobject. But my
requirement is to show band object automatically, without right click on
taskbar. i am taking help from
http://www.codeproject.com/KB/shell/...select=2138288
also i am using below code in band object. But i am unable to show this
bandobject programmically. Can anybody help me out to solve this problem.
because below register function is a static function & called shen band
object is registered and other functions are non static, which cannot call in
register. Pleasse help me to solve this problem.

[ComRegisterFunctionAttribute]
public static void Register(Type t)
{
string guid = t.GUID.ToString("B");

RegistryKey rkClass =
Registry.ClassesRoot.CreateSubKey(@"CLSID\"+guid );
RegistryKey rkCat = rkClass.CreateSubKey("Implemented
Categories");

BandObjectAttribute[] boa =
(BandObjectAttribute[])t.GetCustomAttributes(
typeof(BandObjectAttribute),
false );

string name = t.Name;
string help = t.Name;
BandObjectStyle style = 0;
if( boa.Length == 1 )
{
if( boa[0].Name != null )
name = boa[0].Name;

if( boa[0].HelpText != null )
help = boa[0].HelpText;

style = boa[0].Style;
}

rkClass.SetValue(null, name );
rkClass.SetValue("MenuText", name );
rkClass.SetValue("HelpText", help );

if( 0 != (style & BandObjectStyle.Vertical) )
rkCat.CreateSubKey("{00021493-0000-0000-C000-000000000046}");

if( 0 != (style & BandObjectStyle.Horizontal) )
rkCat.CreateSubKey("{00021494-0000-0000-C000-000000000046}");

if( 0 != (style & BandObjectStyle.TaskbarToolBar) )
rkCat.CreateSubKey("{00021492-0000-0000-C000-000000000046}");

if( 0 != (style & BandObjectStyle.ExplorerToolbar) )

Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Micr osoft\Internet
Explorer\Toolbar").SetValue(guid,name);

}
Aug 26 '08 #1
0 1778

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

Similar topics

1
by: Craig | last post by:
Has anyone done any development with Internet Explorer band objects in VB.NET? If so, how did you resolve the issue surrounding IEs failure to process the backspace keydown event for edit...
0
by: Kevin Menard | last post by:
Hi, I have a project that is both an explorer band and a BHO. I'm using WISE to take a snapshot of the system after I do a "regasm" followed by a "regasm /codebase". Running this on a system...
3
by: Rainer Krauss | last post by:
I would like to code (just for learning) some band objects for Internet Explorer. To start with, i simply like to add a button to the Browser called "Trace". Pressing it should open a band like...
4
by: Dave | last post by:
Hi. I am interested in developing an IE band (small toolbar with buttons, etc;) and I was thinking maybe write it in c#. will this band after building it work on all os ? like: 98, win2k, xp ? ...
2
by: Tom Gerstner | last post by:
Dear all, I'm trying to program a IE Toolbar similar to the Google Bar in C# using Band Objects. Everything works fine but my TextBox (which I use to search the Internet) is not responding the...
0
by: Craig | last post by:
Has anyone done any development with Internet Explorer band objects in VB.NET? If so, how did you resolve the issue surrounding IEs failure to process the backspace keydown event for edit...
1
by: LabWINC | last post by:
Hi all, i would like to design a high pass filter with scipy.signal module. This is the code i'm using to: import scipy.signal as signal import scipy #first of all i design the lowpass fir...
1
by: Abubakar | last post by:
Hi, I'm in a process of creating an IE band object that would tell me when any url on the current page, loaded into IE, is clicked and what is its url. I'v created a band object (ATL project)...
0
by: Ben3eeE | last post by:
I got one too hard for me to fix problem. I know the cause and i know why but i cant fix it. I am using a "Rubber band" like function, drawing a rectangle on an image in a picturebox that i...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.