Floating Form

G

Guest

How do I make a floating form in NETcf? Like a MessageBox but with TextBoxes
etc.

I did some searches, but I'm not sure what to look for.

I got this entry from a NETcf FAQ:

- How do I make a floating form? It looks like forms are always full screen.
--- Top-level Forms with a border are always full screen and cannot be moved
or resized. Borderless or child forms can be moved and resized. Use the
following.
----- Form.BorderStyle = BorderStyle.None;

I'm using VS2005. There's no BorderStyle, bu there is a FormBorderStyle
which I set to None, but this didn't work.

Thanks for any help,
Steve
 
B

Brooke

Will probably have to use an API call. Look into SetWindowPos, this is what
I use when programming with native C/C++ and it works great.

Example: SetWindowPos (hwnd, NULL, 10, 50, 240 - 10 - 10, 320 - 25 - 25 -
80 - 26, SWP_NOZORDER);
 
G

Guest

Hi Brooke, thanks for the reply.

So, does this mean that the FAQ was incorrect -- that it can't be done in
NETcf?

Steve
 
B

Brooke

You can create a form that doesn't fill the entire screen and locate it
where you want, but you will not be able to move it around the screen like a
floating form on the desktop without adding some code to do so.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top