Click here to Skip to main content
16,020,840 members
Home / Discussions / C#
   

C#

 
GeneralRe: Linking forms Pin
Member 1524886721-Jun-21 15:23
Member 1524886721-Jun-21 15:23 
AnswerRe: Linking forms Pin
Gerry Schmitz22-Jun-21 6:32
mveGerry Schmitz22-Jun-21 6:32 
GeneralRe: Linking forms Pin
Member 1524886723-Jun-21 5:14
Member 1524886723-Jun-21 5:14 
QuestionNeed help with straight line depreciation coding Pin
Member 1524886721-Jun-21 8:38
Member 1524886721-Jun-21 8:38 
AnswerRe: Need help with straight line depreciation coding Pin
OriginalGriff21-Jun-21 9:21
mveOriginalGriff21-Jun-21 9:21 
GeneralRe: Need help with straight line depreciation coding Pin
Member 1524886721-Jun-21 9:24
Member 1524886721-Jun-21 9:24 
GeneralRe: Need help with straight line depreciation coding Pin
OriginalGriff21-Jun-21 9:58
mveOriginalGriff21-Jun-21 9:58 
GeneralRe: Need help with straight line depreciation coding Pin
Member 1524886721-Jun-21 10:54
Member 1524886721-Jun-21 10:54 
Getting it to work this way, just need to display as currency now. Thanks for looking.

<
strDisplay = "Year      Asset Value\r\n-------      ---------------";
               // pre-test loop
               double period = (dblPresentValue - dblSalvageValue)/intYearsOfDepreciation;

               int curYear = DateTime.Now.Year;
               while (intCounter < intYearsOfDepreciation) //loop control statement
               {
                   strDisplay += "\r\n"+ curYear.ToString() + ": " + dblPresentValue.ToString();
                   intCounter = intCounter + 1;
                   dblPresentValue -= period;
                   curYear++;
               }
               txtDisplay.Text = strDisplay;

GeneralRe: Need help with straight line depreciation coding Pin
Mycroft Holmes21-Jun-21 13:53
professionalMycroft Holmes21-Jun-21 13:53 
AnswerRe: Need help with straight line depreciation coding Pin
Gerry Schmitz22-Jun-21 6:27
mveGerry Schmitz22-Jun-21 6:27 
Questionc# language feature surprise using Linq ThenBy (observation) Pin
BillWoodruff20-Jun-21 23:40
professionalBillWoodruff20-Jun-21 23:40 
AnswerRe: c# language feature surprise using Linq ThenBy (observation) Pin
Richard Deeming21-Jun-21 1:29
mveRichard Deeming21-Jun-21 1:29 
GeneralRe: c# language feature surprise using Linq ThenBy (observation) Pin
BillWoodruff21-Jun-21 2:38
professionalBillWoodruff21-Jun-21 2:38 
Questioncan any one please explain how to connect to stratum 1 or 2 mining pool? Pin
Member 1336047319-Jun-21 7:11
Member 1336047319-Jun-21 7:11 
AnswerRe: can any one please explain how to connect to stratum 1 or 2 mining pool? Pin
OriginalGriff19-Jun-21 9:12
mveOriginalGriff19-Jun-21 9:12 
AnswerRe: can any one please explain how to connect to stratum 1 or 2 mining pool? Pin
BillWoodruff20-Jun-21 23:29
professionalBillWoodruff20-Jun-21 23:29 
QuestionPrinte page limit Pin
Member 1419221619-Jun-21 5:46
Member 1419221619-Jun-21 5:46 
QuestionDelegates, generic collection Pin
Samkelo3418-Jun-21 11:41
Samkelo3418-Jun-21 11:41 
AnswerRe: Delegates, generic collection Pin
OriginalGriff18-Jun-21 11:42
mveOriginalGriff18-Jun-21 11:42 
AnswerRe: Delegates, generic collection Pin
Mycroft Holmes18-Jun-21 12:39
professionalMycroft Holmes18-Jun-21 12:39 
JokeRe: Delegates, generic collection Pin
Peter_in_278018-Jun-21 15:03
professionalPeter_in_278018-Jun-21 15:03 
AnswerRe: Delegates, generic collection Pin
Richard MacCutchan18-Jun-21 22:20
mveRichard MacCutchan18-Jun-21 22:20 
Questionhow to remove node from string formatted xml using c# Pin
michael nabil18-Jun-21 11:07
michael nabil18-Jun-21 11:07 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard MacCutchan18-Jun-21 22:15
mveRichard MacCutchan18-Jun-21 22:15 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard Deeming20-Jun-21 23:22
mveRichard Deeming20-Jun-21 23:22 

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.