Click here to Skip to main content
15,885,546 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to display an existing crystal report in .net framework Pin
mathewsvipin19-Apr-04 4:35
mathewsvipin19-Apr-04 4:35 
GeneralChannels in Remoting Pin
Ivan Fernandez19-Apr-04 3:44
Ivan Fernandez19-Apr-04 3:44 
GeneralQuestions about ObjectSpaces Pin
hsupercn18-Apr-04 23:05
hsupercn18-Apr-04 23:05 
GeneralRe: Questions about ObjectSpaces Pin
Colin Angus Mackay18-Apr-04 23:25
Colin Angus Mackay18-Apr-04 23:25 
GeneralRe: Questions about ObjectSpaces Pin
hsupercn19-Apr-04 18:55
hsupercn19-Apr-04 18:55 
GeneralRe: Questions about ObjectSpaces Pin
Anonymous22-Apr-04 12:37
Anonymous22-Apr-04 12:37 
GeneralDenormalizing a unicode string Pin
Colin Angus Mackay18-Apr-04 14:52
Colin Angus Mackay18-Apr-04 14:52 
GeneralThe Answer Pin
Colin Angus Mackay18-Apr-04 23:10
Colin Angus Mackay18-Apr-04 23:10 
Just to answer my own quesion:

I need to use the invarient culture. See the following example:
using System;
using System.Globalization;

namespace AccentInsensitive
{
  /// <summary>
  /// Summary description for Class1.
  /// </summary>
  class Class1
  {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main(string[] args)
    {
      CultureInfo ci = CultureInfo.InvariantCulture;

      string s1 = "aA eE iI oO uU";
      string s2 = "áÁ éÉ íÍ óÓ úÚ";

      for (int i = 0; i<s1.Length; i++)
      {
        string cmp1 = new string(s1[i],1);
        string cmp2 = new string(s2[i],1);
        int res = ci.CompareInfo.Compare(cmp1, cmp2, 
                                         CompareOptions.IgnoreNonSpace | 
                                         CompareOptions.IgnoreCase);

        if (res < 0)
          Console.WriteLine("{0} < {1}", cmp1, cmp2);
        else if (res > 0)
          Console.WriteLine("{0} > {1}", cmp1, cmp2);
        else
          Console.WriteLine("{0} = {1}", cmp1, cmp2);
      }

      Console.ReadLine();
    }
  }
}



"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

Coming soon: The Second EuroCPian Event[^].


QuestionAppBars in .Net ? Pin
Mad__18-Apr-04 4:20
Mad__18-Apr-04 4:20 
AnswerRe: AppBars in .Net ? Pin
Andres Coder18-Apr-04 7:21
Andres Coder18-Apr-04 7:21 
GeneralRe: AppBars in .Net ? Pin
Mad__18-Apr-04 21:36
Mad__18-Apr-04 21:36 
QuestionWhat is a hashtable ? Pin
Andres Coder18-Apr-04 3:20
Andres Coder18-Apr-04 3:20 
AnswerRe: What is a hashtable ? Pin
Mike Ellison18-Apr-04 19:27
Mike Ellison18-Apr-04 19:27 
Question.net security tools? Pin
pelos18-Apr-04 2:03
pelos18-Apr-04 2:03 
AnswerRe: .net security tools? Pin
partyganger18-Apr-04 4:40
partyganger18-Apr-04 4:40 
QuestionHow to new a PictureBox...?? Pin
17-Apr-04 22:48
suss17-Apr-04 22:48 
AnswerRe: How to new a PictureBox...?? Pin
Peter Reiter17-Apr-04 22:53
Peter Reiter17-Apr-04 22:53 
GeneralRe: How to new a PictureBox...?? Pin
Fade (Amit BS)18-Apr-04 2:21
Fade (Amit BS)18-Apr-04 2:21 
GeneralVisual Studio. Net Help Please !!! Pin
mattymc17-Apr-04 17:32
mattymc17-Apr-04 17:32 
GeneralRe: Visual Studio. Net Help Please !!! Pin
Fade (Amit BS)18-Apr-04 3:31
Fade (Amit BS)18-Apr-04 3:31 
Question.Net Version Problem..???? Pin
Renjith Ramachandran17-Apr-04 9:05
Renjith Ramachandran17-Apr-04 9:05 
AnswerRe: .Net Version Problem..???? Pin
Sarvesvara (BVKS) Dasa17-Apr-04 18:08
Sarvesvara (BVKS) Dasa17-Apr-04 18:08 
GeneralHANDLE in .net Pin
Paolo Ponzano17-Apr-04 1:49
Paolo Ponzano17-Apr-04 1:49 
GeneralRe: HANDLE in .net Pin
Mike Dimmick18-Apr-04 2:13
Mike Dimmick18-Apr-04 2:13 
GeneralChecking for Installed Component Pin
swcrissman16-Apr-04 11:13
swcrissman16-Apr-04 11:13 

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.