P
P
paul__schulz2014-06-17 18:19:08
Design
paul__schulz, 2014-06-17 18:19:08

How to design a design with duplication of interface elements in C#, WinForms?

How to design a form in C# that has a set of tabs and a repeating interface for each tab that is created?
Preferably using WinForms, but also possible for WPF.
The simplest example is the browser interface. Each tab has its own address bar, display area and "forward" and "back" buttons.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aush, 2014-06-17
@aush

A tab tab is just a button. The tab itself is a panel in which different controls are placed. Tab control - tab buttons + panel.
What, in general, is the question? You take a form, put "address bar", "forward", "back" on it, add buttons for switching tabs and a panel on which you will display these tabs. What exactly is your problem with "projecting" this design?

G
gleb_kudr, 2014-06-17
@gleb_kudr

First, learn how to create form elements programmatically and the question will disappear by itself. There are many tutorials on how to do this.
In WPF, this functionality is implemented by templates, but IMHO it is quite difficult to understand right off the bat, practice generating from code first.

E
Eugene, 2014-06-18
@r4tz52

Create your own control by inheriting it from TabPage, fill it with the necessary elements and then programmatically add it to your TabControl via tabControl1.TabPages.Add(...).
Or like this: www.dreamincode.net/forums/topic/226359-dynamicall...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question