Popup Forms in VB.Net 2003

  • Thread starter Thread starter Atley
  • Start date Start date
A

Atley

I am trying to create a popup form (or a dialogue) that is owned by another
form. I want the form to come up in the middle of the screen and to have
borders, I do not want it to take up the whole screen... I also want it to
be application modal.

Is there any way to do these things? I have tried a few things and they
haven't worked the way I wanted them to... I seem to get errors when I use
showdialogue and then close the dialogue form after using it.

Thanks for any help.

Atley
 
You have to set the form's FormBorderStyle property to None and resize the
form to get it to not take up the whole screen. Call the form's
ShowDialog() method to show it modally.
 
How do i get a border on my form then? I want it to look like a windows
application. I can't even find a Line control, nor borders on panels...

Thanks for the response...

Atley
 
Hi Atley,

Forms will automatically be sized fullscreen, unless they have
BorderStyle=None set. You could perhaps draw the borders/title yourself.

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: "Atley" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Popup Forms in VB.Net 2003
| Date: Thu, 15 Jan 2004 20:13:56 -0500
| Lines: 39
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: dial-1-24.cybrnet.net 209.5.206.54
| Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:43259
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| How do i get a border on my form then? I want it to look like a windows
| application. I can't even find a Line control, nor borders on panels...
|
| Thanks for the response...
|
| Atley
|
|
|
| | > You have to set the form's FormBorderStyle property to None and resize
the
| > form to get it to not take up the whole screen. Call the form's
| > ShowDialog() method to show it modally.
| >
| > | > > I am trying to create a popup form (or a dialogue) that is owned by
| > another
| > > form. I want the form to come up in the middle of the screen and to
| have
| > > borders, I do not want it to take up the whole screen... I also want
it
| to
| > > be application modal.
| > >
| > > Is there any way to do these things? I have tried a few things and
they
| > > haven't worked the way I wanted them to... I seem to get errors when I
| use
| > > showdialogue and then close the dialogue form after using it.
| > >
| > > Thanks for any help.
| > >
| > > Atley
| > >
| > >
| >
| >
|
|
|
 
Back
Top