Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
Questionusing webbrowser to Interact with a Flash control??? Pin
Member 65252411-Sep-09 6:54
Member 65252411-Sep-09 6:54 
QuestionDatabase connection question Pin
tonyrdye1-Sep-09 6:35
tonyrdye1-Sep-09 6:35 
AnswerRe: Database connection question Pin
musefan1-Sep-09 6:43
musefan1-Sep-09 6:43 
AnswerRe: Database connection question Pin
Kevin Marois1-Sep-09 18:24
professionalKevin Marois1-Sep-09 18:24 
AnswerRe: Database connection question Pin
seoamitk1-Sep-09 22:42
seoamitk1-Sep-09 22:42 
AnswerRe: Database connection question Pin
seoamitk1-Sep-09 23:06
seoamitk1-Sep-09 23:06 
QuestionGetting DBMS/Database server list using C# Pin
AhmedMasum1-Sep-09 3:59
AhmedMasum1-Sep-09 3:59 
AnswerRe: Getting DBMS/Database server list using C# Pin
Henry Minute1-Sep-09 4:17
Henry Minute1-Sep-09 4:17 
For SqlServer only:
private void GetServerList()
{
    DataTable dt;

    // Set local server as default
    dt = SmoApplication.EnumAvailableSqlServers(false);
    if (dt.Rows.Count > 0)
    {
        // Load server names into combo box
        foreach (DataRow dr in dt.Rows)
        {
            ServerNamesComboBox.Items.Add(dr["Name"]);
        }

        // Default to this machine
        ServerNamesComboBox.SelectedIndex
            = ServerNamesComboBox.FindStringExact(
            System.Environment.MachineName);

        // If this machine is not a SQL server
        // then select the first server in the list
        if (ServerNamesComboBox.SelectedIndex < 0)
        {
            ServerNamesComboBox.SelectedIndex = 0;
        }
    }
    else
    {
        ExceptionMessageBox emb = new ExceptionMessageBox();
        emb.Text = Properties.Resources.NoSqlServers;
        emb.Show(this);
    }
}


cannot help with non-SqlServer DBMSs.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: Getting DBMS/Database server list using C# Pin
AhmedMasum1-Sep-09 4:28
AhmedMasum1-Sep-09 4:28 
GeneralRe: Getting DBMS/Database server list using C# Pin
Henry Minute1-Sep-09 4:38
Henry Minute1-Sep-09 4:38 
GeneralRe: Getting DBMS/Database server list using C# Pin
AhmedMasum2-Sep-09 3:29
AhmedMasum2-Sep-09 3:29 
QuestionMemory leakage in c# multithreading application windows service application Pin
susantasamanta851-Sep-09 3:42
susantasamanta851-Sep-09 3:42 
AnswerRe: Memory leakage in c# multithreading application windows service application Pin
DaveyM691-Sep-09 3:46
professionalDaveyM691-Sep-09 3:46 
AnswerRe: Memory leakage in c# multithreading application windows service application Pin
Dave Kreskowiak1-Sep-09 5:12
mveDave Kreskowiak1-Sep-09 5:12 
Questionwebbrowser stealing focus Pin
yeah10001-Sep-09 3:14
yeah10001-Sep-09 3:14 
AnswerRe: webbrowser stealing focus Pin
OriginalGriff1-Sep-09 3:38
mveOriginalGriff1-Sep-09 3:38 
GeneralRe: webbrowser stealing focus Pin
yeah10001-Sep-09 3:42
yeah10001-Sep-09 3:42 
GeneralRe: webbrowser stealing focus Pin
OriginalGriff1-Sep-09 4:24
mveOriginalGriff1-Sep-09 4:24 
GeneralRe: webbrowser stealing focus [modified] Pin
yeah10001-Sep-09 19:35
yeah10001-Sep-09 19:35 
QuestionPrevent the ^ character from beeing entered in textbox. Pin
xkrja1-Sep-09 3:10
xkrja1-Sep-09 3:10 
AnswerRe: Prevent the ^ character from beeing entered in textbox. Pin
stancrm1-Sep-09 3:27
stancrm1-Sep-09 3:27 
AnswerRe: Prevent the ^ character from beeing entered in textbox. Pin
OriginalGriff1-Sep-09 3:31
mveOriginalGriff1-Sep-09 3:31 
GeneralRe: Prevent the ^ character from beeing entered in textbox. Pin
xkrja1-Sep-09 3:37
xkrja1-Sep-09 3:37 
GeneralRe: Prevent the ^ character from beeing entered in textbox. Pin
Henry Minute1-Sep-09 4:23
Henry Minute1-Sep-09 4:23 
Questionclient side validation for server control Pin
dotnetcsharpdev1-Sep-09 2:47
dotnetcsharpdev1-Sep-09 2:47 

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.