Simon Gamlieli

1

votes
1

answer
163

views

Why when trying to upload a video file to youtube i'm getting InvalidCredentialsException?

This is my code in form1: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using Google.GData.Client; using Google.GData.Extensions; using Google.GD...
Simon Gamlieli
1

votes
2

answer
65

views

Getting exception when trying to delete a line from a text file. How can i solve it?

In the top of form1: StreamWriter recentfiles; string[] lines; string line = null; int line_number = 0; string RecentFiles = ''; In the constructor: RecentFiles = @'e:\RecentFiles.txt'; if (!File.Exists(RecentFiles)) { recentfiles = new StreamWriter(RecentFiles); recentfiles.Close(); } else { lines...
Simon Gamlieli
-1

votes
2

answer
57

views

How can i display long units in MB and also displaying percentages progress in a progressBar?

I have this line: backgroundWorker1.ReportProgress((int)obj.BytesSent); BytesSent is a long var. I needed to cast it to (int) to report it. And now in the backgorund1 progresschanged event i want to display it as MB. For example 0.3MB 0.7MB 33MB instead displaying Bytes. private void backgroundWorke...
Simon Gamlieli