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
John
NA
2
0
Positioning of a new form
Feb 3 2009 8:58 AM
Hi.
I have annoying problem with positioning of new form witch i was created additional to first one.
Code:
//In Form1 (basic one)
private void standard_Click(object sender, EventArgs e)
{standardButtonForm sBF = new standardButtonForm();
this.AddOwnedForm(sBF); //not necessary
sBF.Show();
}
//after button click new form is created
In a new created form i would like to set position in standardButtonForm_Load segment on the basis of Form1 parameters (Left, Bottom or something like this) but i don't know how to call these attributes and how to equate them to standardButtonForm.
I trie in standardButtonForm something like this
private void standardButtonForm_Load(object sender, EventArgs e)
{
Form1 xxx = new Form1();
this.Left=xxx.Left;
}
But I have wrong results.
Please help!!!
Reply
Answers (
1
)
multithread performance problem for web service call
positioning of a new form