0

Does anyone know what it would take to override the look and feel of a WinForms Control Box? I don't want to change the functionality of the buttons, I just want to change the color and the images. Something similar to what Instagrille has done with their Instagram app for Windows.

tentmaking
  • 2,076
  • 4
  • 30
  • 53
  • 1
    Take a look at this [SO question](http://stackoverflow.com/q/42460/479512) about changing Window Chrome. – Mark Hall Sep 05 '12 at 05:51

2 Answers2

1

The control box is created by system. AFAIK, you cannot customize it. Although you can get rid of it and create your own. This will take some effort.

You will have to P/Invoke User32.dll and override WndProc to intercept windows messages.

Take a look are these articles to begin with. This and this one.

danish
  • 5,550
  • 2
  • 25
  • 28
1

You may be better off porting your app to WPF. The level of control you're looking for comes "for free" in with the framework and is more future proof on the Windows platform. This answer is a good place to start, there are more good links here.

If that's not an option, I think danish has you off to a start. I would be wary of attempting to extend WinForms too far beyond what it's meant to do, in my experience it can make for a headache in the future. Good luck.

Community
  • 1
  • 1
sean_m
  • 1,564
  • 1
  • 12
  • 14