Click here to Skip to main content
15,902,888 members
Home / Discussions / C#
   

C#

 
AnswerRe: Textbox enter Pin
Jimbo2227-Mar-06 5:06
Jimbo2227-Mar-06 5:06 
AnswerRe: Textbox enter Pin
Ricardo Casquete27-Mar-06 5:07
Ricardo Casquete27-Mar-06 5:07 
QuestionProblem in using Timers Pin
smadan27-Mar-06 2:56
smadan27-Mar-06 2:56 
AnswerRe: Problem in using Timers Pin
BlackDice27-Mar-06 7:25
BlackDice27-Mar-06 7:25 
QuestionRe: Problem in using Timers Pin
smadan27-Mar-06 18:49
smadan27-Mar-06 18:49 
QuestionAnagram Algorithm Pin
martin_hughes27-Mar-06 2:38
martin_hughes27-Mar-06 2:38 
AnswerRe: Anagram Algorithm Pin
leppie27-Mar-06 3:32
leppie27-Mar-06 3:32 
AnswerRe: Anagram Algorithm Pin
Michael Potter27-Mar-06 3:32
Michael Potter27-Mar-06 3:32 
I have done this in the past for a Scrabble solver. You can uncomment the line; //retval.Add(current); if you want to see all possible sequences for a scrabble type solution (i.e. solutions that don't use all of the letters). If your word contains duplicate letters, you will have to sort the returned array and take out the duplicate string results.

private List<string> GetAllSequences(string str)
{
    List<string> retval = new List<string>();
    if (str.Length > 0)
    {
        if (str.Length == 1)
        {
            retval.Add(str);
        }
        else
        {
            string current;
            string theRest;
            for (int i = 0; i < str.Length; i++)
            {
                current = str.Substring(i, 1);
                //retval.Add(current); 
                theRest = str.Remove(i, 1);
                foreach (string appender in GetAllSequences(theRest))
                {
                    retval.Add(current + appender);
                }
            }
        }
    }
    return retval;
}

Questionembed flash object? Pin
Dave McCool27-Mar-06 2:23
Dave McCool27-Mar-06 2:23 
QuestionDataGrid, WinForm - how do I set column width to &quot;AutoFit&quot;? Pin
devvvy27-Mar-06 1:40
devvvy27-Mar-06 1:40 
AnswerRe: DataGrid, WinForm - how do I set column width to &quot;AutoFit&quot;? Pin
sathish s27-Mar-06 2:00
sathish s27-Mar-06 2:00 
QuestionSynchronized painting Pin
magja27-Mar-06 1:33
magja27-Mar-06 1:33 
Question.NET profiling -- request recommendation Pin
spin vector27-Mar-06 1:19
spin vector27-Mar-06 1:19 
AnswerRe: .NET profiling -- request recommendation Pin
Nicholas Butler27-Mar-06 1:46
sitebuilderNicholas Butler27-Mar-06 1:46 
QuestionC# - Crystal Reports Problem Pin
Abhijeet Ballal27-Mar-06 0:44
Abhijeet Ballal27-Mar-06 0:44 
AnswerRe: C# - Crystal Reports Problem Pin
V.27-Mar-06 1:11
professionalV.27-Mar-06 1:11 
GeneralRe: C# - Crystal Reports Problem Pin
Abhijeet Ballal27-Mar-06 1:25
Abhijeet Ballal27-Mar-06 1:25 
GeneralRe: C# - Crystal Reports Problem Pin
V.27-Mar-06 1:30
professionalV.27-Mar-06 1:30 
QuestionDownloading a File Pin
SreekanthJ27-Mar-06 0:31
SreekanthJ27-Mar-06 0:31 
AnswerRe: Downloading a File Pin
Guffa27-Mar-06 2:52
Guffa27-Mar-06 2:52 
QuestionLike in Outlook Pin
naglbitur26-Mar-06 23:23
naglbitur26-Mar-06 23:23 
AnswerRe: Like in Outlook Pin
HakunaMatada26-Mar-06 23:55
HakunaMatada26-Mar-06 23:55 
GeneralRe: Like in Outlook Pin
naglbitur27-Mar-06 4:47
naglbitur27-Mar-06 4:47 
QuestionHow hard can it be..? Pin
magja26-Mar-06 23:08
magja26-Mar-06 23:08 
AnswerRe: How hard can it be..? Pin
mav.northwind27-Mar-06 0:42
mav.northwind27-Mar-06 0:42 

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.