I have a .NET application that is being targeted to run on Windows Mobile 5 and Windows CE .NET 4.2 and there are some minor differences between how forms display that I’m trying to converge.
On the WM device a form will display with an “ok” button in the top right while on CE the same form will show an “X”. Is there anyway on CE to have it display the “OK”? I’ve seen “OK” show up on message boxes so it seems like I should be able to…
The easiest way is probably to set the forms window style
ControlBox = FalseandMinimizeBox = Falseand then call SHDoneButton in the form’s Paint event handler and when it’s activated or shown. You really are only supposed to need to do it before the form becomes the foreground window but I found that you have to also call it in the Paint event handler. SoSHDoneButton(this.handle, SHDB_SHOW)whereSHDB_SHOW = 0x0001you’ll need:somewhere as well.
Per the linked documentation: