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

Re: Floating Form by Brooke

Brooke
Tue Jul 18 13:55:05 CDT 2006

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);

"mobilemobile" <mobilemobile@discussions.microsoft.com> wrote in message
news:5BDAEA6E-AA61-4F8E-A09C-852E4A98DDD1@microsoft.com...
> 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
>
>
>



Re: Floating Form by mobilemobile

mobilemobile
Tue Jul 18 14:17:01 CDT 2006

Hi Brooke, thanks for the reply.

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

Steve

"Brooke" wrote:

> 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);
>
> "mobilemobile" <mobilemobile@discussions.microsoft.com> wrote in message
> news:5BDAEA6E-AA61-4F8E-A09C-852E4A98DDD1@microsoft.com...
> > 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
> >
> >
> >
>
>
>

Re: Floating Form by Brooke

Brooke
Tue Jul 18 16:08:25 CDT 2006

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.


"mobilemobile" <mobilemobile@discussions.microsoft.com> wrote in message
news:1B4BBE1C-882F-41E8-B6FE-60E5E9636872@microsoft.com...
> Hi Brooke, thanks for the reply.
>
> So, does this mean that the FAQ was incorrect -- that it can't be done in
> NETcf?
>
> Steve
>
> "Brooke" wrote:
>
>> 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);
>>
>> "mobilemobile" <mobilemobile@discussions.microsoft.com> wrote in message
>> news:5BDAEA6E-AA61-4F8E-A09C-852E4A98DDD1@microsoft.com...
>> > 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
>> >
>> >
>> >
>>
>>
>>
>



Re: Floating Form by ctacke/>

ctacke/>
Wed Jul 19 00:23:42 CDT 2006

This may be useful:

http://blog.opennetcf.org/ctacke/CommentView,guid,70957218-553d-454e-a0fe-b1bb5f3cac58.aspx


--
Chris Tacke
OpenNETCF Consulting
www.opennetcf.com
--




"mobilemobile" <mobilemobile@discussions.microsoft.com> wrote in message
news:5BDAEA6E-AA61-4F8E-A09C-852E4A98DDD1@microsoft.com...
> 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
>
>
>