Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Zaith
  • Order by date
  1. Zaith

    Same Exception Error but different message

    You can use SocketErrorCode property of the SocketException class to determine the type of error. Use the System.Net.Sockets.SocketErrorCode Enumeration, e.g. ex.SocketErrorCode = System.Net.Sockets.SocketError.ConnectionRefused;
  2. Zaith

    Eject USB drive

    I'd look at Windows Management Instrumentation (WMI) if I were you. This guy uses various windows development kits to achieve what you want, http://www.codeproject.com/csharp/usbeject.asp though I think WMI might be a better approach if you've got time to figure it out.
  3. Zaith

    Windows Service Install problem

    Can't you just use a ServiceInstaller to do all this? It will auto-install/un-install your service after you run the msi in a setup project. http://msdn2.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller.aspx
  4. Zaith

    Open File Dialog - Display Multiple Times?

    Use ShowDialog(IWin32Window Owner) i.e. cd1.ShowDialog(this); This will make your main force the parent of the dialog window and will therefore push the parent form behind the dialog.

Part and Inventory Search

Back
Top