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
Ye Htut
NA
120
34.6k
Get Picturebox File Name
Dec 4 2013 4:10 AM
public class photo
picture pbx =new picturebox();
private voide btnok(object sender, EventArgs e)
{
string[] files=System.IO.Directory.GetFiles(@"D:\Building_Case");
for each(string file in files)
{
pbx.image=image.fromfile(file);
}
pbx.DoubleClick+=pbx_DoubleClick;
}
void pbx_Double_Click(object sender, EventArgs e)
{
string path=pbx.imagelocation;
messagebox.show(path);
}
}
// path string always return null. so I don't know how to get picturebox file path to open with Windows Photo Viewer
plz help me. I am urgent
Reply
Answers (
1
)
display in label
ClickServer Event