You have to add an registry-entry. Here is an example: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{FB5F1910-F110-11d2-BB9E-00C04F795683}] "ButtonText"="Messenger" "CLSID"="{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}" "Default Visible"="Yes" "Exec"="C:\\Programme\\Messenger\\msmsgs.exe" "HotIcon"="C:\\Programme\\Messenger\\msmsgs.exe,302" "Icon"="C:\\Programme\\Messenger\\msmsgs.exe,301" "MenuText"="Windows Messenger" "ToolTip"="Windows Messenger" HotIcon/Icon also could be a path to a "Image.ico"
Juergen
Posts
-
IE8 Addons Icon -
IE8 Addons IconNo I do not have a link to information saying it can be done but also no that it cannot be done. I supposed if the Control has a place for Icons, then there should be a way to display one for each element not only Browser-Extensions.
-
IE8 Addons IconHow can I set an icon to an ActiveX Control in the Internet Explorer 8 Manage-Addons-Dialog. I know how to do it with a Browser-Extension but not how to do it with an ActiveX Control. I even can't find any example. Any help or tip would be great!
-
Drawing on DesktopThe GetDesktopWindow function returns a handle to the desktop window (MSDN).
Graphics g = Graphics.FromHwnd(GetDesktopWindow());
creates the Graphics object. In the debugger it looks like g is created properly, (exactly the same values as when created with Graphics.FromHdc(GetDC(IntPtr.Zero));) but any Drawing on it, is at least invisible. Juergen -
Drawing on DesktopThanks for your reply, in my post there already was a working solution. But the question was why the first solution don't work
Graphics g = Graphics.FromHwnd(GetDesktopWindow());
while the second solution works fine.Graphics g = Graphics.FromHdc(GetDC(IntPtr.Zero));
In my understanding both should work. I like to know the reason for this behaviour. Juergen -
Drawing on DesktopI have an interesting behavior: [DllImport("user32.dll")] static public extern IntPtr GetDC(IntPtr hWnd); [DllImport("user32.dll")] static public extern IntPtr GetDesktopWindow(); When I get the Graphics object through Graphics g = Graphics.FromHwnd(GetDesktopWindow()); any drawing on the desktop do not result in anything. When I get the Graphics object through Graphics g = Graphics.FromHdc(GetDC(IntPtr.Zero)); I can draw on the desktop. Any explanation? Juergen
-
Language TranslationTry http://odur.let.rug.nl/~vannoord/TextCat/Demo/ its a languages identifier supporting about 66 languages. From this page there is also a link to other languages guessers (The competitors!)
-
How to get the HINSTANCE of a dll?How to get the HINSTANCE of a dll? Is there a way to get the HINSTANCE from a dll, without saving the HINSTANCE from the DllMain or calling GetModuleHandle("DLLName")? I want to use the HINSTANCE in a COM-Object, thus its not elegant to hand over it from the DllMain. Otherwise the dll should exists with different names, witch make it inconvenient to use a filename in the code. Thanks Juergen
-
How to access the IDE-Toolbar?How to access the IDE-Toolbar of Visual Studio .NET from a VBScript or an AddIn? I like to add some Buttons (with bitmap) which can execute a Macro. (I don't want manually add the Toolbar and the Buttons at every Computer) Juergen
-
How to search the Message Boards?Perhaps a stupid question, but how can I search in the message board? (The normal search only works for articles)
-
Sentto Drag&Drop no longer workingI could solve my "sent to" problem. Perhaps my solution can help others too. In the registry there was following key missing: HKEY_CLASSES_ROOT\exefile\shellex\DropHandler Standard REG_SZ {86C86720-42A0-1069-A2E8-08002B30309D} I also forwarded this to microsoft. Juergen
-
Sentto Drag&Drop no longer workingAfter uninstalling an OCR software and rebooting Sentto and Drag&Drop with shortcuts no longer working. If I try to send a file from Explorer to Notepad Notepad would not start any more. I'm using W2k SP2. Applying SP2 again would not help. Recreate the shortcut in the sentto folder would not help. Login as admin woldn't help either. No help found in the newsgroups therefore I'm asking here. Many thanks
-
converting sln/vcproj to dsw/dsp ?Is there an easy (automatic) way to convert "Solutions" from Visual Studio.Net beta2 back to "Workspaces" from VS6.0? Or is there an other way to easily share a project between both VS versions? Juergen