Vb.Net and My -> C Sharp

M

Maury

Do you know if somewhere exists the conversione of
Vb.Net 'My' class
(or better My.Computer.Network.Ping)

in C Sharp?

Thanks

M.A.
 
G

Guest

Feel free to use the following (which is inserted into projects converted
with our Instant C# VB to C# converter) - this will allow you to make the
call in the same way:
namespace My
{
internal static class Computer
{
//Instant C# Notes:
//Calls to My.Computer.Clipboard have been redirected to
System.Windows.Forms.Clipboard
//Calls to My.Computer.FileSystem have been redirected to
Microsoft.VisualBasic.FileIO.FileSystem
//Calls to My.Computer.Registry have been redirected to
Microsoft.Win32.Registry

internal readonly static Audio Audio;
internal readonly static Clock Clock;
internal readonly static ComputerInfo Info;
internal readonly static Keyboard Keyboard;
internal readonly static Mouse Mouse;
internal readonly static string Name;
internal readonly static Network Network;
internal readonly static Ports Ports;
internal readonly static Screen Screen;

static Computer()
{
Audio = new Audio();
Clock = new Clock();
Info = new ComputerInfo();
Keyboard = new Keyboard();
Mouse = new Mouse();
Network = new Network();
Ports = new Ports();
Screen = Screen.PrimaryScreen;

ServerComputer ThisServerComputer = new
ServerComputer();
Name = ThisServerComputer.Name;
}
}
}

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top