Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: Put sound on own simple program Pin
Dan Neely3-Oct-08 10:32
Dan Neely3-Oct-08 10:32 
AnswerRe: Put sound on own simple program Pin
DaveyM693-Oct-08 10:58
professionalDaveyM693-Oct-08 10:58 
AnswerRe: Put sound on own simple program Pin
PIEBALDconsult3-Oct-08 9:37
mvePIEBALDconsult3-Oct-08 9:37 
QuestionRe: Put sound on own simple program Pin
MorganSim3-Oct-08 9:51
MorganSim3-Oct-08 9:51 
AnswerRe: Put sound on own simple program Pin
PIEBALDconsult3-Oct-08 10:23
mvePIEBALDconsult3-Oct-08 10:23 
QuestionPass Dataset table to a stored procedure as a parameter Pin
Litani3-Oct-08 8:46
Litani3-Oct-08 8:46 
GeneralRe: Pass Dataset table to a stored procedure as a parameter Pin
nelsonpaixao3-Oct-08 14:20
nelsonpaixao3-Oct-08 14:20 
QuestionProgammatically pressing underscore,$,% etc keys Pin
Sandeep Kalra3-Oct-08 7:43
Sandeep Kalra3-Oct-08 7:43 
************Programming Challenge**********************


Hi All

Again I have spent more than five hours but still fighting.

I just want to type underscore in my windows textbox.I am able to type characters, Hit enter key etc etc but do not yet found how to print underscore and other special characters like @,$,%,^


I have tried following code .Discovered new things but still trying to find the solution



SendKeys.SendWait(Keys.Decimal.ToString());
SendKeys.SendWait(Keys.S.ToString());
SendKeys.SendWait(Keys.A.ToString());
SendKeys.SendWait(Keys.N.ToString());
SendKeys.SendWait(Keys.D.ToString());
SendKeys.SendWait(Keys.E.ToString());
SendKeys.SendWait(Keys.Oem1.ToString());
SendKeys.SendWait(Keys.Oem102.ToString());
SendKeys.SendWait(Keys.Oem2.ToString());
SendKeys.SendWait(Keys.Oem3.ToString());
SendKeys.SendWait(Keys.Oem4.ToString());
SendKeys.SendWait(Keys.Oem5.ToString());
SendKeys.SendWait(Keys.Oem6.ToString()); // with this type of code getting Oem6 in
// textbox but i wanted 6.
SendKeys.SendWait(Keys.Oem7.ToString());
SendKeys.SendWait(Keys.Oem8.ToString());
SendKeys.SendWait(Keys.OemClear.ToString());
SendKeys.SendWait(Keys.OemBackslash.ToString());
SendKeys.SendWait(Keys.OemCloseBrackets.ToString());
SendKeys.SendWait(Keys.Oemcomma.ToString());
SendKeys.SendWait(Keys.OemMinus.ToString());
SendKeys.SendWait(Keys.OemOpenBrackets.ToString());
//with this code getting OemOpenBrackets in textbox but desired was (.



SendKeys.SendWait(Keys.OemPeriod.ToString());
SendKeys.SendWait(Keys.OemPipe.ToString());
SendKeys.SendWait(Keys.Oemplus.ToString());
SendKeys.SendWait(Keys.OemQuestion.ToString());
SendKeys.SendWait(Keys.OemQuotes.ToString());
SendKeys.SendWait(Keys.OemSemicolon.ToString());
SendKeys.SendWait(Keys.Oemtilde.ToString());



SendKeys.SendWait("{OemSemicolon}"); //givin error
SendKeys.SendWait(Keys.KeyCode== 106); //giving error


SendKeys.SendWait(Keys.E.ToString());
SendKeys.SendWait(Keys.P.ToString());
SendKeys.SendWait(Keys.U.ToString());
SendKeys.SendWait(Keys.K.ToString());
SendKeys.SendWait(Keys.A.ToString()); //working fine
SendKeys.SendWait(Keys.L.ToString());
SendKeys.SendWait(Keys.R.ToString());
SendKeys.SendWait(Keys.A.ToString());
SendKeys.SendWait(Keys.NumPad5.ToString()); //
//with this type of code getting NumPad5 in textbox desired was 5

SendKeys.SendWait(Keys.NumPad4.ToString());
SendKeys.SendWait("{Enter}"); //working fine



Any studymaterial ,sample application or anything related to this will help.I am also trying to find .


Thanks in advance


THE SK
I am the ONE
AnswerRe: Progammatically pressing underscore,$,% etc keys Pin
Sandeep Kalra3-Oct-08 8:08
Sandeep Kalra3-Oct-08 8:08 
AnswerRe: Progammatically pressing underscore,$,% etc keys Pin
led mike3-Oct-08 8:49
led mike3-Oct-08 8:49 
GeneralRe: Progammatically pressing underscore,$,% etc keys Pin
Sandeep Kalra3-Oct-08 9:01
Sandeep Kalra3-Oct-08 9:01 
RantRe: Progammatically pressing underscore,$,% etc keys Pin
Jason Lepack (LeppyR64)3-Oct-08 9:02
Jason Lepack (LeppyR64)3-Oct-08 9:02 
AnswerRe: Progammatically pressing underscore,$,% etc keys Pin
PIEBALDconsult3-Oct-08 10:32
mvePIEBALDconsult3-Oct-08 10:32 
QuestionThe process cannot access the file because it is being used by another process Pin
Alan Balkany3-Oct-08 6:51
Alan Balkany3-Oct-08 6:51 
AnswerRe: The process cannot access the file because it is being used by another process Pin
Pedram Behroozi3-Oct-08 6:59
Pedram Behroozi3-Oct-08 6:59 
GeneralRe: The process cannot access the file because it is being used by another process Pin
Alan Balkany3-Oct-08 7:01
Alan Balkany3-Oct-08 7:01 
JokeRe: The process cannot access the file because it is being used by another process Pin
Pedram Behroozi3-Oct-08 7:13
Pedram Behroozi3-Oct-08 7:13 
AnswerRe: The process cannot access the file because it is being used by another process Pin
Pedram Behroozi3-Oct-08 7:22
Pedram Behroozi3-Oct-08 7:22 
AnswerRe: The process cannot access the file because it is being used by another process Pin
Mark Salsbery3-Oct-08 7:36
Mark Salsbery3-Oct-08 7:36 
GeneralRe: The process cannot access the file because it is being used by another process Pin
Alan Balkany3-Oct-08 7:52
Alan Balkany3-Oct-08 7:52 
GeneralRe: The process cannot access the file because it is being used by another process Pin
Pedram Behroozi3-Oct-08 9:27
Pedram Behroozi3-Oct-08 9:27 
QuestionAdd Project References at runtime Pin
AngusOAP3-Oct-08 5:16
AngusOAP3-Oct-08 5:16 
AnswerRe: Add Project References at runtime Pin
dan!sh 3-Oct-08 5:26
professional dan!sh 3-Oct-08 5:26 
AnswerRe: Add Project References at runtime Pin
led mike3-Oct-08 5:46
led mike3-Oct-08 5:46 
GeneralRe: Add Project References at runtime Pin
AngusOAP4-Oct-08 2:13
AngusOAP4-Oct-08 2:13 

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.