我做了个按钮,更改样式后变成已审核的标记来用,属性设置为不可见,
窗口左边为目录树,在节点点击的按钮处写了
If ftp1.Download("\" & FileName,ProjectPath & "FileMange\" & FileName) = True Then
Messagebox.show("下载完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
e.Form.Controls("WebBrowser1").basecontrol.Navigate(ProjectPath & "FileMange\" & FileName )
If e.Node.DataRow("文件状态") = "已审核"
e.Form.Controls("Button1").Visible= True
Else
e.Form.Controls("Button1").Visible= False
End If
Else
Messagebox.show("下载失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
但点击后,按钮不会显示出来,请教老师是什么原因?谢谢