I just purchased some software that writes folder browser controls, it looks pretty easy for the most part. I'm trying to make a folder browser control for my Outlook Form that I've created. I could use the the paper-clip icon but for testing purposes I'd like to know if if you can put folder browser controls in the actual form.
I can get it to work in Visual Basic but for some reason it is not working on my Outlook Form when I run it. The only thing I did differently in Visual was that I added as a Component and it the folder browser icon appeared in my toolbar in which case i just dropped it into the form and pasted this code here behind it and it worked great.
Private Sub Command1_Click()
.Folder = "c:my computer"
.Title = "Please select default file location."
.Owner = Me.hWnd
If FolderBrowser1.Show Then
MsgBox "Folder selected is " & FolderBrowser1.Folder
MsgBox "Cancel selected."
I've tried pasting this code in the Properties of my control on the form in Edit portion of it's properties, as well as trying to paste it into Form>View Code as a script there, I then bind the data by coping the control from the Edit Compose page to the Edit Read page and then run it. It will not run, I click on the Control and nothing happens.
Since i know the code works in VB no problems, is there anyone that could test this on an Outlook form to see if it will work. If it does if you could outline the steps as if I were a two year old I'd greatly appreciate it. Mucho points for this one! Thanks in Advance.