Thank you Tygur.

Now I may be getting a little picky here, but the form I am using this code on is not the main form for my program. When I bring up this form I hide the main form to prevent someone from Alt+Tabbing to the main form and messing around. I can't show the form modal, because I also show a small form with some other information. The user must be able to work with either form so it can't be modal.

I guess I should state the problem before I go into detail, but for those of you still reading. When I use this code, the taskbar button doesn't have an icon. The icon shows up fine in the Alt+Tab thingy, but not on the taskbar. Is this possible to do or should I quit being so technical?

I want the second form to appear to be the main form while the main form is hidden.

Any ideas?