首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >过滤器([标题,[buttonLabel,[defaultFilename,[crt.Dialog.FileOpenDialog])

过滤器([标题,[buttonLabel,[defaultFilename,[crt.Dialog.FileOpenDialog])
EN

Stack Overflow用户
提问于 2019-06-12 11:37:48
回答 1查看 85关注 0票数 0

当我尝试使用crt.Dialog.FileOpenDialog(根据需要的属性)浏览文件时,浏览窗口不会出现在顶部,而是出现在其他一些窗口的后面。

我尝试使用焦点,但没有得到想要的输出。

代码语言:javascript
复制
CommDecodeFileNameSelected = crt.Dialog.FileOpenDialog("Select csv Filename to upload", "Upload", "", "All Files (*.txt)|*.log||")                
CommDecode_g_objIE.Document.All("filename").value = CommDecodeFileNameSelected

我希望浏览窗口出现在顶部。

EN

回答 1

Stack Overflow用户

发布于 2019-06-13 11:30:37

在上面两行之前添加

代码语言:javascript
复制
CommDecode_g_objIE.Document.All("ButtonHandler").Value = "Nothing Clicked Yet"
CommDecode_g_objIE.Visible = False
CommDecodeFileNameSelected = crt.Dialog.FileOpenDialog("Select csv Filename to upload", "Upload", "", "All Files (*.txt)|*.log||")                
CommDecode_g_objIE.Document.All("filename").value = CommDecodeFileNameSelected
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56554352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档