Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: database password Pin
martin_hughes15-Oct-08 12:58
martin_hughes15-Oct-08 12:58 
QuestionString parsing? Pin
Rafone14-Oct-08 11:43
Rafone14-Oct-08 11:43 
AnswerRe: String parsing? Pin
nofacts14-Oct-08 11:55
nofacts14-Oct-08 11:55 
GeneralRe: String parsing? Pin
Rafone15-Oct-08 11:00
Rafone15-Oct-08 11:00 
AnswerRe: String parsing? Pin
martin_hughes14-Oct-08 12:24
martin_hughes14-Oct-08 12:24 
GeneralRe: String parsing? Pin
Paul Conrad14-Oct-08 12:44
professionalPaul Conrad14-Oct-08 12:44 
GeneralRe: String parsing? Pin
Rafone15-Oct-08 11:01
Rafone15-Oct-08 11:01 
QuestionControlling cursor and retrigger in text box event handler Pin
nofacts14-Oct-08 11:18
nofacts14-Oct-08 11:18 
I need to intercept text being entered into a text box, and remove a space if it is typed. The problem with the following code is that the cursor ends up at the beginning of the string, not the end. Say the user types 'a' and then a space, i want the text box to show 'a' with the cursor after the 'a', not before the 'a'. Is there a way to specify the cursor location?

textBoxA_TextChanged (object sender, System.EventArgs.e)
{
  if (textBoxA.Text.Contains(" "))
  {
    textBoxA.Text = textBoxA.Text.Trim();
  }
}


Also, is there a way to supress the TextChanged event happening a second time, since I'm changing the text within the event handler? With a data grid, for example you can do the BeginInit/EndInit. The text box doesn't support ISupportInitialize, correct? Other things trigger off each character that is typed so I need to check character by character.
AnswerRe: Controlling cursor and retrigger in text box event handler Pin
Jimmanuel14-Oct-08 12:34
Jimmanuel14-Oct-08 12:34 
GeneralRe: Controlling cursor and retrigger in text box event handler Pin
nofacts14-Oct-08 12:47
nofacts14-Oct-08 12:47 
QuestionMerging to databases Pin
postonoh14-Oct-08 10:16
postonoh14-Oct-08 10:16 
Questionvisual c++ runtine error while using c#.net Pin
balu1234514-Oct-08 7:17
balu1234514-Oct-08 7:17 
AnswerRe: visual c++ runtine error while using c#.net Pin
KaptinKrunch14-Oct-08 7:23
KaptinKrunch14-Oct-08 7:23 
Questionvirtual memory fragmentation Pin
arcabid14-Oct-08 7:16
arcabid14-Oct-08 7:16 
AnswerRe: virtual memory fragmentation Pin
Guffa14-Oct-08 11:25
Guffa14-Oct-08 11:25 
GeneralRe: virtual memory fragmentation Pin
arcabid15-Oct-08 3:03
arcabid15-Oct-08 3:03 
GeneralRe: virtual memory fragmentation Pin
S. Senthil Kumar15-Oct-08 4:21
S. Senthil Kumar15-Oct-08 4:21 
GeneralRe: virtual memory fragmentation Pin
arcabid15-Oct-08 9:04
arcabid15-Oct-08 9:04 
Questionloading a file on the lisview conttrol by a double click (c#) Pin
Gianpaolo Barci14-Oct-08 6:49
Gianpaolo Barci14-Oct-08 6:49 
AnswerRe: loading a file on the lisview conttrol by a double click (c#) Pin
Dan Neely14-Oct-08 6:58
Dan Neely14-Oct-08 6:58 
AnswerRe: loading a file on the lisview conttrol by a double click (c#) Pin
KaptinKrunch14-Oct-08 7:04
KaptinKrunch14-Oct-08 7:04 
QuestionToolStripDropDownButton error...is it just me? Pin
pacoxl14-Oct-08 6:23
pacoxl14-Oct-08 6:23 
AnswerRe: ToolStripDropDownButton error...is it just me? Pin
Paul Conrad14-Oct-08 7:07
professionalPaul Conrad14-Oct-08 7:07 
GeneralRe: ToolStripDropDownButton error...is it just me? Pin
pacoxl14-Oct-08 8:02
pacoxl14-Oct-08 8:02 
QuestionRe: ToolStripDropDownButton error...is it just me? [modified] Pin
Alan Burkhart4-Sep-11 21:25
Alan Burkhart4-Sep-11 21:25 

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.