|
Greetings to UniMaas
LiQuick wrote: how do I program a routine that automatically converts "Rémy" to "Remy" and "Höfland" to "Hofland"
You want to convert it to ASCII[^]? That might introduce new problems[^] as well.
The solution of my own ISP isn't that cool either; they just strip any diacritic and add a number in case of collision
|
|
|
|
|
Thanks Eddy! Do you know UniMaas personally by the way?
Your links gave me the idea/solution I needed. It doesn't work for all characters but it's nifty enough to get most of it out of our system:
public static string RipDiacritics(string Text)
{
string New = "";
string Temp = "";
foreach (char C in Text)
{
Temp = C.ToString().Normalize(System.Text.NormalizationForm.FormKD);
if (Temp.Length > 1)
{
Temp = Temp.ToCharArray()[0].ToString();
}
New += Temp;
}
return New;
}
The string.Normalize(System.Text.NormalizationForm.FormKD) code changes the string "é" to "e'". It seperates the letter from it's accent. Characters that won't work (and I don't know if they are valid for an E-Mail address) are things like "Ø", "œ" and "ß". But we will cover most of them in a translation table till we find a solution to that problem as well.
EDIT: Colleague found an article on Codeproject doing the same as here above: Stripping Accents from Latin Characters: A Foray into Unicode Normalization[^]
modified on Monday, July 27, 2009 4:38 PM
|
|
|
|
|
Email-addresses are valid when they are in ASCII, and no ASCII-control characters are used (everything > 31 and < 127)
Not personal, I just live in the vicinity
|
|
|
|
|
You can always use a variant of iconv to accomplish this. Here's[^] a version that you could probably hack about for your own needs.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi all,
I need help from u all. I'm using datagridview in windows application. I need to display row headers for the datagridview.plz help me with a sample code.
Thanks in advance.......
Elizabeth...
|
|
|
|
|
All you need is setting the RowHeaderVisible property of the DataGridView to true.
|
|
|
|
|
|
Well, the reason for the redirect is presumably to choose a server that's free. I don't see how you can hope to find that, without some sort of web service offered by the website.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
ITNOG - Hi
Thank you , but this link was a sample , Some site use this form link but the file is in their hos , anybody know how download managers find the original download link . or Firefox ?
thanks.
|
|
|
|
|
Hi. Is it possible to add some custom location items in the location drop own list of the outlook 2007 appointments through AddIn in C#?
|
|
|
|
|
Hello, How would I go about catching the keypress with the application hidden.
|
|
|
|
|
you would need to write a system wide keyboard hook, as when your app is not visible, it's not catching any input
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi I am using Visual Studio 2005.
I want to layout my Form automatically when I restore or maximize form window. The controls on the form like groupbox containing many other controls should adjust according to size of form.
Question:
1. How I can implement this? What is best way?
2. Should I do it using code. That is by changing locations of controls?
I used Anchor property but it doesn't worked for me.
Please tell.
Thanks
|
|
|
|
|
The Anchor and Dock properties are how it's done. otherwise, you need to write a ton of code in the form resized event to do it manually.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Depends on what you want to do. If you want your controls to change size based on the size and resolution of the screen then there used to be a number of articles around but they were all a kludge. I believe WPF may be the too; for this sort of thing.
What I usually do is have 2 classes of form, fixedtoolwindow and sizeabletoolwindow. Fixed is for any dialog without a datalist, it does not make sense for the user to change from my setup. Sizeable is for any form with a list control. I use a combination of panels, docking and anchor to achieve a form where the list control is docked to fill and therefore expans when the use changes the form layout.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Put the controls in the TableLayoutPanel cells. Set the column and row dimensions for the TableLayoutPanel in "%" (You can also give absolute values wherever suitable). Anchor the TableLayoutPanel to all the sides of the form. And all the controls to all four sides of the cell they are in. This will give resizing effect to the controls when the form is resized.
Hope this helps.
|
|
|
|
|
I have a c# .net 2.0 application that I created. What I need to know is how do I create a true
".exe" embedable code. I have a gizmo that I want to program. I must confess that I am beyond
my realm with this but thats how we learn. I understand how the .net framework works and how it
passes the assemblys to the "JIT" and the JIT the converts it to true machine code that the processer executes. do other platforms like borland create true ".exe's"? Or do I need to learn
Assembly language? I hope not as I am getting good with C# It is pretty straight forward. Maybe there is a compiler that will do what I need.
Thanks in advance.
Regards
Rick Osburn
p.s.
I am famillar with windows ce but I dont want to mess with the licensing fees just want to burn
it into a Eprom.
|
|
|
|
|
The only way to write a .NET app is using MSIL, or to buy an expensive compiler that goes to native code. Your other option is to learn C++.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hai Friends
I want to hide a application process in the task manager from the process list.
It only for the security purpose, the user could not be uninstalled or end the process from the process list and also remove from the Control Panel once it installed.
thank you
Vasanth.A
|
|
|
|
|
If you install the service/application in "SYSTEM" Mode, it can only be killed from administrator. If your user doesn't have any admin right, then your user cannot kill the process.
|
|
|
|
|
I installed the process in the Administrator System ie it is one of the server but it is not a main server. The main server track all the action of that particular system.
so if it is possible to uninstall or kill my application in that client then how i track him.so i want to hide my process in that installation system.
The main thing is he cannot kill my process even he is admin of that particular area.
thanks
Vasanth.A
|
|
|
|
|
|
... and you'll get no help from me writing one.
And trying to do it in C# is just dumb.
|
|
|
|
|
What possible legitimate reason could you have for wanting to do this? Nobody is about to publish something on a public forum that will allow you to write a virus. Even if you don't want to write one, simply making this information available here would allow others to do it.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
There is no way to hide the app from Task Manager. Your only hope is to prevent the user from running Task Manager, which is easily done in Group policy.
But, if the user is an admin on the machine, he can still use command line tools to find and kill the app.
|
|
|
|