0
  private void _btnAccept_Click(object sender, EventArgs e)
    {
        //UserOntrip _pnl = new UserOntrip();
        //_pnl.Show();
        //System.Diagnostics.Process.Start(Application.StartupPath.ToString() + @"\_pnlUserOnTrip.exe");

        Process.Start(@"C:\Users\Gina\Desktop\FINAL PROJECT\LogInForm\LogInForm\UserOntrip.cs");

        LoadingScreen _load = new LoadingScreen();
        _load.Show();
    }
    //static void formopen
    //{
    //    ProcessStartInfo  _startinfo = new ProcessStartInfo();
    //    _startInfo.FileName = "UserOntrip.cs";
    //    _startInfo.Arguments = file;
    //    Process.Start(startInfo);
    //}

If you know how the driver side and user side of uber works. I want it to apply on my system. Where whenever i click the accept button from driver side project it will open a form from the userside project. What code should I add, in order to achieve such connection from project to project I hope you can help me this is the last piece for my system to work and be needing this to pass my re-defence tomorrow Thank you

  • You can't run a .cs file. You might need to check for online tutorials for how to build an Uber like apps. A hint: there should be a server that manages the communication between what happens on both applications (Driver, Passenger). – Ramy M. Mousa Oct 26 '17 at 01:05
  • there is no .exe on a form just project though sir. I also have a server now sir. – JustANewbie Oct 26 '17 at 01:06
  • You need to reference the other projects EXE or DLL. Then you can go `OtherProject.UserOntrip form1 = new OtherProject.UserOntrip(); form1.Show();` – Jeremy Thompson Oct 26 '17 at 01:08
  • when i done that sir the Userontrip opens in the driver side not in the user side – JustANewbie Oct 26 '17 at 01:09

1 Answers1

0

Tip :

It is easy if you add other project in your current solution then you can open any form or call any method easily.

Nirav Mistry
  • 949
  • 5
  • 15