TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shailesh
NA
3
0
SplitterContainer
Mar 11 2010 6:43 PM
Hi,
I have a MainForm in which i placed the spllittercontainer. On left panel i have one button btn1 when iclick on this button it shows the form on right panel with the code written in Main form as:
public
void
ShowForm(
Form
sender)
{
sender.ControlBox =
false
;
sender.FormBorderStyle =
FormBorderStyle
.None;
sender.ShowInTaskbar =
false
;
sender.TopLevel =
false
;
sender.Visible =
true
;
sender.Parent =
this
;
this
.splitContainer2.Panel2.Controls.Clear();
//clear panel first
this
.splitContainer2.Panel2.Controls.Add(sender);
}
Now this new form on right Panel has one button "New". I want to click on this button and place the "New Form" on this right panel and close the older one.
Can anybody guide me how to do this on the button clcik event and display the form using the above function from form class.
Thanks
AMM
Reply
Answers (
2
)
How to check if value exist in database
Can someone explain what this piece of code does? string SectionID = ctrl5.ID.Substring(1);