WinCE.NET MsgBox and Custom

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Im using VGA mode on my handheld device (480*640) and have found that the
build in MsgBox called from VB.NET is too small. The text and buttons are
appear too small.

Is it possible to enlargen it? I just want to enlargen the text and button
sizes.

Any Ideas?

Thanks in advance.
 
Probably the easiest way would be to build your own replacement dialog
formatted as required. I did this for a project and wrote a form to be
displayed with ShowDialog, then wrote a wrapper class with a static Show
method with the same signature as MessageBox.Show so it was easy to switch
code from using the standard message box to this custom one. The form was
declared privately so only the wrapper class could create/manipulate it's
properties.

Peter
 
Peter,

Thanks for the swift reply.

Im a little unsure as to how to implement your advice.

When you show a form using the ShowDialog the only way to take the focus
back to the initial form would be to "close" (Destroy) the custom Form due to
it being shown using ShowDialog.

This would then mean that the custom wrapper class would constantly create
and destroy a form and its child controls. Is this good for the Garbage
collector especially for the .NET CF where everything is always resouce
constrained?

Thanks,
Zahid.
 
Back
Top