• Member Avatar for kplcjl
    kplcjl

    Began Watching Calculating a formula with complex numbers in it in C#

    One of the most, if not THE most, beautiful formulas in math, is from Euler: ![Euler_e_pi_i.png](/attachments/large/1/b32f45540a27b3efc328d14c60ee286c.png "align-center") It combines in it a relation between the number **e**, the number **Pi** …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Calculating a formula with complex numbers in it in C#

    I apparently haven't had the math education in the dark ages (1960s) that I thought I had. I know: i^2 == -1 I haven't seen i used as an exponential …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Playing With Pixels

    djjeavons asked "Why?", and I can't reply directly. I was trying to be helpful. This is an English site that is used internationally. When someone whose first language isn't English, …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Playing With Pixels

    To give you a little more insight in the English language, "in site" is basically a meaningless collection of two real words that would sound exactly like "insight". Site is …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in How to pass data between two forms in VB .NET

    Note that this same technique can be used between a dll and a FORM. Note that the dll will have to run on a separate thread, the same as the …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Replacing the for loop, using extensions

    Note that the name "Times" does not mean multiplication is being done, it means the routine defined is being repeated in a Linq expression, so maybe a better name may …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Transparency / Opacity of Textbox

    "I need to copy text from one place to another" Just to be sure, you meant TYPE a copy of the text. Others have addressed that. If you want to …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in How to short an array by recursion

    JC: There are articles galore about sorting routines because people are interested in how they work. My gripe is that the authors pick the bubble sort because it is the …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in How to return 3 values / recopying array value

    When the global variable was referenced, the poster meant to set the arrays as static in the class but outside the calling routine. Don't send the arrays as parameters, just …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in How to return 3 values / recopying array value

    Whoops I changed the arrays to ref, but didn't set them to be nullable, both the replacement and sending variable have to match their nullable state. A lot more thought …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in How to return 3 values / recopying array value

    /// <summary> /// It is really handy to use intellisense to define what your code does, /// especially when going back to code you wrote five years ago /// to …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in How to return 3 values / recopying array value

    FYI int[] IS a reference object, so if you change a value in the array, all objects that have access to the array also has access to the changes made. …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Stick figure walking across screen C#

    Agreed, that a while loop in the main routine could be used and therefore have the routine called once multiple times, but this was posted by a begining programmer, so …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Stick figure walking across screen C#

    Thanks Tinstaffl, For some reason I wanted to play around with the stick figure more. Do note in the IDE you can change the properties of the Console screen the …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Stick figure walking across screen C#

    Well, I obviously am too inexperienced with Daniweb controls. I tried the Code routine and that "Here is code" was the result. Then I used Inline Code and have had …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Stick figure walking across screen C#

    ` static void stick() { string head1 = " 0 "; string body1 = " !T!"; string legs0 = " / \\"; string legs1 = "/ \\"; string legs2 = …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Stick figure walking across screen C#

    Here is code:
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Stick figure walking across screen C#

    The Padleft solution is another alternative, I used the string you supplied but didn't use. I suspect it is more efficient using Pad. Your delay seemed really short and that …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in VB.NET - Simple Game

    Line 302 has: control.text = String.Concat("Level ", levelNum.ToString, " Lives ", lives.ToString, " Money: ", rewards.ToString) This would do the same thing in a shorter format: control.text = String.Format("Level {0} …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in 4th dimension

    One of the things that has always amazed me about most stories of time traveling machines is that you always end up at the same location where you started. (Except …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in 4th dimension

    @Grimjack, your novel had two separate points of view, because two people can't have the same point of view. In fact everyone experiences changing points of view as they go …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in 4th dimension

    It's been 45 years or so since I read flatland. My memory is fuzzy, so if you want to challenge me, I won't argue. Flatlanders never looked up or down …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Looping Object error ?

    I've got to learn to read the article headers!!! OK, how do you define an array object in JavaScript? Note that passing a string array for the second object, the …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Looping Object error ?

    PS In C#, you can't define "var[]", but you can: private static object[] lw(object bat, object bat2, object bat3) { object[] nw = new object[3]; nw[0] = bat; nw[1] = …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Looping Object error ?

    Don't know the language you are using. I do know C# and unless that is psudo-code, it won't even compile in C#. In C#, "this" is a keyword to point …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Speech synthesis in .NET, very easy!

    My version is Visual Studio 2010 Express. I believe that version is 4.0 but the express System Assembly does not include System.Speech. Dang. As far as the ASP.Net user, you …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Show new form and hide current form

    Sorry, Events and Event Handlers are two different things, you subscribe to the handler to call a routine when the event is triggered.
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Show new form and hide current form

    Bogdan, the author is creating two independent forms, that are designed to be independent. Event processors are delegate handlers. You subscribe software by adding it to the event. In this …
  • Member Avatar for kplcjl
    kplcjl

    Replied To a Post in Allowing only Numeric values in a textbox in c#

    sorry fat-finger combined with fuzzy thoughts. ...numerics
  • Member Avatar for kplcjl
    kplcjl

    Gave Reputation to Momerath in Allowing only Numeric values in a textbox in c#

    > their only options when mouseless is to hold down the power key (not counted as a keyboard key) for a minute or bring up task manager (no personal clue …

The End.