Hi, I am using visual studio2005 to write vb to pocket pc 2003. I would just like to know the easiest way to position a message box to appear in the bottom left hand corner of the screen. At the moment it appears centred in the screen, exactly the postion that i do not want.
sorry if this is trivial, but hey you have to start somewhere.
cheers
nubie

positioning message box
kc ppm
I am actually interested in this one however I do not know how.
Perhaps you can create some custom control which acts like a message box - or even a Form would do and use ShowDialog and return the result back to the caller as feedback of the result from the user :)
with this you can position this form wherever you like on the screen
urbinaben
Either write your own msgbox _or_ get the handle of the msgbox (e.g. with FindWindow) and then move it (e.g. with SetWindowsPos or MoveWindow). Those API calls require you to pinvoke coredll of course. I haven't tried the moving myself but it should work.
To get you started, here is a thread on getting the handle of msgbox in order to close it: http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/2a7b489773bf7c12/8a79f7683a8709dc
Cheers
Daniel
Betatester-Mario
Thanks for the reference this thread looks like the code i need to get me started.
cheers
nubie