Click here to Skip to main content
15,887,444 members
Home / Discussions / C#
   

C#

 
AnswerRe: Automatic download attachment from emails Pin
c0ax_lx1-Jul-09 3:55
c0ax_lx1-Jul-09 3:55 
AnswerRe: Automatic download attachment from emails Pin
moon_stick1-Jul-09 5:09
moon_stick1-Jul-09 5:09 
GeneralRe: Automatic download attachment from emails Pin
spankyleo1231-Jul-09 8:57
spankyleo1231-Jul-09 8:57 
GeneralRe: Automatic download attachment from emails Pin
moon_stick1-Jul-09 9:18
moon_stick1-Jul-09 9:18 
GeneralRe: Automatic download attachment from emails Pin
moon_stick1-Jul-09 9:22
moon_stick1-Jul-09 9:22 
GeneralRe: Automatic download attachment from emails Pin
spankyleo1231-Jul-09 9:57
spankyleo1231-Jul-09 9:57 
GeneralRe: Automatic download attachment from emails Pin
moon_stick1-Jul-09 11:13
moon_stick1-Jul-09 11:13 
QuestionCut, Copy & Paste from variable text boxes Pin
Martin310881-Jul-09 3:20
Martin310881-Jul-09 3:20 
Hi guys,

What I'm trying to do is cut copy and paste the selected text from any text box in my application. I have it working if it copies the entire text from the box, and I have it working if I hard code the text box name into to function.

Ive looked all over for an answer to this, and have got nowhere

This is the current code I am using:
string ActiveCon = this.ActiveControl.Name;
string SelText = ActiveCon.SelectedText;
Clipboard.SetText(SelText);
this.ActiveControl.Text = "";

It just does not like SelectedText used on a variable

Any help on this would be greatly appreciated.
Regards
Martin
AnswerRe: Cut, Copy & Paste from variable text boxes Pin
Eddy Vluggen1-Jul-09 3:39
professionalEddy Vluggen1-Jul-09 3:39 
GeneralRe: Cut, Copy & Paste from variable text boxes Pin
Baeltazor1-Jul-09 7:39
Baeltazor1-Jul-09 7:39 
GeneralRe: Cut, Copy & Paste from variable text boxes Pin
Eddy Vluggen1-Jul-09 8:20
professionalEddy Vluggen1-Jul-09 8:20 
GeneralRe: Cut, Copy & Paste from variable text boxes Pin
Baeltazor1-Jul-09 20:28
Baeltazor1-Jul-09 20:28 
AnswerRe: Cut, Copy & Paste from variable text boxes Pin
DaveyM691-Jul-09 3:46
professionalDaveyM691-Jul-09 3:46 
AnswerRe: Cut, Copy & Paste from variable text boxes Pin
Luc Pattyn1-Jul-09 3:49
sitebuilderLuc Pattyn1-Jul-09 3:49 
QuestionExpanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
MagForJ1-Jul-09 3:11
MagForJ1-Jul-09 3:11 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
Manas Bhardwaj1-Jul-09 3:27
professionalManas Bhardwaj1-Jul-09 3:27 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
harold aptroot1-Jul-09 3:28
harold aptroot1-Jul-09 3:28 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
SeMartens1-Jul-09 3:29
SeMartens1-Jul-09 3:29 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
Keith Barrow1-Jul-09 3:37
professionalKeith Barrow1-Jul-09 3:37 
QuestionRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
EliottA1-Jul-09 4:25
EliottA1-Jul-09 4:25 
AnswerRe: Expanding String Abbreviations To Full String ( NASDAQ:INTC --> Intel Corporation) Pin
dojohansen1-Jul-09 6:19
dojohansen1-Jul-09 6:19 
Questionadd controls to webform Pin
v_vidhya1-Jul-09 2:23
v_vidhya1-Jul-09 2:23 
AnswerRe: add controls to webform Pin
Niladri_Biswas1-Jul-09 3:47
Niladri_Biswas1-Jul-09 3:47 
GeneralRe: add controls to webform Pin
v_vidhya1-Jul-09 18:38
v_vidhya1-Jul-09 18:38 
Questionclickonce Pin
arkiboys1-Jul-09 2:12
arkiboys1-Jul-09 2:12 

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.