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

C#

 
AnswerRe: Dispose groupbox Pin
Abhinav S15-Apr-12 6:05
Abhinav S15-Apr-12 6:05 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 6:18
sitebuilderLuc Pattyn15-Apr-12 6:18 
AnswerRe: Dispose groupbox Pin
Abhinav S15-Apr-12 6:51
Abhinav S15-Apr-12 6:51 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 6:58
sitebuilderLuc Pattyn15-Apr-12 6:58 
GeneralRe: Dispose groupbox Pin
Abhinav S15-Apr-12 7:23
Abhinav S15-Apr-12 7:23 
AnswerRe: Dispose groupbox Pin
V.15-Apr-12 21:56
professionalV.15-Apr-12 21:56 
AnswerRe: Dispose groupbox Pin
Pete O'Hanlon15-Apr-12 23:45
mvePete O'Hanlon15-Apr-12 23:45 
Questionproblem in restoring mysql database Pin
altafmohd14-Apr-12 21:35
altafmohd14-Apr-12 21:35 
sir when i am running this code then process is throwing an exception ....and value of exit code becoming 1 ....i dont know why it is happening so ..plz help me ..
public void Restore()
       {
           try
           {

               string path;
               path = filetext.Text;
               StreamReader file = new StreamReader(path);
               string input = file.ReadToEnd();
               file.Close();

               ProcessStartInfo psi = new ProcessStartInfo();
               psi.FileName = @"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqlimport";
              // psi.FileName = "mysql";
               psi.RedirectStandardInput = true;
               psi.RedirectStandardOutput = false;
               psi.Arguments = string.Format(@"-u{0} -p{1} -h{2} {3}",userid, paswd, server, comboBox1.Text);
               psi.UseShellExecute = false;


               Process process = new Process();

               //process.StartInfo = psi;
              //process= Process.Start("IExplore.exe");
                  process = Process.Start(psi);
                  //process.WaitForInputIdle();

                      //process.PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal;
                      process.StandardInput.WriteLine(input);
                      process.StandardInput.Close();
                      process.WaitForExit();
                      process.Close();
                      MessageBox.Show("database is restored");

           }
           catch (IOException ex)
           {
               if (System.Diagnostics.Debugger.IsAttached)
               {
                   Console.WriteLine(ex.ToString());
               }
               else
               MessageBox.Show("Error , unable to Restore!");
           }
       }

AnswerRe: problem in restoring mysql database Pin
OriginalGriff14-Apr-12 22:30
mveOriginalGriff14-Apr-12 22:30 
GeneralRe: problem in restoring mysql database Pin
altafmohd14-Apr-12 22:41
altafmohd14-Apr-12 22:41 
QuestionRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 0:35
professionalEddy Vluggen15-Apr-12 0:35 
AnswerRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 0:46
altafmohd15-Apr-12 0:46 
GeneralRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 1:03
professionalEddy Vluggen15-Apr-12 1:03 
GeneralRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 1:19
altafmohd15-Apr-12 1:19 
AnswerRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 1:27
professionalEddy Vluggen15-Apr-12 1:27 
AnswerRe: problem in restoring mysql database Pin
Luc Pattyn15-Apr-12 3:19
sitebuilderLuc Pattyn15-Apr-12 3:19 
GeneralRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 5:04
altafmohd15-Apr-12 5:04 
AnswerRe: problem in restoring mysql database Pin
Bernhard Hiller15-Apr-12 21:18
Bernhard Hiller15-Apr-12 21:18 
QuestionHow well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 10:11
professionalRavi Bhavnani14-Apr-12 10:11 
AnswerRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 10:56
Alan N14-Apr-12 10:56 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 11:15
professionalRavi Bhavnani14-Apr-12 11:15 
GeneralRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 11:29
Alan N14-Apr-12 11:29 
AnswerRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 11:34
professionalRavi Bhavnani14-Apr-12 11:34 
GeneralRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 12:56
Alan N14-Apr-12 12:56 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 13:00
professionalRavi Bhavnani14-Apr-12 13:00 

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.