473,387 Members | 1,453 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,387 software developers and data experts.

Delphi-like 'docked forms' in C#/.NET

My employer has developed an application in Delphi with a
very complex user-interface that we may be transitioning to
C# at some point. Our interface uses large numbers of tabbed
sub-forms, with the contents of each tab being treated as a
separate form using what Delphi calls 'Docked Forms'. The
benefit from a developer's perspective here is that the code is
treated as separate organizational units, with each tab being
its own child form. This makes having over 200 forms as tabs
of a parent form managable from a design perspective. Our
team leader would like us to continue this style of code
organization in C# development if at all possible, so that
changes to one tab's GUI don't introduce potential bugs or file
alterations to other tabs.

I've got a moderate amount of C# experience with web-based
things but am still somewhat new to windows forms with .NET.
I was hoping people here could explain to me how you do
something like Delphi's docked forms in C#, to achieve code
modularity within a single parent form by dividing up tabbed
sub-forms into distinct classes. It might be as simple as
me not knowing what the term is for the C# equivalent to
these docked forms. Any pointers to examples, articles or
how-to's on the web would be very helpful. I've looked a fair bit
but am probably not using the right terminology.

I'm specifically not looking for MDI-style "multiple sizable
document windows in a main window", which seems to be
what comes up on most searches, but instead the ability to
nest distinct forms inside tabs on a parent form, or whatever
is considered best practices in terms of code organization
in C# to replace this strategy in Delphi.

Thanks in advance for any help you can offer!

-- Julian Mensch
Aug 19 '08 #1
1 1868
I make the main form an MdiContainer and then set childForm.MdiParent to the
main form instance. I then drop a dev express Mdi tab manager component (or
something like that) onto the main form and they become tabs instead.
Having come from Delphi myself I might have experienced many of the things
you have in your near future, so feel free to email me :-)
Pete

Aug 19 '08 #2

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

Similar topics

8
by: achrist | last post by:
I'm aving some trouble getting callbacks from a Delphi DLL back to python working through ctypes. The call from python to the DLL works fine. In the Delphi(5) code: type TCallbackFunc =...
10
by: Arda Han | last post by:
I am migrating my some applications from Delphi to C#. But... Yes But I don't know C# professionally. I am using DLL in delphi like this : ..... const RFID_103_485IO = 'Cihaz.dll'; ...
9
by: Gclinton | last post by:
I'm looking for a comparsion of C# to Delphi .net. My company is about to begin the process of reengineering a Delphi tightly coupled win32 app and a Older Java webclient that uses JSP over to an...
7
by: Sanjay Kedare | last post by:
Hi, I am evaluating various alternatives of converting Delphi (Ver 4.0) screens to C# screens. Are there any tools available for such conversion? if yes how much conversion do they achieve? The...
4
by: Islamegy | last post by:
I'm convert a Delphi program to C#.. While i have no knowledge with delphi i must implement everything but for some reason everything working faster on the old program than mine!! i'm working with...
7
by: Bart Roozendaal | last post by:
I am using a C# assembly in Delphi.Win32 using the com interop services. This works fine, but I am looking for a way to debug the C# assembly. When using a Delphi program as a host for the...
5
by: Dinesh Kumar | last post by:
Hi all I am using VB.NET for a Connector dll in Delphi client and some webservice . can you tell me how to handle pointers in Vb.net which are passed by delphi client as parameters in function...
4
by: =?Utf-8?B?ZGF2ZWJ5dGhlc2Vh?= | last post by:
Dear List, We have a large application written in Delphi. I am writing a mobile app written in .NET (C#) which reads and writes into the Delphi applications Oracle database via a .NET Web...
7
by: Ryanivanka | last post by:
hi, I am using a delphi DLL in vc++,static linked with ".h"and "lib". the export functions in DLL are "__stdcall",but the function doesn't work well,it often returns some weird values. when I add...
5
by: kelvin.koogan | last post by:
How can I call a function in a Delphi DLL from C++/CLI? The Delphi function is declared as follows: function Func1(IsDsb: Boolean; FirstStr, SecondStr : String): String; I've tried ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
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,...

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.