Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: Yankees Pin
Rocky Moore7-Jul-03 12:00
Rocky Moore7-Jul-03 12:00 
GeneralRe: Yankees Pin
James T. Johnson8-Jul-03 4:10
James T. Johnson8-Jul-03 4:10 
GeneralMIME decoder Pin
jay_n7-Jul-03 11:26
jay_n7-Jul-03 11:26 
GeneralRe: MIME decoder Pin
Rocky Moore7-Jul-03 12:07
Rocky Moore7-Jul-03 12:07 
GeneralC# to SQL Server Type Translation Lookup Pin
perlmunger7-Jul-03 11:13
perlmunger7-Jul-03 11:13 
GeneralRe: C# to SQL Server Type Translation Lookup Pin
Mark Smithson8-Jul-03 10:48
Mark Smithson8-Jul-03 10:48 
GeneralRe: C# to SQL Server Type Translation Lookup Pin
perlmunger8-Jul-03 11:59
perlmunger8-Jul-03 11:59 
GeneralReusing Forms Pin
D Betting7-Jul-03 10:27
sussD Betting7-Jul-03 10:27 
I'm fairly new to the C# environment but coming from Delphi, most of what we've been doing has been very familiar. Primarily, the difference has been syntax and a few new features we didn't have. An important technique we used a lot was the reusing of forms. This was done by creating a form, such as an address form, and reuse it in several areas. The exact same form would be used in the maintenance of people, shipping, billing, etc. while and underlying class property dictated the rules of the form.

Why do this? The flexibility and look of MDI was not nearly what we desired or needed. Instead, we created a form with panels in it. We then positioned the panels where we wanted them. We could then take a completed form (whose parent is SELF by default) and set the parent property to the panel. The second line of code set the form's alignment to client. This essentially pasted the form into the panel. This gave us the ability to have a developer build the central application while other tasks were divided by specialty. Now, if I were putting together something that needed the module that needed an address, I'd put a panel in the main application and just paste the address form into the panel at run time. I'd them use the class methods and procedures to move information appropriately.

What I'd like to do is perform this same type of task in C#. I've tried a few things but I'm not getting past the fact that a form is a "top level control". The impression I get is C# treats controls in a heirarchal form and a panel is lower than a form. Once the form is identified as such, I'm not allowed to put the form into a "lower" type control.

Are there any suggestions for doing something similar to this? This is quite a powerful technique that can be utilized even better in C# than in Delphi because of the ability to build multiple interfaces (shipping address maintenance, billing address maintenance, personal address maintenance, etc) and utilize them as the task requires.

GeneralRe: Reusing Forms Pin
Andy Smith7-Jul-03 10:42
Andy Smith7-Jul-03 10:42 
Generaldelegate context Pin
albean7-Jul-03 10:15
albean7-Jul-03 10:15 
GeneralRe: delegate context Pin
Mark Smithson8-Jul-03 10:56
Mark Smithson8-Jul-03 10:56 
QuestionSourceSafe event sink in c#? Pin
ODS7-Jul-03 9:25
ODS7-Jul-03 9:25 
GeneralCompile C# run under Windows 98 Pin
Hoang Dung7-Jul-03 9:04
Hoang Dung7-Jul-03 9:04 
GeneralRe: Compile C# run under Windows 98 Pin
jspano7-Jul-03 9:28
jspano7-Jul-03 9:28 
GeneralRe: Compile C# run under Windows 98 Pin
Hoang Dung9-Jul-03 7:26
Hoang Dung9-Jul-03 7:26 
GeneralRe: Compile C# run under Windows 98 Pin
jspano9-Jul-03 8:30
jspano9-Jul-03 8:30 
GeneralRe: Compile C# run under Windows 98 Pin
Hoang Dung11-Jul-03 7:19
Hoang Dung11-Jul-03 7:19 
QuestionHow to know numeric of instance... Pin
Hoang Dung7-Jul-03 8:59
Hoang Dung7-Jul-03 8:59 
AnswerRe: How to know numeric of instance... Pin
jspano7-Jul-03 9:30
jspano7-Jul-03 9:30 
GeneralRe: How to know numeric of instance... Pin
Hoang Dung11-Jul-03 7:21
Hoang Dung11-Jul-03 7:21 
QuestionCapture the HTTP request header? Pin
Bog7-Jul-03 7:49
Bog7-Jul-03 7:49 
QuestionAm I being dense? Pin
SpudgunDoogal7-Jul-03 6:01
SpudgunDoogal7-Jul-03 6:01 
AnswerRe: Am I being dense? Pin
Daniel Turini7-Jul-03 15:10
Daniel Turini7-Jul-03 15:10 
GeneralRe: Am I being dense? Pin
SpudgunDoogal7-Jul-03 22:47
SpudgunDoogal7-Jul-03 22:47 
GeneralRe: Am I being dense? Pin
SpudgunDoogal8-Jul-03 1:14
SpudgunDoogal8-Jul-03 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.