如何做到鼠标悬停就显示大图,移开后就关闭大图窗口?
页面里有两个picturebox,显示的是缩小的图,怎么能做到鼠标移动到上面或者单击就显示原图啊?谢谢!
我的想法是响应时间是重开一个窗口里面有一个够大picturebox,然后把原图地址传进去,但是值传递我不会做……
[解决办法]
public EmergenceAddProcessFrm(string[] temp) { InitializeComponent(); m_strRecords = new string[temp.Length]; for (int i = 0; i < temp.Length; i++) { m_strRecords[i] = temp[i];//0-planinfono,1-typeno,2-typename,3-corpno } this.MaximizeBox = false; this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2; this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2; }