|
|
|
start date: Wed, 08 Aug 2007 10:52:07 -0000,
posted on: microsoft.public.dotnet.framework.compactframework
back
| Thread Index |
|
1
clkurtz
|
|
2
Adam
|
|
3
Peter Foot [MVP]
|
|
4
clkurtz
|
|
5
Fabien
|
Customized messagebox in CF2 (Windows Mobile)
Is it possible to create a custom messagebox, for example with a
checkbox?
I absolutely need to do this but i have no idea...
Any suggestion will be very appreciated :-D
Date:Wed, 08 Aug 2007 10:52:07 -0000
Author:
|
Re: Customized messagebox in CF2 (Windows Mobile)
clkurtz pisze:
> Is it possible to create a custom messagebox, for example with a
> checkbox?
> I absolutely need to do this but i have no idea...
>
> Any suggestion will be very appreciated :-D
Form and ShowDialog?
SOmething like this:
using (Exit frmExit = new Exit())
{
frmExit.Left = (Screen.PrimaryScreen.WorkingArea.Width -
frmExit.Width) / 2;
frmExit.Top = (Screen.PrimaryScreen.WorkingArea.Height -
frmExit.Height) / 2;
if (frmExit.ShowDialog() == DialogResult.OK &&
frmExit.textBox1.Text == "0987654321")
{
frmExit.Dispose();
this.Close();
}
}
frmExit is new form with textbox field.
Replace frmExit.textBox1.text with checkbox, checkbox must have
Modifiers:Public.
Date:Wed, 08 Aug 2007 13:09:02 +0200
Author:
|
Re: Customized messagebox in CF2 (Windows Mobile)
If you set your FormBorderStyle property to None and set the Location and
Size properties you can position the form anywhere on the screen to float
above other forms. It won't have a toolbox/titlebar of it's own like the
MessageBox, but you can draw on the form however you want.
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"clkurtz" wrote in message
news:1186570327.117194.179970@o61g2000hsh.googlegroups.com...
> Is it possible to create a custom messagebox, for example with a
> checkbox?
> I absolutely need to do this but i have no idea...
>
> Any suggestion will be very appreciated :-D
>
Date:Wed, 8 Aug 2007 12:11:05 +0100
Author:
|
Re: Customized messagebox in CF2 (Windows Mobile)
I cannot believe.... I had already done exactly what Peter says, but
having some problems at design time in visual studio, I didn't run it,
thinking that there was something wrong.
Thank you very much Peter and Adam :-DDDD
On 8 Ago, 13:11, "Peter Foot [MVP]"
wrote:
> If you set your FormBorderStyle property to None and set the Location and
> Size properties you can position the form anywhere on the screen to float
> above other forms. It won't have a toolbox/titlebar of it's own like the
> MessageBox, but you can draw on the form however you want.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "clkurtz" wrote in message
>
> news:1186570327.117194.179970@o61g2000hsh.googlegroups.com...
>
> > Is it possible to create a custom messagebox, for example with a
> > checkbox?
> > I absolutely need to do this but i have no idea...
>
> > Any suggestion will be very appreciated :-D
Date:Wed, 08 Aug 2007 12:20:25 -0000
Author:
|
Re: Customized messagebox in CF2 (Windows Mobile)
Hi,
Check out this on my blog : http://fabdecret.blogspot.com/2007/05/non-full-screen-window.html
As Peter said, you must set FormBorderStyle to None, ControlBox to
False, MinimizeBox to false, and WindowsState to Normal.
Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
On 8 août, 14:20, clkurtz wrote:
> I cannot believe.... I had already done exactly what Peter says, but
> having some problems at design time in visual studio, I didn't run it,
> thinking that there was something wrong.
>
> Thank you very much Peter and Adam :-DDDD
>
> On 8 Ago, 13:11, "Peter Foot [MVP]"
> wrote:
>
>
>
> > If you set your FormBorderStyle property to None and set the Location and
> > Size properties you can position the form anywhere on the screen to float
> > above other forms. It won't have a toolbox/titlebar of it's own like the
> > MessageBox, but you can draw on the form however you want.
>
> > Peter
>
> > --
> > Peter Foot
> > Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> > In The Hand Ltd - .NET Solutions for Mobility
>
> > "clkurtz" wrote in message
>
> >news:1186570327.117194.179970@o61g2000hsh.googlegroups.com...
>
> > > Is it possible to create a custom messagebox, for example with a
> > > checkbox?
> > > I absolutely need to do this but i have no idea...
>
> > > Any suggestion will be very appreciated :-D- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
Date:Wed, 08 Aug 2007 06:33:03 -0700
Author:
|
|
|