Click here to Skip to main content
16,005,682 members
Home / Discussions / C#
   

C#

 
Questiontextbox & tab page bugg? Pin
rbuchana7-Sep-07 18:01
rbuchana7-Sep-07 18:01 
AnswerRe: textbox & tab page bugg? Pin
rohitsrivastava7-Sep-07 19:42
rohitsrivastava7-Sep-07 19:42 
GeneralRe: textbox & tab page bugg? Pin
rbuchana8-Sep-07 4:39
rbuchana8-Sep-07 4:39 
Questioncollection editors & component/control designers [modified] Pin
urbane.tiger7-Sep-07 17:31
urbane.tiger7-Sep-07 17:31 
QuestionHttpWebRequest performance and keep-alive Pin
pattyweb7-Sep-07 13:47
pattyweb7-Sep-07 13:47 
AnswerRe: HttpWebRequest performance and keep-alive Pin
Scott Dorman7-Sep-07 13:54
professionalScott Dorman7-Sep-07 13:54 
QuestionNeed help with panels and forms? Pin
DogMa3x7-Sep-07 12:28
DogMa3x7-Sep-07 12:28 
AnswerRe: Need help with panels and forms? Pin
Skippums10-Sep-07 3:52
Skippums10-Sep-07 3:52 
Make classes Form2 and Form3 extend UserControl, not Form. Then your click code is simple...

public class MainForm : Form {
private Form2 m_Form2 = new Form2();
...
public MainForm() {
InitializeComponent();
m_Form2.Dock = DockStyle.Fill;
}
...
public Panel TopPanel {
get { return panel_Top; }
}
...
private void btn_AddForm2_Click(object sender, EventArgs e) {
panel_Left.Controls.Clear();
panel_Left.Controls.Add(m_Form2);
}
...
}

public class Form2 : UserControl {
private Form3 m_Form3 = new Form3();
...
public Form2() {
InitializeComponent();
m_Form3.Dock = DockStyle.Fill;
}
...
private void btn_AddForm3_Click(object sender, EventArgs e) {
MainForm parentForm = this.ParentForm as MainForm;
if (parentForm == null) return;
parentForm.TopPanel.Controls.Clear();
parentForm.TopPanel.Controls.Add(m_Form3);
}
}

Hope this helps!

Jeff
QuestionRichTextBox DragDrop [modified] Pin
Skippums7-Sep-07 11:37
Skippums7-Sep-07 11:37 
AnswerRe: RichTextBox DragDrop Pin
Dave Kreskowiak7-Sep-07 13:04
mveDave Kreskowiak7-Sep-07 13:04 
QuestionRichTextBox DragDrop Pin
Skippums10-Sep-07 3:40
Skippums10-Sep-07 3:40 
QuestionOverriding ReadOnlyCollection and "Late Population" of the list Pin
J.G.Cda7-Sep-07 11:06
J.G.Cda7-Sep-07 11:06 
QuestionHierarchical hyperlink hype Pin
Istvan4047-Sep-07 10:55
Istvan4047-Sep-07 10:55 
QuestionData Grid View Calculations Pin
jasper0187-Sep-07 10:54
jasper0187-Sep-07 10:54 
AnswerRe: Data Grid View Calculations Pin
Giorgi Dalakishvili7-Sep-07 11:06
mentorGiorgi Dalakishvili7-Sep-07 11:06 
GeneralRe: Data Grid View Calculations Pin
jasper01810-Sep-07 7:20
jasper01810-Sep-07 7:20 
Questioncalculate subitems Pin
andredani7-Sep-07 10:44
andredani7-Sep-07 10:44 
AnswerRe: calculate subitems Pin
Giorgi Dalakishvili7-Sep-07 11:11
mentorGiorgi Dalakishvili7-Sep-07 11:11 
GeneralRe: calculate subitems Pin
andredani7-Sep-07 11:16
andredani7-Sep-07 11:16 
AnswerRe: calculate subitems Pin
Skippums7-Sep-07 11:44
Skippums7-Sep-07 11:44 
GeneralRe: calculate subitems Pin
andredani7-Sep-07 11:52
andredani7-Sep-07 11:52 
GeneralRe: calculate subitems Pin
Guffa7-Sep-07 12:01
Guffa7-Sep-07 12:01 
GeneralRe: calculate subitems Pin
ChrisKo7-Sep-07 12:01
ChrisKo7-Sep-07 12:01 
GeneralRe: calculate subitems Pin
andredani7-Sep-07 12:17
andredani7-Sep-07 12:17 
GeneralRe: calculate subitems Pin
ChrisKo7-Sep-07 12:53
ChrisKo7-Sep-07 12:53 

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.