Non-Full Screen Dialog Box

G

Guest

Hi

I am developing a form which I want it to work as a modal dialog box (using ShowDialog)
But when I say ShowDialog it show me a full screen Dialog. I want the dialog to be of a small size or the size
of which I have designed. In EVC I used m_bFullScreen. But how should I make the same in Compact Framework

Thanks in advance
Amit.
 
A

Arsa

I guess by setting FormBorderStyle to none.Other possibility is using Panel
and use Show/Hide

Arsa

Amit Patankar said:
Hi,

I am developing a form which I want it to work as a modal dialog box (using ShowDialog) .
But when I say ShowDialog it show me a full screen Dialog. I want the
dialog to be of a small size or the size
of which I have designed. In EVC I used m_bFullScreen. But how should I
make the same in Compact Framework.
 
E

Elisa

Hi,

I don't think there is a clean way to achieve non-full screen modal
forms. I got around it by creating a custom full-screen modal form,
where I overwrote the OnPaint() and OnPaintBackground() methods with
completely empty methods (that don't even call their base method). Then,
add a panel (or custom control) to the form, and make that look like a
form (i.e. give it a border, a title bar, ...).


Regards,

Elisa
 
M

Mark Erikson

Elisa said:
Hi,

I don't think there is a clean way to achieve non-full screen modal
forms. I got around it by creating a custom full-screen modal form,
where I overwrote the OnPaint() and OnPaintBackground() methods with
completely empty methods (that don't even call their base method). Then,
add a panel (or custom control) to the form, and make that look like a
form (i.e. give it a border, a title bar, ...).


Regards,

Elisa

I came up with a reasonable solution to this sort of issue a while
back. Might not fit your needs 100%, but even if it doesn't, you
might be able to adapt it. See the following newsgroup post:

http://groups.google.com/[email protected]

Hope this helps!

Mark Erikson
 
G

Guest

Hi all...Thanks very much I managed to do it very well by setting the border style none and using panel. But in the above reply Dan, can you please tell me what exactly is opennetcf and how can I make use of that

Thanks for the help
Amit
 

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