Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys, i am very new to c# programming and recently i trying to develop a interface as image below. the problem is i have no idea how to create the object like that..so i hope there is some one can help me up..thank you !! i have circle the part that i don't understand..

sorry i have to using link to view the image.
http://s15.postimg.org/83p0ndh2j/2013_05_21_14_36_32.jpg[^]
Posted
Updated 13-Jan-14 17:09pm
v3
Comments
Ron Beyer 13-Jan-14 23:42pm    
Are you trying to develop a windows application or a web application?
cheah tze chiat 14-Jan-14 1:12am    
a windows application
BillWoodruff 14-Jan-14 1:06am    
I'm curious why, if you are just starting out in C#, you want to recreate this complicated interface. Is this a system you use, or have used, and so you understand how all the Controls in the UI "work" ?

Also, need more information: for example, the vertical area you outlined in red which separates the left and right user-interfaces; is that just a visual boundary, or is that splitter control that you can click-drag to adjust the relative sizes of the left and right side panels ?
cheah tze chiat 14-Jan-14 1:16am    
i understand the control for the interface just ya i have to recreate the UI again which i just started learning c# about one week ago. ya. that is the problem i face, i can't recognize that is a visual boundary or splitter control. sorry for my less knowledge...
BillWoodruff 14-Jan-14 1:36am    
For each control in that ui, and each sub-control in each control, do you know if the user can interact with it in some way, like clicking ? In other words: do you know which parts of the UI function only as displays, and which parts function as controls ?

Have you had experience using any/all of the following Windows Forms Controls:

TabControl, Panel, SplitContainer, Button, Label, TextBox, StatusBar, PictureBox ?

Have you ever created a UserControl ?

Duplicating a complex interface without a specification of ... at least ... what its elements do, and how the user can interact with them at run-time is, in my humble opinion, probably not the best way to learn how to create complex interfaces.

Better, I think, is to pose certain problems in ui design, and application function, features, and style, to yourself, and then try and create them, experimenting with the different controls that .NET offers in Windows Forms, or WPF.

I do think there are certain design principles you can articulate looking at the screen-shot you linked to:

1. which Controls to use for certain UI elements may be very obvious ... and the more experience you have with the range of Controls provided by your "stack" (Win Forms, or WPF), and the typical "vocabulary" of Windows Applications UI, the greater your skill in identifying those Controls will be.

a. example: one quick look at your ui-graphic suggests a StatusBar at the bottom of the UI.

1. study and analyze the interface to distinguish elements that can be duplicated. The goal is to create one component which you can then re-use.

a. example: the major areas of your ui-graphic with large labels "Left Lane," "Right Lane," suggest creating one UserControl. The only difference appears to me to be the position of the "box" with a green area in the top, and body in black.

If you wish to create a UI like the one in the graphic without using (in Windows Forms) a lot of Panels, and Panels inside Panels, I sugguest you experiment with the TableLayoutPanel in Win Forms.

You can "solve" the issue of having many elements enclosed in their own borders using strategic creation and sizing of Rows and Columns of this Control.

By setting the 'ColumnSpan, and/or 'RowSpan properties of the Controls you embed in the Cells of the TableLayoutPanel, you can make individual Controls occupy any amount of vertical or horizontal space in the TableLayoutPanel.

So, for example, if I defined a TableLayoutPanel with two Columns, and several Rows, and I wanted a StatusBar to occupy the full width of the TableLayoutPanel in its bottom Row:

1. add the StatusBar to the first Cell in the bottom Row.

2. set the ColumnSpan Property of the StatusBar to #2 in the PropertyBrowser for the StatusBar.

nasib baik !
 
Share this answer
 
The Login, Main, Maintenance and Configuration are one one Tab in a TabControl.

If Web Application...


For TabControl, you can try...

If Windows Application...


Refer
1. C# TabControl[^]
2. A .NET Flat TabControl (CustomDraw)[^]
 
Share this answer
 
v2
Comments
cheah tze chiat 14-Jan-14 1:25am    
hi, thank for reply... i know about the tabcontrol only the part i circle up i have no idea how to do it...
I can see only Rectangles, where is the circle?

Anyway, you can achieve all these using CSS Styles. What is the Exact issue?
cheah tze chiat 14-Jan-14 1:58am    
sorry for the mistake is a rectangles,i did create the UI. i had try the tool list one by one but i cant show the output same as the image..maybe i lack of knowledge for the tool properties, for example the table i mark up in image it is create by gridviewdata or something else ? and the middle line to separate left and right is using group list or splitcontainer?
Is it a Web App or Windows App?
cheah tze chiat 14-Jan-14 2:16am    
is a window app

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900