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
anil john
NA
156
210.5k
picture size
Oct 5 2012 12:24 AM
form2:
public void setFilename(string sFile)
{
pictureBox1.Image = Image.FromFile(sFile);
}
form 1:
private void button2_Click(object sender, EventArgs e)
{
frmPreview frmPreviewObj = new frmPreview();
frmPreviewObj.setFilename(fname);
//pictureBox1 .Height =fname
frmPreviewObj.Show();
frmPreviewObj.Location = new Point(0,50);
}
here am showing the picture in form2 from button click in form1, i want to chage my second form's form or picture boxes size to the size of the image , how can i do this?
Reply
Answers (
1
)
C# linq to sql issue
Problem with create setup file of windows application