I am writing a program in C# that needs to access certain files on my network. However on certain computers the users password and username is not saved and therefore the network cannot be accessed till they enter their credentials. Also, on certain computers we must map the network to drive before it can even get accessed.
How can I write a program, that the popup which would normally appear when accessing a network will still appear, allowing the user to enter his credentials and for my C# to not crash. Also if there is a work around to the map network drive it would be appreciated as well.