MessageBox/Windows.Form compromise

  • Thread starter Thread starter Dan Diephouse
  • Start date Start date
D

Dan Diephouse

Is there anything in between a MessageBox and a Windows Form for the
CF.NET. I would like to have a pop-up box which a user can enter a
number, but I don't want it to take over teh whole screen. Is there any
way to do that?

Dan Diephouse
http://envoisolutions.com/people/dan
 
I thought we could set the size of a form in CF. Havent specifically tried
that yet though. will try it right away. But just thought that should
work.then again this is the CF so all bets go off.

-bh
 
sorry. just found out. setting the size does nothing noticeable. the form
still takes up the entire screen.
There is a whole lot more to the CF than meets the eye i guess.
 
bhavin said:
sorry. just found out. setting the size does nothing noticeable. the form
still takes up the entire screen.
There is a whole lot more to the CF than meets the eye i guess.

Try setting the FormBorderStyle to None and then resizing it. I *think*
you can do it that way, but I can't check it right now.
 
Sort of. The Microsoft.VisualBasic assembly provides InputBox. You can
reference it from C# projects as well. I don't rememember though, if it
takes over the whole screen. There are techiniques to force a form keeping
smaller size - you need to keep calling MoveWindow in Focus, Activate and
Resize events
 
Setting FormBorderStyle to None does indeed work as far as resizing the form
is concerned. The form looks "naked" though without the border. but i think
that can be taken care of by some other means (panel with border, close
button, etc.)
 
No, it doesn't take over the whole screen. It doesn't work very well on
CE.NET devices, though (non-PPC).

Paul T.
 
Dan,

setting the FormBorderStyle to FixedToolWindow and Form.ShowDialog() should
do the job.

Ruediger
 
Back
Top