TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
matthew king
NA
52
0
help with clipboard (select all, copy, and paste)
Sep 4 2009 4:28 PM
Hey Experts. Sorry to bother you with another question, but this time I've almost got this one to work with one minor problem: I have a form with a textbox1, a button1, a webbrowser1, and another textbox2. My objective is to have a user input data into textbox1. This data is attached to a url, which querries a slew of text files on our ftp server. Now, I can get the webbrowser within the form to populate with data from the text file without incident. However, in order to populate textbox2 with the same data, the user has to push the botton twice. Now, I know you may be asking why do you want to display the data twice, in a textbox and webbrowser? Well, the webbrowser is hidden on the form (long story there), which is why I would like to have textbox2 populated with the data from our ftp server, and not the webbrowser. Here's what I was able to come up with: private void button1_Click(object sender, EventArgs e) { string line; if (comboBox4.Text == "Help Desk") { webBrowser1.Navigate(new Uri(@"ftp://our intranet url/" + textbox1.Text + ".TXT")); webBrowser1.Document.ExecCommand("SelectAll", false, null); webBrowser1.Document.ExecCommand("Copy", false, null); webBrowser1.Document.ExecCommand("Paste", false, null); string Paste = Clipboard.GetText(); textbox2.Text = Paste; } { if (comboBox4.Text == "Config Man") {
Reply
Answers (
5
)
Why Dictionary is serializable ?
Could not convert to C#