2

im developing a custom form and i need to put a button right next to the minimize button. Anyone know how to do it?

Leonardo
  • 10,737
  • 10
  • 62
  • 155

1 Answers1

2

P/Invoke would be the way forward there I would say, check out this link on msdn http://social.msdn.microsoft.com/forums/en-US/winforms/thread/485fb4c5-8430-4cb5-8a4d-ccd7892e403b.

That should get you on your way.

Cheers, Kevin

XikiryoX
  • 1,898
  • 1
  • 12
  • 33
  • and don't those work or was that not really what you were looking for, if not let me know and I'll see if I can find you a snippet to get you on your way – XikiryoX May 28 '12 at 18:44
  • i was quite not able to implement them... their source is missing or imcomplete... i would greatly appreciate a recent snipet – Leonardo May 28 '12 at 21:55
  • I assume the form will be used on a win7 machine? Let me see if I can wrap something that could get you on your way. I'll get back to you – XikiryoX May 28 '12 at 21:57
  • 1
    For a more recent option, check this one http://stackoverflow.com/questions/2841180/how-to-add-an-extra-button-to-the-windows-title-bar. This works and also has an extensive explanation on enabling aero features for it. – XikiryoX May 28 '12 at 22:17
  • 1
    looks very promissing! already voted up... get back to mark as answer as soon as i validate! – Leonardo May 29 '12 at 12:24