473,395 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Simple (hopefully) form question

I need to create an application that uses primarily a single form rather than
an SDI that creates a new form for everythting. However, I don't want an MDI
style application since the users I'm dealing with would be overwhelmed with
it.

The approach I tried in the past was to use MDI, but made all the child
windows occupy the entire parent area without a frame so it looked like a
single window. I also allowed only a single instance of each form to keep it
simple. This gave me the merged menus and the appearance I wanted, but the
performance of that solution wasn't great, so I don't want to go down that
path again.

I guess I want it to work sort of like frames in HTML, replacing the work
surface with objects that would normally be in a new form in a classic SDI
app.

I assume the solution is simple and common, but I'm a solo developer new to
..NET, so I don't have anyone to bounce this off of.

Thanks in advance for any suggestions.
Jun 11 '06 #1
5 1677
Ever thought of using one big window and putting everything else in panels
within that window?

Should do what your after i think

"Byron" <By***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
I need to create an application that uses primarily a single form rather
than
an SDI that creates a new form for everythting. However, I don't want an
MDI
style application since the users I'm dealing with would be overwhelmed
with
it.

The approach I tried in the past was to use MDI, but made all the child
windows occupy the entire parent area without a frame so it looked like a
single window. I also allowed only a single instance of each form to keep
it
simple. This gave me the merged menus and the appearance I wanted, but
the
performance of that solution wasn't great, so I don't want to go down that
path again.

I guess I want it to work sort of like frames in HTML, replacing the work
surface with objects that would normally be in a new form in a classic SDI
app.

I assume the solution is simple and common, but I'm a solo developer new
to
.NET, so I don't have anyone to bounce this off of.

Thanks in advance for any suggestions.

Jun 11 '06 #2
I considered it, but I was hoping there were more elegant solutions out
there. I like using separate forms because it allows me to isolate code and
I don't end up with huge case statements all over for decisioning when the
users selects a menu option and such.

I may be that panels are the best solution though. I'm primarily a DBA and
..NET development is still new to me.

"Daniel" wrote:
Ever thought of using one big window and putting everything else in panels
within that window?

Should do what your after i think

"Byron" <By***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
I need to create an application that uses primarily a single form rather
than
an SDI that creates a new form for everythting. However, I don't want an
MDI
style application since the users I'm dealing with would be overwhelmed
with
it.

The approach I tried in the past was to use MDI, but made all the child
windows occupy the entire parent area without a frame so it looked like a
single window. I also allowed only a single instance of each form to keep
it
simple. This gave me the merged menus and the appearance I wanted, but
the
performance of that solution wasn't great, so I don't want to go down that
path again.

I guess I want it to work sort of like frames in HTML, replacing the work
surface with objects that would normally be in a new form in a classic SDI
app.

I assume the solution is simple and common, but I'm a solo developer new
to
.NET, so I don't have anyone to bounce this off of.

Thanks in advance for any suggestions.


Jun 11 '06 #3
I thought you were trying to to make separate forms everywhere?

Personally i would do it on separate forms, i only sugested the panel method
as i thought this is what you wanted to avoid.

Bit confused what the problem is.

"Byron" <By***@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
I considered it, but I was hoping there were more elegant solutions out
there. I like using separate forms because it allows me to isolate code
and
I don't end up with huge case statements all over for decisioning when the
users selects a menu option and such.

I may be that panels are the best solution though. I'm primarily a DBA
and
.NET development is still new to me.

"Daniel" wrote:
Ever thought of using one big window and putting everything else in
panels
within that window?

Should do what your after i think

"Byron" <By***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
>I need to create an application that uses primarily a single form rather
>than
> an SDI that creates a new form for everythting. However, I don't want
> an
> MDI
> style application since the users I'm dealing with would be overwhelmed
> with
> it.
>
> The approach I tried in the past was to use MDI, but made all the child
> windows occupy the entire parent area without a frame so it looked like
> a
> single window. I also allowed only a single instance of each form to
> keep
> it
> simple. This gave me the merged menus and the appearance I wanted, but
> the
> performance of that solution wasn't great, so I don't want to go down
> that
> path again.
>
> I guess I want it to work sort of like frames in HTML, replacing the
> work
> surface with objects that would normally be in a new form in a classic
> SDI
> app.
>
> I assume the solution is simple and common, but I'm a solo developer
> new
> to
> .NET, so I don't have anyone to bounce this off of.
>
> Thanks in advance for any suggestions.


