Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
QuestionNetwork Bandwidth in Socket Programming Pin
SakthiSurya15-May-07 3:18
SakthiSurya15-May-07 3:18 
AnswerRe: Network Bandwidth in Socket Programming Pin
Dave Kreskowiak15-May-07 4:47
mveDave Kreskowiak15-May-07 4:47 
GeneralRe: Network Bandwidth in Socket Programming Pin
SakthiSurya15-May-07 18:52
SakthiSurya15-May-07 18:52 
GeneralRe: Network Bandwidth in Socket Programming Pin
Dave Kreskowiak16-May-07 13:19
mveDave Kreskowiak16-May-07 13:19 
QuestionHAShTable Value Pin
Jabeerbe15-May-07 3:11
Jabeerbe15-May-07 3:11 
AnswerRe: HAShTable Value Pin
Martin#15-May-07 3:16
Martin#15-May-07 3:16 
Questionsearch relational data in some tables and show result to treeView Pin
hdv21215-May-07 2:49
hdv21215-May-07 2:49 
QuestionAccess denied... Pin
simplicitylabs15-May-07 2:31
simplicitylabs15-May-07 2:31 
I'm attempting to write a file to a removable drive. When the app gets to the point where it creates the StreamWriter, it's stops and tells me access to the *whatever*:\ drive denied. I have administrator rights, and have also given the app admin rights by "running as admin". Is there something I should be doing besides the usual to get this working? Is what I'm doing correct?

private void button1_Click(object sender, EventArgs e)
{
    string usbDriveLetter = listBox1.SelectedItem.ToString();
    string sPath = usbDriveLetter;
    sPath = usbDriveLetter.ToString();
    StreamWriter sw = new StreamWriter(sPath);

...and so on


Thank you for your input.
AnswerRe: Access denied... Pin
sam#15-May-07 2:38
sam#15-May-07 2:38 
GeneralRe: Access denied... Pin
simplicitylabs15-May-07 2:49
simplicitylabs15-May-07 2:49 
GeneralRe: Access denied... Pin
sam#15-May-07 3:01
sam#15-May-07 3:01 
AnswerRe: Access denied... Pin
Martin#15-May-07 2:50
Martin#15-May-07 2:50 
GeneralRe: Access denied... Pin
simplicitylabs15-May-07 3:01
simplicitylabs15-May-07 3:01 
GeneralRe: Access denied... Pin
Martin#15-May-07 3:04
Martin#15-May-07 3:04 
QuestionCustom WinForm Inheritance Pin
3green15-May-07 2:27
3green15-May-07 2:27 
AnswerRe: Custom WinForm Inheritance Pin
Martin#15-May-07 2:34
Martin#15-May-07 2:34 
QuestionHow to load class file dynamically in C# .Net Pin
jmavn15-May-07 2:24
jmavn15-May-07 2:24 
AnswerRe: How to load class file dynamically in C# .Net Pin
Giorgi Dalakishvili15-May-07 2:29
mentorGiorgi Dalakishvili15-May-07 2:29 
GeneralRe: How to load class file dynamically in C# .Net Pin
jmavn15-May-07 2:34
jmavn15-May-07 2:34 
GeneralRe: How to load class file dynamically in C# .Net Pin
Giorgi Dalakishvili15-May-07 2:44
mentorGiorgi Dalakishvili15-May-07 2:44 
AnswerRe: How to load class file dynamically in C# .Net Pin
Guffa15-May-07 3:03
Guffa15-May-07 3:03 
GeneralRe: How to load class file dynamically in C# .Net Pin
jmavn15-May-07 18:20
jmavn15-May-07 18:20 
AnswerRe: How to load class file dynamically in C# .Net Pin
Guffa15-May-07 21:48
Guffa15-May-07 21:48 
GeneralRe: How to load class file dynamically in C# .Net Pin
jmavn15-May-07 18:27
jmavn15-May-07 18:27 
AnswerRe: How to load class file dynamically in C# .Net Pin
mike montagne16-May-07 6:53
mike montagne16-May-07 6:53 

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.