Click here to Skip to main content
15,898,790 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert image Pin
reza kia14-Feb-10 21:06
professionalreza kia14-Feb-10 21:06 
QuestionHow to read an image from an .xml file can we insert an image in .xml file Pin
koganti.pardhasaradhi13-Feb-10 19:26
koganti.pardhasaradhi13-Feb-10 19:26 
AnswerRe: How to read an image from an .xml file can we insert an image in .xml file Pin
dan!sh 13-Feb-10 20:07
professional dan!sh 13-Feb-10 20:07 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
koganti.pardhasaradhi14-Feb-10 3:46
koganti.pardhasaradhi14-Feb-10 3:46 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
harold aptroot14-Feb-10 3:53
harold aptroot14-Feb-10 3:53 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
dan!sh 14-Feb-10 3:58
professional dan!sh 14-Feb-10 3:58 
QuestionOnPaint() not being called for my custom control...! Pin
kupps13-Feb-10 17:54
kupps13-Feb-10 17:54 
QuestionQuestion on shutting down another program and wating for it to exit. Pin
Zundee13-Feb-10 16:47
Zundee13-Feb-10 16:47 
Forgive my newbie question. I am trying to learn C#. I have utterly confused myself in trying to restart a server console. I do not have the server start on this yet but it locks up every time I restart and I am not real sure way. It shutsdown ok but then never makes the check if the process has exited. Can anyone give me a nudge in the right direction? Thanks

public void restartserver(string serverrs, string serverloc)
{

    Process p = Process.GetCurrentProcess();
    Process[] servername = Process.GetProcessesByName(serverrs);
    IntPtr serverHandle = FindWindow(null, serverloc);
    if (serverHandle == IntPtr.Zero)
    {
        if (serverrs == "arcemu-world")
            {
                btnWorldStatus.Text = "World Server is not running";
            }
            else
            {
                btnLogonStatus.Text = "Logon Server is not running";
            }
        }
        else
        {

            SetForegroundWindow(serverHandle);
            SendKeys.SendWait("Shutdown{ENTER}");
            FreeConsole();
            bool mytrue = true;
            while (mytrue)
            {
                if (p.HasExited)
                {
                    mytrue = false;

                    if (serverrs == "arcemu-world")
                    {
                        btnWorldStatus.Text = "Closing....";
                    }
                    else
                    {
                        btnLogonStatus.Text = "Closing....";
                    }

                }
            }

        }


}

AnswerRe: Question on shutting down another program and wating for it to exit. Pin
tonyonlinux13-Feb-10 18:18
tonyonlinux13-Feb-10 18:18 
GeneralRe: Question on shutting down another program and wating for it to exit. Pin
Zundee14-Feb-10 11:27
Zundee14-Feb-10 11:27 
QuestionRe: Question on shutting down another program and wating for it to exit. Pin
22491713-Feb-10 18:22
22491713-Feb-10 18:22 
AnswerRe: Question on shutting down another program and wating for it to exit. Pin
dan!sh 13-Feb-10 18:51
professional dan!sh 13-Feb-10 18:51 
QuestionDELETE A PDF IN A WEBBROWSER Pin
Maria_Esteba13-Feb-10 14:49
Maria_Esteba13-Feb-10 14:49 
Answerrepost Pin
Luc Pattyn13-Feb-10 15:00
sitebuilderLuc Pattyn13-Feb-10 15:00 
GeneralRe: repost Pin
Maria_Esteba13-Feb-10 15:09
Maria_Esteba13-Feb-10 15:09 
GeneralRe: repost Pin
Garth J Lancaster13-Feb-10 16:14
professionalGarth J Lancaster13-Feb-10 16:14 
GeneralRe: repost Pin
Muammar©13-Feb-10 19:25
Muammar©13-Feb-10 19:25 
AnswerRe: DELETE A PDF IN A WEBBROWSER Pin
Muammar©13-Feb-10 19:40
Muammar©13-Feb-10 19:40 
GeneralRe: DELETE A PDF IN A WEBBROWSER Pin
Luc Pattyn13-Feb-10 23:16
sitebuilderLuc Pattyn13-Feb-10 23:16 
Questionhow to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal13-Feb-10 12:55
YawerIqbal13-Feb-10 12:55 
AnswerRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active13-Feb-10 14:13
mentorNot Active13-Feb-10 14:13 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal13-Feb-10 18:48
YawerIqbal13-Feb-10 18:48 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active14-Feb-10 3:09
mentorNot Active14-Feb-10 3:09 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal14-Feb-10 19:00
YawerIqbal14-Feb-10 19:00 
GeneralRe: how to handle optional parameters using DAAB ? plz guide [modified] Pin
Not Active15-Feb-10 1:27
mentorNot Active15-Feb-10 1:27 

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.