Jun 12 '06 #4
I'm trying to provide the users with what appears to be a single form with a
menu and work areas that change based on context. The end users are confused
by having multiple windows open and the application really doesn't require
it. The only thing I want to use additional forms for is to display dialogs;
Other than that all interaction should be contained within the one form.

In the past - using 1.1 - I had used the single MDI form with all its
children contained within it to make it appear it was a single form whose
display surface changed appropriately, whereas it was actually creating
borderless MDI children within the bound of the parent. This gave me easy
access to merging of menus, form events, and such. While I'm sure it wasn't
the correct way to do it the end users were happy and it made my life easier.
Performance wasn't great and every child form was first drawn with its title
bar, then it was erased, causing the form to appear to "bounce" within the
parent. Though I haven't tried it in 2.0 yet I was told by Microsoft that it
was a bug in 1.1 and was not fixed in 2.0.

I would like to do this new project the "right" way, if there can ever be
such a thing.
"Daniel" wrote:
I thought you were trying to to make separate forms everywhere?

Personally i would do it on separate forms, i only sugested the panel method
as i thought this is what you wanted to avoid.

Bit confused what the problem is.

"Byron" <By***@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
I considered it, but I was hoping there were more elegant solutions out
there. I like using separate forms because it allows me to isolate code
and
I don't end up with huge case statements all over for decisioning when the
users selects a menu option and such.

I may be that panels are the best solution though. I'm primarily a DBA
and
.NET development is still new to me.

"Daniel" wrote:
Ever thought of using one big window and putting everything else in
panels
within that window?

Should do what your after i think

"Byron" <By***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
>I need to create an application that uses primarily a single form rather
>than
> an SDI that creates a new form for everythting. However, I don't want
> an
> MDI
> style application since the users I'm dealing with would be overwhelmed
> with
> it.
>
> The approach I tried in the past was to use MDI, but made all the child
> windows occupy the entire parent area without a frame so it looked like
> a
> single window. I also allowed only a single instance of each form to
> keep
> it
> simple. This gave me the merged menus and the appearance I wanted, but
> the
> performance of that solution wasn't great, so I don't want to go down
> that
> path again.
>
> I guess I want it to work sort of like frames in HTML, replacing the
> work
> surface with objects that would normally be in a new form in a classic
> SDI
> app.
>
> I assume the solution is simple and common, but I'm a solo developer
> new
> to
> .NET, so I don't have anyone to bounce this off of.
>
> Thanks in advance for any suggestions.


Jun 12 '06 #5

"Byron" <By***@discussions.microsoft.com> kirjoitti
viestissä:6F**********************************@mic rosoft.com...

<snip>
I guess I want it to work sort of like frames in HTML, replacing the work
surface with objects that would normally be in a new form in a classic SDI
app.


Maybe try to create and use each view as user control that you use then on
form?

<snip>
Jun 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: J. Hall | last post by:
Hi dudes, Got a simple webpage, with three numeric text input boxes, the idea being that the user is asked to insert percentages of their business around the world... UK, Europe, Other ...
4
by: motessa | last post by:
Hello All, I have a quick, easy question. Hopefully, someone will give me a hint. I will greatly appreciate any help. I am pretty new to Access. I have created a Main Menu in Form in Access....
13
by: tindog | last post by:
I am brand new to this programming especially C#. I am confused (at the moment). I have bought two books to get started to learn C# language and Visual C#.net 2003 in 24 hours. Which is the best to...
4
by: ItNerd | last post by:
Someone PLEASE HELP ME!!!!! All I want to do is a simple postback and grab the value from a textbox on clicking a linkbutton like below, but the value is not writing to the screen. I am...
3
by: Brad | last post by:
I have another hopefully simple question. I am so used to writing VB .Net windows apps that there are some things in ASP .Net that just does not easily cross over. I know how to pass variables to...
1
by: graham bates | last post by:
Hi There, In desperation I was wondering whether anyone could cast their eye over a small problem I having. I am attempting to create a user control which basically consists of a DropDown list....
5
markmcgookin
by: markmcgookin | last post by:
Hi Folks, Happy new year to all! I have two questions here, which I hope will be relatively simple you you guys to answer! 1) Is it possible to stick a line or two of code in a form somewhere...
2
by: Jack | last post by:
Hi there, I'm a very experienced C++ developer but a relative newcomer to web development and a raw neophyte in the ASP.NET arena. I have a very simple scenario that hopefully someone can help...
1
by: Andrew | last post by:
I'm learning PHP so this might be a simple question to more expeienced developers hopefully. I have a findrecords.php page which has the following code which creates a new record in a database...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.