|
|
have you used the @ setting for the string or quallified the slashes?
|
|
|
|
|
The @ setting doesn't matter in my case, as the Regex string is being written to client script for use by the Javascript RegExp object. Thanks for the thought, though. No, that's always the first thing I check. This was just me being a bone head and forgetting to use \\ instead of \. D'Oh!!!
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
Forgive my ignorance, but if you're writing a script with C#, wouldn't the @ make it literal, thus be written as is?
"^\d{3}(-?)\d{2}\1\d{4}$" <= wouldn't work.
"^\\d{3}(-?)\\d{2}\\1\\d{4}$" <= would work
@"^\d{3}(-?)\d{2}\1\d{4}$" <= result is same as above
|
|
|
|
|
|
I was hoping that was the problem. I was about to rumble through my c# books on regex
thanks
|
|
|
|
|
|
can anyone tell me how to create text editor in c#.
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
you can start your homework with a multiline textbox.
|
|
|
|
|
I have tried using that but unfortunately it is getting timeout before my due date .can you post any code u have for text editor in c#
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
|
You can start your homework with a multiline textbox. (if this is multiple posted, I apologize. There seems to be a problem submitted the form).
|
|
|
|
|
can you send the code to yahoo id mine is veluru_kc@yahoo.com
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
|
You can't expect anybody to do your homework for you, which it appears is what you want based on the rest of this thread. What you CAN do, is browse through CodeProject, and look for samples, of which there are plenty. If all you want is a basic text editor (no syntax coloring, etc.), you can do so with a multiline text box. Then, just add in menus to the main window, and a context menu to your text box, and you're set.
If you're looking for an advanced editor, then you're going to need to use the Rich Text control (or roll your own, which is orders more difficult).
Either way, you'll have to do the work yourself, and not expect someone else to do it for you. If someone else does it, you don't learn anything, and we end up with another programmer in the job pool who can't hack it in the work force.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
i am sorry i doesn't mean it i am looking for a sample code that is a part of it not the whole
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
|
veluru krishna wrote: can anyone tell me how to create text editor in c#.
The RichTextBox class provides basic text editor functionality.
|
|
|
|
|
Hi ,
I've to restrict users from entering the special characters in the text box.Can anyone let me know how can I acheive this using C# code?
Thank you,
Sincerely,
Deepa!
|
|
|
|
|
regular expressions in the key events.
|
|
|
|
|
Hi,
I will work on getting the requiremenr.Just Now I got to read your message that starts with SomeOne do my homework.I'm fully justified with what you told.
Anyway Thank you for guiding.
Thank you,
Sincerely,
Deepa
Be the Change You want to See!
|
|
|
|
|
Hi all,
I want to make some controls on my form visible only when the mouse is over the form.
To that end, i set Visible=true in the onmouseenter event of the form, and visible=false in the onmouseleave.
However, when you move the mouse over the controls that are newly made visible, the onmouseleave event fires and the control is made invisible again. Then, since the control disappears, the onmouseenter event fires again, start a cycle of flickering.
Can anyone think of a way round this? I can see no way of telling where the mouse went (ie, did it leave the bounds of the form? or did it enter a control on the form) and thus no way of properly implementing this feature.
Any ideas?
thanks
jon
|
|
|
|
|
Have you tried placing the control on a div, and showing/hiding that?
|
|
|
|
|
I'm sorry i wasn't explicit. This is a Windows Forms application, hence the title stating Form.OnMouseEnter.
Thanks
Jon
|
|
|
|
|
You can avoid flickers but playing with flags...
|
|
|
|