开发者

Not Writing out SaveFileDialog to the InputBox

Sub StoreUserData2()
    If SaveFileDialog1.ShowDialog() Then InputBox(MessageStor, TitleStor, SaveFileDialog1.ShowDialog)
    WriteUserFile()
End Sub

It allows me to browse and/or create a file, but when I click the save button it transfers the new files directory 开发者_JAVA技巧to anothe savefiledialog box. I cant get it to close the search and place the path in the InputBox.


You're calling ShowDialog again in the InputBox parameter.
This shows the dialog again. (as you can expect from the name)

You're probably looking for the FileName property.


You shouldn't call the showdialog method twice, just save the result from the first call. See this


Sorry, wrong link. Try this

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