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

.NET (Core and Framework)

 
GeneralRe: A question about MDI Pin
Tomas Petricek22-Apr-04 9:16
Tomas Petricek22-Apr-04 9:16 
Generalquestion about deployment application in VS.Net. Help please Pin
thaiduong20-Apr-04 22:30
thaiduong20-Apr-04 22:30 
QuestionHow do I communicate to web page in .net Pin
kayhustle20-Apr-04 13:58
kayhustle20-Apr-04 13:58 
AnswerRe: How do I communicate to web page in .net Pin
Mike Dimmick21-Apr-04 1:08
Mike Dimmick21-Apr-04 1:08 
General.NET Framework Configuration Pin
Small Rat20-Apr-04 10:48
Small Rat20-Apr-04 10:48 
GeneralRe: .NET Framework Configuration Pin
Mike Dimmick21-Apr-04 1:07
Mike Dimmick21-Apr-04 1:07 
QuestionIs the Framework needed for a DLL? Pin
Cybermantis20-Apr-04 10:25
Cybermantis20-Apr-04 10:25 
AnswerRe: Is the Framework needed for a DLL? Pin
Mike Dimmick21-Apr-04 1:04
Mike Dimmick21-Apr-04 1:04 
AnswerRe: Is the Framework needed for a DLL? Pin
Jitendra gangwar27-Apr-04 4:56
Jitendra gangwar27-Apr-04 4:56 
GeneralPOP3 Component designed in VB Pin
Suman7620-Apr-04 2:31
Suman7620-Apr-04 2:31 
GeneralFailed in calling Manged Method from Unmanged code Pin
sanjay.attri20-Apr-04 1:30
sanjay.attri20-Apr-04 1:30 
GeneralDelphi to VB .net or C# Pin
Patkua19-Apr-04 21:08
Patkua19-Apr-04 21:08 
GeneralRe: Delphi to VB .net or C# Pin
Andres Coder27-Apr-04 7:37
Andres Coder27-Apr-04 7:37 
GeneralNGEN Pin
Michael Russell19-Apr-04 12:27
Michael Russell19-Apr-04 12:27 
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 

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.