Finally I managed to create a DUN file with "drag & drop". So I tried these two commands and they worked
<b>set wshshell = CreateObject ("Wscript.Shell")
wshshell.run "c:\windows\desktop\nextra.dun"</b>
I don't know anything about DUN files. I tried to create one, but I found it impossible to paste the original Connection file into my desktop.
So I cannot try this piece of code. Please try and let my know if it works. Also, if you have an idea about why I cannot create a DUN file, please let...
Maybe you misunderstood my question, but this is my fault for sure. I wrote 'textbox' but I really meant 'RichTextBox'. Nevertheless you have helped me to solve another problem and you gave me some ideas to improve my program. I really thank you.
Regarding my original question, that was...
Suppose I don't want to allow users of my program to paste images in a textbox of my program. So I can use in the "mnuEdit_Click" an expression like this:
If not Clipboard.GetFormat(vbCFText) Then mnuPaste.Enabled = false
Still the user can bypass my code and paste an non-text...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.