Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to hide a property from the property grid while still allowing XML serialization Pin
darkelv24-Dec-07 14:31
darkelv24-Dec-07 14:31 
GeneralRe: How to hide a property from the property grid while still allowing XML serialization Pin
slipster21624-Dec-07 17:43
slipster21624-Dec-07 17:43 
GeneralRe: How to hide a property from the property grid while still allowing XML serialization [modified] Pin
darkelv24-Dec-07 19:05
darkelv24-Dec-07 19:05 
GeneralPrinting Pin
half-life24-Dec-07 4:48
half-life24-Dec-07 4:48 
GeneralRe: Printing Pin
Xmen Real 24-Dec-07 14:50
professional Xmen Real 24-Dec-07 14:50 
GeneralRe: Printing Pin
half-life24-Dec-07 20:08
half-life24-Dec-07 20:08 
GeneralRe: Printing Pin
Xmen Real 24-Dec-07 20:17
professional Xmen Real 24-Dec-07 20:17 
GeneralProblem to override OnTextChanged(throw Unlimited Loop) Pin
hdv21224-Dec-07 4:39
hdv21224-Dec-07 4:39 
hi i create a userControl and inheritance it from TextBox control, i was override OnTextChanged event as follow(to change codpage of numbers to arabic):
protected override void OnTextChanged(EventArgs e)<br />
{            <br />
	//base.OnTextChanged(e);<br />
	this.Text = this.ToArabicNumber(this.Text);            <br />
}

and my method (ToArabicNumber) is here:
private string ToArabicNumber(string text)<br />
{<br />
	char[] chars = new char[text.Length];<br />
	chars = text.ToCharArray();<br />
	StringBuilder sb = new StringBuilder();<br />
	foreach (char c in chars)<br />
	{<br />
		if (char.IsDigit(c))<br />
		{<br />
			sb.Append(Strings.ChrW(Strings.AscW(c) + 1728).ToString());<br />
		}<br />
	}<br />
	return sb.ToString();<br />
}

my problem is that in runTime, when i enter any value to my custom textBox, it's Text changed and fire OntextChanged event and change codpage to arabic and then fire OntextChanged and so on (Unlimited loop),
how to solve my problem ?
thanks
GeneralRe: Problem to override OnTextChanged(throw Unlimited Loop) Pin
Colin Angus Mackay24-Dec-07 4:57
Colin Angus Mackay24-Dec-07 4:57 
GeneralRe: Problem to override OnTextChanged(throw Unlimited Loop) Pin
hdv21224-Dec-07 7:37
hdv21224-Dec-07 7:37 
GeneralRe: Problem to override OnTextChanged(throw Unlimited Loop) Pin
Colin Angus Mackay24-Dec-07 9:20
Colin Angus Mackay24-Dec-07 9:20 
GeneralRe: Problem to override OnTextChanged(throw Unlimited Loop) Pin
hdv21224-Dec-07 12:40
hdv21224-Dec-07 12:40 
GeneralRe: Problem to override OnTextChanged(throw Unlimited Loop) Pin
Colin Angus Mackay24-Dec-07 13:04
Colin Angus Mackay24-Dec-07 13:04 
GeneralTimercontrol Interval In Config File Pin
Member 459997224-Dec-07 4:05
Member 459997224-Dec-07 4:05 
GeneralRe: Timercontrol Interval In Config File Pin
Anthony Mushrow24-Dec-07 5:12
professionalAnthony Mushrow24-Dec-07 5:12 
GeneralRestrict to run application more than one time Pin
Xmen Real 24-Dec-07 4:03
professional Xmen Real 24-Dec-07 4:03 
GeneralRe: Restrict to run application more than one time Pin
Xmen Real 24-Dec-07 4:09
professional Xmen Real 24-Dec-07 4:09 
GeneralRe: Restrict to run application more than one time Pin
Giorgi Dalakishvili24-Dec-07 4:18
mentorGiorgi Dalakishvili24-Dec-07 4:18 
GeneralRe: Restrict to run application more than one time Pin
Xmen Real 24-Dec-07 4:35
professional Xmen Real 24-Dec-07 4:35 
GeneralRe: Restrict to run application more than one time Pin
Giorgi Dalakishvili24-Dec-07 4:56
mentorGiorgi Dalakishvili24-Dec-07 4:56 
GeneralRe: Restrict to run application more than one time Pin
Xmen Real 24-Dec-07 14:44
professional Xmen Real 24-Dec-07 14:44 
GeneralRe: Restrict to run application more than one time Pin
Giorgi Dalakishvili24-Dec-07 20:01
mentorGiorgi Dalakishvili24-Dec-07 20:01 
GeneralRe: Restrict to run application more than one time Pin
Scott Dorman24-Dec-07 5:05
professionalScott Dorman24-Dec-07 5:05 
GeneralRe: Restrict to run application more than one time Pin
User 665824-Dec-07 9:20
User 665824-Dec-07 9:20 
GeneralPreProcessMessage Pin
Sabry190524-Dec-07 1:36
Sabry190524-Dec-07 1:36 

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.