Need to send keys to "Choose File to Upload" dialog box (VB.net)

I've tried several methods but can't seem to successfully send keys to the "Choose File to Upload" box that pops up when the browse button is clicked. I am using the webbrowser control in VB 2008 on an windows 7 pro machine. My last attempt was:


Private Sub TimerTest_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerTest.Tick
        AppActivate("Choose File to Upload")
        SendKeys.Send("{TAB}")
        SendKeys.Send("{ENTER}")
End Sub

The timer is set to fire 5 seconds after the "browse" button has been clicked - The thing about it is I have it looping every 5 seconds - to see if it will tab into an area on filedialog window, but it doesnt - yet when i close the filedialog window and the timer fires, it generates an error - most likely due to the fact that it is actually finding the "Choose File to Upload" but either is not giving it proper focus or sendkeys are not working for some reason. Help with this or another effective method would be appreciated.
battlewebAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sammlCommented:
Why do you want to send keys to the dialog box? Maybe it would be better to replicate the behavior using the objects in the System.Net-namespace.
0
battlewebAuthor Commented:
samml - can you explain how that would be done? I'm trying to make an application for my website which will automatically update it with content periodically - some of that content includes pictures which is why I would "want to send keys to the dialog box"  - unfortunately, just ftp'ing the content will not work because the site is controlled by php and MySQL and the  <input type="file"> is not editable so, my only other option is to use send keys to fill in the path to the pictures in the open file dialog box that pops up.
0
battlewebAuthor Commented:
Never mind - this was an issue of timer priority - changing timer to fire before the dialog popped up seemed to have addressed the issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
battlewebAuthor Commented:
See above for resolution
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.