Click here to Skip to main content
15,909,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to show the progress bar while executing a batch file in C# windows forms? Pin
MumbleB23-Apr-09 2:13
MumbleB23-Apr-09 2:13 
GeneralRe: How to show the progress bar while executing a batch file in C# windows forms? Pin
Marc A. Brown23-Apr-09 2:29
Marc A. Brown23-Apr-09 2:29 
GeneralRe: How to show the progress bar while executing a batch file in C# windows forms? Pin
Rob Philpott23-Apr-09 2:56
Rob Philpott23-Apr-09 2:56 
GeneralRe: How to show the progress bar while executing a batch file in C# windows forms? Pin
Nitin Jenekar23-Apr-09 3:13
Nitin Jenekar23-Apr-09 3:13 
GeneralRe: How to show the progress bar while executing a batch file in C# windows forms? Pin
MumbleB23-Apr-09 3:36
MumbleB23-Apr-09 3:36 
AnswerRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Luc Pattyn23-Apr-09 3:52
sitebuilderLuc Pattyn23-Apr-09 3:52 
GeneralRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Nitin Jenekar23-Apr-09 19:32
Nitin Jenekar23-Apr-09 19:32 
AnswerRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Henry Minute23-Apr-09 5:06
Henry Minute23-Apr-09 5:06 
GeneralRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Nitin Jenekar23-Apr-09 19:37
Nitin Jenekar23-Apr-09 19:37 
GeneralRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Henry Minute23-Apr-09 23:51
Henry Minute23-Apr-09 23:51 
GeneralRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Nitin Jenekar24-Apr-09 2:26
Nitin Jenekar24-Apr-09 2:26 
GeneralRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Henry Minute24-Apr-09 2:37
Henry Minute24-Apr-09 2:37 
GeneralRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Nitin Jenekar24-Apr-09 2:47
Nitin Jenekar24-Apr-09 2:47 
AnswerRe: Show the progress bar while executing a batch file in C# windows forms? Pin
Nitin Jenekar20-May-09 0:35
Nitin Jenekar20-May-09 0:35 
QuestionERROR_FILE_NOT_FOUND while using GetUrlCacheEntryInfo() ? Pin
svt gdwl23-Apr-09 0:57
svt gdwl23-Apr-09 0:57 
QuestionNetwork Authority Pin
Programm3r22-Apr-09 23:50
Programm3r22-Apr-09 23:50 
Questionvsts 2008 unit testing Pin
BabyOreo22-Apr-09 22:44
BabyOreo22-Apr-09 22:44 
AnswerRe: vsts 2008 unit testing Pin
smurariu23-Apr-09 3:46
smurariu23-Apr-09 3:46 
GeneralRe: vsts 2008 unit testing [modified] Pin
BabyOreo23-Apr-09 21:04
BabyOreo23-Apr-09 21:04 
GeneralRe: vsts 2008 unit testing Pin
smurariu24-Apr-09 4:11
smurariu24-Apr-09 4:11 
GeneralRe: vsts 2008 unit testing Pin
BabyOreo26-Apr-09 22:47
BabyOreo26-Apr-09 22:47 
Thanks for previous answer. How about the following?

private void btnSave_Click(object sender, EventArgs e)
{
// Save mileage data
int i;
sfdFiles.Filter = "Files (*.gas)|*.gas";
sfdFiles.DefaultExt = "gas";
sfdFiles.Title = "Save Mileage File";
if (sfdFiles.ShowDialog() == DialogResult.OK)
{
StreamWriter sw = new StreamWriter(sfdFiles.FileName);

this.Text = "Gas Mileage-" + sfdFiles.FileName;
sw.WriteLine(numValues);
for (i = 0; i < numValues; i++)
{
sw.WriteLine(dates[i]);
sw.WriteLine(odometer[i]);
sw.WriteLine(gallons[i]);
}
sw.Close();
}
}

[TestMethod()]
public void btnSave_ClickTest()
{
frmMileage_Accessor target = new frmMileage_Accessor(); // TODO: Initialize to an appropriate value
object sender = null; // TODO: Initialize to an appropriate value
EventArgs e = null; // TODO: Initialize to an appropriate value
target.btnSave_Click(sender, e);
//Assert.Inconclusive("A method that does not return a value cannot be verified.");
}


I should initialize value to EventArgs? I have problem to assign value to EventArgs. How is the correct answer look like?
GeneralRe: vsts 2008 unit testing Pin
smurariu27-Apr-09 6:09
smurariu27-Apr-09 6:09 
GeneralRe: vsts 2008 unit testing Pin
BabyOreo28-Apr-09 17:35
BabyOreo28-Apr-09 17:35 
QuestionMachineKey configuration + Password recovery Pin
bonkers12322-Apr-09 22:38
bonkers12322-Apr-09 22:38 
AnswerRe: MachineKey configuration + Password recovery Pin
bonkers12322-Apr-09 23:32
bonkers12322-Apr-09 23:32 

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.