Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Guffa24-Sep-05 8:52
Guffa24-Sep-05 8:52 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
mav.northwind24-Sep-05 9:29
mav.northwind24-Sep-05 9:29 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
leppie24-Sep-05 14:34
leppie24-Sep-05 14:34 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Guffa25-Sep-05 5:36
Guffa25-Sep-05 5:36 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Nick Parker24-Sep-05 9:22
protectorNick Parker24-Sep-05 9:22 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
Judah Gabriel Himango24-Sep-05 10:37
sponsorJudah Gabriel Himango24-Sep-05 10:37 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
Mohamad Al Husseiny25-Sep-05 8:12
Mohamad Al Husseiny25-Sep-05 8:12 
QuestionOpening Word in WebBrowser control and selecting some text Pin
mirano24-Sep-05 2:28
mirano24-Sep-05 2:28 
Hi everybody.

I open a Word document in the web browser control, I then select some text in it using a mouse, and I want to paste the selected text into another text box on the same form, but it does not work.

The code looks like this:

Clipboard.SetDataObject("");
_web.Focus();

_web.ExecWB(SHDocVw.OLECMDID.OLECMDID_COPY, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref refmissing , ref refmissing);

IDataObject iData = Clipboard.GetDataObject();

if(iData.GetDataPresent(DataFormats.Text))
{
textBox2.Text = (String)iData.GetData(DataFormats.Text);
}

It is as if the selected text gets copied somewhere else. I did an extensive search on the web, but to no avail.
Sending keys to the browser control will get no results, like:

_web.Focus();
SendKeys.Send("^c");

Nothing in the clipboard aftert that operation either.

Thanks a lot.

Sarajevo, Bosnia
QuestionHow to get handles opened by the current process? Pin
Anonymous24-Sep-05 0:28
Anonymous24-Sep-05 0:28 
AnswerRe: How to get handles opened by the current process? Pin
Dave Kreskowiak24-Sep-05 16:04
mveDave Kreskowiak24-Sep-05 16:04 
Question5 years of C# and still no open projects... Pin
Anonymous23-Sep-05 23:39
Anonymous23-Sep-05 23:39 
AnswerRe: 5 years of C# and still no open projects... Pin
Nick Parker24-Sep-05 9:27
protectorNick Parker24-Sep-05 9:27 
QuestionHow to print two languages in the same line? Pin
moh_monir23-Sep-05 22:13
moh_monir23-Sep-05 22:13 
Questionget the calling function and class name Pin
Anonymous23-Sep-05 20:26
Anonymous23-Sep-05 20:26 
AnswerRe: get the calling function and class name Pin
Nick Parker24-Sep-05 9:45
protectorNick Parker24-Sep-05 9:45 
QuestionRegular expression help me Pin
rockxuyenmandem23-Sep-05 19:07
rockxuyenmandem23-Sep-05 19:07 
AnswerRe: Regular expression help me Pin
Alex Korchemniy23-Sep-05 20:00
Alex Korchemniy23-Sep-05 20:00 
AnswerRe: Regular expression help me Pin
Guffa23-Sep-05 21:12
Guffa23-Sep-05 21:12 
AnswerRe: Regular expression help me Pin
Daniel Grunwald23-Sep-05 22:44
Daniel Grunwald23-Sep-05 22:44 
Questionrun a application at a specified time Pin
dhol23-Sep-05 17:39
dhol23-Sep-05 17:39 
AnswerRe: run a application at a specified time Pin
Dave Kreskowiak24-Sep-05 15:59
mveDave Kreskowiak24-Sep-05 15:59 
Questionhow to use mouse on focus events Pin
jyothi_pradeep_satyam_corp23-Sep-05 17:38
jyothi_pradeep_satyam_corp23-Sep-05 17:38 
AnswerRe: how to use mouse on focus events Pin
enjoycrack23-Sep-05 18:30
enjoycrack23-Sep-05 18:30 
QuestionOwner-Drawn TabControl Pin
Darryl Borden23-Sep-05 17:36
Darryl Borden23-Sep-05 17:36 
AnswerRe: Owner-Drawn TabControl Pin
Darryl Borden26-Sep-05 3:06
Darryl Borden26-Sep-05 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.