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

C#

 
AnswerRe: how to compare the textbox data with listbox items ? Pin
OriginalGriff18-Dec-11 3:44
mveOriginalGriff18-Dec-11 3:44 
QuestionHow i can set icon for new file extenstion ? Pin
Honeyboy_2018-Dec-11 1:22
Honeyboy_2018-Dec-11 1:22 
AnswerRe: How i can set icon for new file extenstion ? Pin
Eddy Vluggen18-Dec-11 1:38
professionalEddy Vluggen18-Dec-11 1:38 
GeneralRe: How i can set icon for new file extenstion ? Pin
Honeyboy_2018-Dec-11 1:42
Honeyboy_2018-Dec-11 1:42 
GeneralRe: How i can set icon for new file extenstion ? Pin
Eddy Vluggen18-Dec-11 1:47
professionalEddy Vluggen18-Dec-11 1:47 
AnswerRe: How i can set icon for new file extenstion ? Pin
Sivaraman Dhamodharan20-Dec-11 22:58
Sivaraman Dhamodharan20-Dec-11 22:58 
Questionwhen i press '#' on text box i need to see '.' - how to do it ? Pin
goldsoft18-Dec-11 0:45
goldsoft18-Dec-11 0:45 
AnswerRe: when i press '#' on text box i need to see '.' - how to do it ? Pin
#realJSOP18-Dec-11 2:49
professional#realJSOP18-Dec-11 2:49 
The code below makes many assumptions and there is more to do (like resetting the caret to the end of the textbox text), but this is essentially the answer to your question.

C#
private void textbox1_TextChanged(object sender, EventArgs e)
{
    TextBox textbox = sender as TextBox;
    if (textbox.Text.EndsWith("#"))
    {
        textbox.Text = textbox.Text.Replace("#", ".");
    }
}

".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997


GeneralRe: when i press '#' on text box i need to see '.' - how to do it ? Pin
SledgeHammer0120-Dec-11 6:27
SledgeHammer0120-Dec-11 6:27 
AnswerRe: when i press '#' on text box i need to see '.' - how to do it ? Pin
hirendra_sisodiya19-Dec-11 2:04
hirendra_sisodiya19-Dec-11 2:04 
GeneralRe: when i press '#' on text box i need to see '.' - how to do it ? Pin
SledgeHammer0120-Dec-11 6:21
SledgeHammer0120-Dec-11 6:21 
GeneralRe: when i press '#' on text box i need to see '.' - how to do it ? Pin
Pete O'Hanlon20-Dec-11 6:53
mvePete O'Hanlon20-Dec-11 6:53 
AnswerRe: when i press '#' on text box i need to see '.' - how to do it ? Pin
XsyNvs20-Dec-11 18:36
XsyNvs20-Dec-11 18:36 
GeneralHello Old Pros and Beginners… Pin
N8tiv17-Dec-11 21:32
N8tiv17-Dec-11 21:32 
GeneralRe: Hello Old Pros and Beginners… Pin
Richard MacCutchan17-Dec-11 21:39
mveRichard MacCutchan17-Dec-11 21:39 
GeneralRe: Hello Old Pros and Beginners… Pin
N8tiv17-Dec-11 22:05
N8tiv17-Dec-11 22:05 
GeneralRe: Hello Old Pros and Beginners… Pin
N8tiv17-Dec-11 22:07
N8tiv17-Dec-11 22:07 
GeneralRe: Hello Old Pros and Beginners… Pin
Richard MacCutchan17-Dec-11 22:08
mveRichard MacCutchan17-Dec-11 22:08 
GeneralRe: Hello Old Pros and Beginners… Pin
N8tiv17-Dec-11 22:10
N8tiv17-Dec-11 22:10 
GeneralRe: Hello Old Pros and Beginners… Pin
#realJSOP18-Dec-11 1:15
professional#realJSOP18-Dec-11 1:15 
GeneralRe: Hello Old Pros and Beginners… Pin
Pete O'Hanlon19-Dec-11 12:55
mvePete O'Hanlon19-Dec-11 12:55 
QuestionDBGhelp.dll read minidump Pin
Zach.Saunders17-Dec-11 9:04
Zach.Saunders17-Dec-11 9:04 
AnswerRe: DBGhelp.dll read minidump Pin
Eddy Vluggen18-Dec-11 1:40
professionalEddy Vluggen18-Dec-11 1:40 
QuestionText capture Pin
mmda17-Dec-11 4:47
mmda17-Dec-11 4:47 
AnswerRe: Text capture Pin
Luc Pattyn17-Dec-11 4:54
sitebuilderLuc Pattyn17-Dec-11 4:54 

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.