Click here to Skip to main content
15,891,375 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Problem in opening link in Win Forms Pin
Luc Pattyn28-Aug-09 4:12
sitebuilderLuc Pattyn28-Aug-09 4:12 
QuestionSort Icon in Grid View(Windows Forms) Pin
Ganapatisb28-Aug-09 3:44
Ganapatisb28-Aug-09 3:44 
AnswerRe: Sort Icon in Grid View(Windows Forms) Pin
Henry Minute29-Aug-09 8:22
Henry Minute29-Aug-09 8:22 
QuestionChanging form controlls at runtime Pin
Gilliann27-Aug-09 15:44
Gilliann27-Aug-09 15:44 
AnswerRe: Changing form controlls at runtime Pin
Mycroft Holmes27-Aug-09 16:10
professionalMycroft Holmes27-Aug-09 16:10 
GeneralRe: Changing form controlls at runtime Pin
Gilliann27-Aug-09 16:41
Gilliann27-Aug-09 16:41 
GeneralRe: Changing form controlls at runtime Pin
Mycroft Holmes27-Aug-09 16:53
professionalMycroft Holmes27-Aug-09 16:53 
AnswerRe: Changing form controlls at runtime Pin
darkelv27-Aug-09 17:08
darkelv27-Aug-09 17:08 
You can make the class specific UI portion into seperate forms or user controls, ie FormA for displaying ClassA object, FormB for displaying ClassB object.

A main form to display your common fields, in the main form a container (panel) shall hold either FormA or FormB, depending on the conditions that you want.

If it's ClassA, create an instance of FormA, and put it into the container (panel), call the necessary object passing and binding on FormA, vice versa for ClassB.

That way you don't need to mess around all the controls on the main form.

To put a form into a panel

formA.TopLevel = false;
formA.Dock = DockStyle.Fill;
formA.FormBorderStyle = FormBorderStyle.None;
panel1.Controls.Add(formA);
formA.Show();

GeneralRe: Changing form controlls at runtime Pin
Luc Pattyn28-Aug-09 0:57
sitebuilderLuc Pattyn28-Aug-09 0:57 
JokeRe: Changing form controlls at runtime Pin
Mycroft Holmes29-Aug-09 18:29
professionalMycroft Holmes29-Aug-09 18:29 
GeneralRe: Changing form controlls at runtime Pin
BillWoodruff1-Sep-09 14:47
professionalBillWoodruff1-Sep-09 14:47 
GeneralRe: Changing form controlls at runtime Pin
darkelv3-Sep-09 19:36
darkelv3-Sep-09 19:36 
GeneralDatagridview formatting [modified] Pin
Mycroft Holmes25-Aug-09 17:59
professionalMycroft Holmes25-Aug-09 17:59 
GeneralRe: Datagridview formatting Pin
Obsidian71329-Aug-09 16:08
Obsidian71329-Aug-09 16:08 
GeneralRe: Datagridview formatting Pin
Mycroft Holmes29-Aug-09 18:26
professionalMycroft Holmes29-Aug-09 18:26 
GeneralRe: Datagridview formatting Pin
darkelv29-Aug-09 18:59
darkelv29-Aug-09 18:59 
GeneralRe: Datagridview formatting Pin
Mycroft Holmes29-Aug-09 21:00
professionalMycroft Holmes29-Aug-09 21:00 
GeneralRe: Datagridview formatting Pin
darkelv29-Aug-09 23:18
darkelv29-Aug-09 23:18 
GeneralRe: Datagridview formatting Pin
Mycroft Holmes29-Aug-09 23:32
professionalMycroft Holmes29-Aug-09 23:32 
QuestionRegions in code Pin
εїзεїзεїз24-Aug-09 22:27
εїзεїзεїз24-Aug-09 22:27 
AnswerRe: Regions in code Pin
Henry Minute25-Aug-09 1:08
Henry Minute25-Aug-09 1:08 
GeneralRe: Regions in code Pin
εїзεїзεїз25-Aug-09 5:49
εїзεїзεїз25-Aug-09 5:49 
GeneralRe: Regions in code Pin
Henry Minute25-Aug-09 5:55
Henry Minute25-Aug-09 5:55 
GeneralRe: Regions in code Pin
εїзεїзεїз25-Aug-09 14:58
εїзεїзεїз25-Aug-09 14:58 
GeneralRe: Regions in code Pin
εїзεїзεїз29-Aug-09 22:12
εїзεїзεїз29-Aug-09 22:12 

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.