I'm using this simple exemple directly from the article you linked for me. And it still doesn't work!!!
Would there be something else? Like not a simple parameter error, but perhaps a difference if I'm using Office XP or Windows XP?
That was on purpose. As the replace doesn't work, I've tried the very basic, with the simpliest exemple I could find in the library, just find a text. And I still get the exception.
In this exemple, they do not use a parameter, but Word.Find.Text instead
You could always make a second set of icons to add to your image list that are offset by the length of the original images (so you can simply shift the image index by the number of colored images). You'll have to extend the ToolBar class, however, in order to draw the buttons using those images, most likely having to override WndProc since the ToolBar control is just a wrapper to the Windows Common Control's Toolbar class. Messages are sent/posted and notification messages are handled. You'll have to do the same.
To see what's happening behind the scenes with the class, you should get yourself a good decompiler like .NET Reflector[^]. Understanding the Windows Messaging system and the Win32 APIs is necessary.
Isn't it about time Chris makes a "help me do my homework / project / whatever" forum ?
Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
This over-used application UI went out of style last century (really). There are much better ways to organize your program. The Start menu should not be triffled with and not duplicated, as it might confuse many of your users. It's purpose is to allow quick access to programs and settings, just like Mac's Apple menu, and KDE and GNOME's similar menus. Applications have menus for this purpose, like File, Edit, View, Windows, Help, etc. You should stick with these and read the Official Guidelines for User Interface Developers and Designers[^] for Microsoft Windows. Designing a consistent UI is important for users.
Is it at all possible to add additional buttons next to the ControlBox on a windows form (kind of like what's in WindowsBlinds)?? Also, I'm trying to completely skin an app, so was wondering if anyone knows of any other ways I can "tweak" a form's border. Also, does anyone know of any prewritten skinning components for windows apps that have been created? Thank you so much.
For the first controls, they should be done in the next few months. More advanced controls will take a little while after that - mid-summer or beyond. (Just as I figured, the holidays offset the release date.)
"Mankind must put an end to war, or war will put an end to mankind." -- John F. Kennedy
I tried to override OnPaintBackground() but had no luck with that either.
There is a BackgroundImage property that you can set at design time or runtime. This works but tiles the image. I have not yet found a way to place the image, and tiling it is not what I wanted. But maybe it is some use to you?
The image is drawn quite slowly on my 550MHz machine with 400 MB RAM. On my 2GHz machine it's quite good, but uses 100% processor time. I assume that this is because of JIT and all that stuff, and it really annoys me. I wonder whether I should switch back to C++/MFC.
Please let me know if you ever find out how to place the image and prevent it from tiling.
What a lot of code! No, I certainly didn't expect it to be that hard. Thanks for the answer, though. Now I need to write some letters to MS to figure out why you need to go to such trouble to add an image to an MDI client