473,761 Members | 6,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need some advice- GUI design

I want to have a boxed off area on my GUI which will behave essentially like
a very simple ListBox, with items stacking vertically in a list with a scroll
bar if the stacked items go beyond the bottom border.

The trick ypart is these items should be pretty large rounded -corner
rectangular panels which will contain a mix of Labels and a few simple form
elements such as TextFields, drop downs, etc.. These rounded rectangle panels
will be generated dynamically on run-time and use will be able to add/remove
entire items and be able to interact with the form elements within each item.

How could I best accomplish this?

I guess I will have to do some custom drawing on the outside Panel which
will create these rounded rectangle panels on demand and then start creating
and positioning the labels and form elements withing them before finally
displaying the result.

The problem is I never have done custom drawing in .NET- so I ened to ask do
you think this is pretty easy to accomplish? Do you have any suggestions on
anything specific I could do? Or maybe links to some great drawing tutorials
which might help?

thanks so much!
Aug 25 '06 #1
1 1331

"MrNobody" <Mr******@discu ssions.microsof t.comwrote in message
news:39******** *************** ***********@mic rosoft.com...
>I want to have a boxed off area on my GUI which will behave essentially
like
a very simple ListBox, with items stacking vertically in a list with a
scroll
bar if the stacked items go beyond the bottom border.

The trick ypart is these items should be pretty large rounded -corner
rectangular panels which will contain a mix of Labels and a few simple
form
elements such as TextFields, drop downs, etc.. These rounded rectangle
panels
will be generated dynamically on run-time and use will be able to
add/remove
entire items and be able to interact with the form elements within each
item.

How could I best accomplish this?

I guess I will have to do some custom drawing on the outside Panel which
will create these rounded rectangle panels on demand and then start
creating
and positioning the labels and form elements withing them before finally
displaying the result.

The problem is I never have done custom drawing in .NET- so I ened to ask
do
you think this is pretty easy to accomplish? Do you have any suggestions
on
anything specific I could do? Or maybe links to some great drawing
tutorials
which might help?

thanks so much!
Hi,

Personally I would create the panels you speak of as user controls. A user
control is very similar to a form to create, in that it can have all the
controls you mentioned as children, and you create the event handlers etc.
in the same manner.

You could even go so far as to create a bitmap image, of a nicely rounded 3D
rectangular background for example, and use that as the background for the
control.

The user control can be instantiated "on the fly" as normal, and nicely
encapsulates that part of your app.

If you then use a scrollable control, place a panel in it and resize the
panel to fit the new user controls as they are added, then you have your
solution.

You will need to read a little about user controls, but I'm sure you'll have
a working test app quite quickly.

HTH

MFK.
Aug 25 '06 #2

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

Similar topics

5
1751
by: Andy | last post by:
Hello All, I'm currently getting into ASP and need some advice on any particular books or tutorials or websites that you can recommend so that I can get a good foundation on ASP as well as intermediate and advanced knowledge on the subject too. I would appreciate if you can point me to some books or websites or tutorials regarding this.
39
2903
by: Scotter | last post by:
Okay I think my title line was worded misleadingly. So here goes again. I've got quite 20 identical MDB files running on an IIS5 server. From time to time I need to go into various tables and add a field or two. It would be great if there were an application out there that could either: (a) sync all MDB designs (and/or data) designated to match one I've added some fields/tables to OR (b) go into all designated MDBs and create new...
11
2108
by: Mark | last post by:
Hi, For the last 2 years I've been developing vehicle tracking/telemetric software for a company as a self employed individual. The project is quiet big, and is going to be there flagship product. Since I had no other work at the time, I agreed to a low rate when I first started which was £100 a day. The project started small, so it was only going to be for a few months, and I badly needed the money. The project soon balooned into...
1
1559
by: Chris Lane | last post by:
Need Advice on prebuilt Exception Assemblies Please take a look at my post on the Titled: Need Advice on prebuilt Exception Assemblies posted on 04/21/04 Thank
3
3175
by: Sigmathaar | last post by:
Hi, I'm need some advice about lists and vectors. I'm doing a program who needs to have sequential access of a non ordered unit of objects whose size decreases almost each time the sequence is finished (at the begining I have about 2500 objects in the unit, after the first acces I have 2499, then 2435, then 1720 and so on). The problem is that sometimes after a whole sequence the number of objects in the unit remains unchanged. After...
4
2850
by: Web_PDE_Eric | last post by:
I don't know where to go, or what to buy, so plz re-direct me if I'm in the wrong place. I want to do high performance integration of partial differential eqns in n dimensions (n=0,1,2,3..etc) I want to do (fast) graphic output of the results. I used to use C. I want to upgrade my computer. Do I get dual core? Does C# support dual-core? Is C# as fast as the old C? Is there a new C? (or is C# the new version of C?) Is Visual Studio...
9
1541
by: laststubborn | last post by:
Dear All, We have a big concern in our Database system. We have 2000 transactions daily in our database. We need to replicate some how the database for our fail over setup. I tried transactional replication at midnight but our all systems locked and we had a lot of complaints from the customers and It was taking a lot of time to snapshot part and I had to abort it because of these reasons. I need an advice how I can create a replication...
7
2060
by: John Paul | last post by:
I'm thinking of building an e-commerce site in php. Anyone got any advice in building one? What is the best way to implement a payment system? Are any legal issues involved? Thanks,
51
2602
by: cool_ratikagupta | last post by:
hello friends i ha just started learning c can u all give me the tips to make myself strong in c lanuage . as i want to be the best in watever i do . so just a request from all of u here plz help me out in improving my c .plz guide me as a techer . to do my best in c lanuage . i m clear with the concepts i just want to improve in c . as programming is best when u use less memory space n less ilterations.
7
2163
by: SM | last post by:
Hello, I have a index.php template (2 columns). The right columns contains a bunch of links (interviews, poems, etc...) The left columns contains the actual article. So if I click on a link on the right menu, the article shows on the left column. The links have an url that look like this: http://www.myweb/library/?doc=194uf7s39
0
9353
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
10123
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
9975
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9909
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9788
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
5241
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...
1
3889
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3481
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2765
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.