Groups | Blog | Home
all groups > dotnet compact framework > may 2006 >

dotnet compact framework : Toolbar in .NET CF 2.0



Swaroop
5/31/2006 11:12:30 PM
In .NET CF 2.0, Can I set location for toolbar? Also can I increase
size of toolbar buttons? I know that there are no built-in properties
provided to do this. I want to know if I can do this by any other
means.

Thanks
- Swaroop
Peter Foot [MVP]
6/1/2006 11:25:25 AM
On Windows Mobile the Toolbar control is fixed at the bottom of the screen
in the shared Menubar/Toolbar. Also the sizes are dictated by the screen
dpi, this is how the Windows Mobile shell behaves.
My guess is that on a generic CE device you can probably have more control
over the Toolbar by getting it's window handle and then either modifying
it's style bits, or sending toolbar specific messages to it, but I have not
tried this. You'd need to consult the SDK for details of these messages
(TB_*). You'll find the SDF (www.opennetcf.org/sdf/) has functionality to
wrap the necessary API calls (see OpenNETCF.Win32.Win32Window class in
particular)

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

[quoted text, click to view]

AddThis Social Bookmark Button