473,609 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1695
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***@discussi ons.microsoft.c om> wrote in message
news:6F******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:6F******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:E1******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:6F******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:E1******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:6F******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> kirjoitti
viestissä:6F*** *************** *************** *@microsoft.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
1760
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 Obviously this mustn't exceed 100% and so I OnChange I simply want to check that all three boxes have a value, and if so sum them up and alert the user
4
1535
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. When I click on Main Menu, an interface popups. In the interface, I have 2 buttons. For example:
13
1509
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 learn the straight language or the VS techniques??? I am using VS2005 team suite, but have come to a halt as confused think I am jumping ahead too quickly. I have done a lovely form for my PDA but is useless as does not do anything, would like...
4
1492
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 frustrated with this seemingly simple task. I have enabledviewstate=true on the @Page directive, and I tried using onclick on the linkbutton, nothing. I know the event is firing because I can set the value to a hardcoded string and get it to show. In...
3
1393
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 another form, but how would I do this from one page to another? I am not finding a simple solution. Thanks for the help
1
1117
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. Now, I wish to both retrieve values from this drop down list, and also to change the values that form the drop down list collection. I havent even managed the first of these tasks yet, even though I follow the get/set logic of what I need to do,...
5
1580
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 so that it is always maximised? I have created a form on a machine, but then when I run it in other machines with different resolutions the size goes iffy. I found this Global FormHeight
2
1230
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 me with. I have a 3rd-party HTML form with a single (submit) button and a number of (static) hidden fields (all values hardcoded). The form is pure HTML (no ASP or ASP.NET whatsoever) and it simply posts its data to a 3rd-party site when the button...
1
1475
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 table if this is the first time the user performs a search: // Web Session tracking if (isset ($_SESSION)) { // nothing - we don't want to add a new record if this is set
0
8047
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8552
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8376
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5503
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4006
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1636
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.