Add Form Within A Form
Post your questions regarding programming in C# in here.
7 posts
Page 1 of 1
MTech010, had created a great tutorial where you can add a form within a forum. So my question is how can I add a forum within a form in C#???
Converting the code to C# is simple:
Code: Select all
Form2 newform = new Form2();
newform.TopLevel = false;
this.Controls.Add(newform);
newform.Show();
What? that code is wrong afaik..
Code: Select all
Form2 newform = new Form2();
newform.ShowDialog();
Bound and boom tech,
The Future Of Coding
The Future Of Coding
http://converter.telerik.com/ <- Is a really nice c# to vb, or vb to C# converter, and its really simple you only need to make your main form "IsMdiContainer" to True
and then you just make a button saying new form or something and then double click the button or the control and write this code:
and then you just make a button saying new form or something and then double click the button or the control and write this code:
Code: Select all
mdiChild child = new mdiChild ();
child .MdiParent = this;
child .Show();
Those converters dont work right. thats why what u just posted (code) is wrong.
Do what I said as ive been doing c# for the last 7 months
Do what I said as ive been doing c# for the last 7 months
Bound and boom tech,
The Future Of Coding
The Future Of Coding
I asked this once LOL.
Code: Select all
cooll;Dim f As New Form
f.Visible = True
f.TopLevel = False
Me.Controls.Add(f)
paralyzer wrote:Those converters dont work right. thats why what u just posted (code) is wrong.I did not convert it, I coded that in my C# lol and I was just saying he could use it
Do what I said as ive been doing c# for the last 7 months
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023