|
"Message Removed"
I really hate it when they do that.
|
|
|
|
|
Unfortunately one can not even respond any longer, there is a reply widget but it fails.
The message was:
Hey guys, I know this is simple stuff still would appreciate ur help, I assumed by declaring this method static It would solve the problem but hasn't ... Frown
I get this error: An object reference is required for the non-static field, method, or property
public string _variable = String.Empty;
public static string Variable
{
set { _variable = value; }
get { return _variable; }
}
|
|
|
|
|
So, he deletes the message to save himself the embarrassment, and you put it straight back?
You're a cruel man, Luc!
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
All I did was restore the value of your reply, which had become pointless when the question disappeared.
I also informed the OP of his bad manners using different means.
FWIW: why is the reply widget present, when replying to a removed message does not work??
|
|
|
|
|
|
|
it is much easier to install a little bot that copies new messages as soon as they appear...
|
|
|
|
|
Message removed, to preserve the removed content of the removed message. Which was removed at the request of a different, removed message.
Should I remove this message, just to be safe?
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
|
one should not reveal this. please remove your reply immediately!
|
|
|
|
|
|
I am still waiting...
BTW: now there's two of them to remove.
|
|
|
|
|
Please consider the previous message removed
|
|
|
|
|
<whisper>It's ok - I removed my response, quoting his removed message.</whisper>
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
message to all: now see how removing a question turns a thread into a mysterious sequence of sentences with a rather high level of probable offtopicness.
|
|
|
|
|
In C#, is there a simple way to resume an download over http, transparantly?
For example, i call a function to download a file x to drive c:. In the middle of the operation, I close the downloading program. The program would abort the transfer, but not delete the partially downladed file x.
I start the program, and once again call the function to download the same file x to driver c:. The function would realize that there is already a part of file x present on drive c: and then resume the download.
Can any one help me???
Thanking U,
Sunil G.
modified on Saturday, May 1, 2010 4:38 AM
|
|
|
|
|
Use the DownloadDataAsync method of the WebClient class to download files from a server.
|
|
|
|
|
Using WebClient you can download your file synchronously as well as asynchronously.
Download File Synchronously
using System.Net;
WebClient webClient = new WebClient();
webClient.DownloadFile("http://mysite.com/myfile.txt", @"c:\myfile.txt");
Download File Asynchronously
private void btnDownload_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
webClient.DownloadFileAsync(new Uri("http://mysite.com/myfile.txt"), @"c:\myfile.txt");
}
private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
progressBar.Value = e.ProgressPercentage;
}
private void Completed(object sender, AsyncCompletedEventArgs e)
{
MessageBox.Show("Download completed!");
}
Hope this will help!
Jinal Desai - LIVE
|
|
|
|
|
Madam I think u didnt get my point.
For example, I call a function to download a file x to drive c:. In the middle of the operation, I close the downloading program. The program would abort the transfer, but not delete the partially downladed file x.
I start the program, and once again call the function to download the same file x to driver c:. The function would realize that there is already a part of file x present on drive c: and then resume the download.
Thanking You,
Sunil G.
|
|
|
|
|
|
The HttpWebRequest. AddRange() [^] method allows you to resume downloading from a specific point.
/ravi
|
|
|
|
|
I would recommend using Socket Class which provides you to resume, stop your downloading or Uploading.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
i would like to know how to add a mousehovr effec to lines in the richtext control
Bad = knowing 2 much
|
|
|
|
|
You can use the GetCharIndexFromPosition() method of the rich text box to get the index of the character nearest to the specified position and then use this index to create a tooltip for each line.
See here for an example on how to use GetCharIndexFromPosition() .
|
|
|
|
|
I used the following code in a programming lesson to help me with a project but the lecturer says it is hard to maintain although I made it like that for better manageability:
static List<Person> _person = new List<Person>();
static void Main()
{
Dictionary<string, Action> methodList = new Dictionary<string, Action>();
methodList.Add("1", (() =>
_person.ForEach(s => Console.WriteLine("{0} {1}", s.Name, s.Title))));
_person.Add(new Person( "James","Prog" ));
_person.Add(new Person( "Claire","Illu"));
Console.WriteLine("Press 1 to show all data or 2 to quit");
string input = Console.ReadLine();
if (methodList.ContainsKey(input)) methodList[input]();
Console.Read();
}
|
|
|
|