Fixed Dialog without a title bar

  • Thread starter Thread starter Ryan Taylor
  • Start date Start date
R

Ryan Taylor

Hello.

I have been trying to create a fixed dialog without a title bar. Is this
possible?
Thanks.
Ryan
 
Set
ControlBox = false
Text = "";

In C# (form's load method):

this.ControlBox = false;
this.Text = "";
 
Thanks, that worked for one of my dialog boxes. However, another one is an
MDI child that I always want maximized and I do not want it's title bar
showing when maximized, but it always does. Is there a way around this?
 
Sorry, dont know how to do it in .Net. Try playing with FormBorderStyle
property.
 
Ryan Taylor said:
Thanks, that worked for one of my dialog boxes. However, another one is an
MDI child that I always want maximized and I do not want it's title bar
showing when maximized, but it always does. Is there a way around this?

MDI environments are typically used to show a set of documents, each with
sizable border and title bar.
 
Yeah, I am starting to think that an MDI form is not the way that I want to
go. The end result is that I want a form that displays various windows to
the user depending on a button click. The closet example to what I want to
do would be the Tools->Options dialog in Firefox, or the Tools->Options in
VS.NET 2003 (but with buttons with images instead of a treeview). What is
the best way to accomplish this in a multi-developer environment? The one
advantage of the MDI architecture, is that each Form is independent of the
others so we can have multiple developers working on different areas of the
application without stepping on each others feet as would happen with a
tabcontrol implementation.

My current thinking is to have two panels on my form. One is docked top and
contains the buttons. The second panel is docked fill. When a button is
clicked it loads an appropriate usercontrol into the second panel. In think
this could work, but is this the best method for achieving what I want? I
could have multiple panels with the usercontrols already on them and show
and hide the panels appropriately.

Thanks again.
 
Back
Top