-
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:  It combines in it a relation between the number **e**, the number **Pi** … -
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 … -
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, … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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. … -
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 … -
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 … -
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 … -
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 = … -
Replied To a Post in Stick figure walking across screen C#
Here is code: -
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 … -
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} … -
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 … -
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 … -
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 … -
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 … -
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] = … -
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 … -
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 … -
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. -
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 … -
Replied To a Post in Allowing only Numeric values in a textbox in c#
sorry fat-finger combined with fuzzy thoughts. ...numerics -
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 … -
Replied To a Post in Allowing only Numeric values in a textbox in c#
I also want programmers to understand, when they get to keypress control, their responsibility on how their app acts, goes through the roof because you've disabled so many built in … -
Replied To a Post in Allowing only Numeric values in a textbox in c#
deceptikon: I noticed your tag line: "Respect is like a punch to the face. If you deserve it, you don't have to ask." It's interesting because a single post can … -
Gave Reputation to deceptikon in Allowing only Numeric values in a textbox in c#
> Help whom? The original poster is 3 years gone. The original poster isn't the only person a thread might help, that's why we don't close threads after they reach … -
Replied To a Post in Allowing only Numeric values in a textbox in c#
Sorry for being so discourtious, you're right, it's obvious my brain opperates at a different level. -
Replied To a Post in Allowing only Numeric values in a textbox in c#
Help whom? The original poster is 3 years gone. I certainly would be pissed at a control that didn't let me use the arrow keys, the backspace key, the delete … -
Replied To a Post in Dictionary from a text file
Sort of looks like a VB language version. Have no idea how that all works. In .NET you have Dictionary(TKey, TValue) Constructor (System.Collections.Generic) that can be used. This will NOT … -
Replied To a Post in Help
Of course you could get a single line instruction and use a loop by preceeding the above with for (; 1 == 2; ) ; You can make it a … -
Replied To a Post in Help
for the single line command challenge: Console.WriteLine(" 1\n 121\n 12321\n 1234321\n123454321\n 1234321\n 12321\n 121\n 1"); Of course that violates the "using a loop" constraint :) -
Replied To a Post in Help
Of course after posting, I see misspelling of "backwards" -
Replied To a Post in Help
No way would I try a one-liner. I tested this on 5 and 50 and both worked properly. /// <summary> /// Goes from 1 to 99, lists on Console the … -
Replied To a Post in Splitting a string, delimiters included
ddanbe: thanks for the endorsement. Caused me to relook at my code. Wait... That shouldn't work! Yep, didn't notice the last field isn't included in the List and it didn't … -
Gave Reputation to ddanbe in Splitting a string, delimiters included
Great work guys! But I guess we now can no longer speak of the great Ketsuekiame([look here)](http://www.daniweb.com/software-development/csharp/threads/469203/help/2#post2045989)but also of the great decepticon!Who clearly wins here. Wish I knew more about … -
Replied To a Post in Splitting a string, delimiters included
Whoops declare temp and never use it! -
Replied To a Post in Splitting a string, delimiters included
I didn't want to read the comments because they would probably come up with good answers and I didn't want to spoil my thoughts before trying something. There are several … -
Replied To a Post in C++ reverse numbers from array
Also, in search put a bool in your loop to exit your search when you find the number you are looking for. -
Replied To a Post in C++ reverse numbers from array
Andreas, Personally prefer: array2[j++]=array[i]; In your search function you have hardcoded 10. What happens when there are 5 items in the array? What happens when there are 20 and the … -
Replied To a Post in Squaring an integer with extensions
One of the nice things C# has is the XML documentation. What's nice about that is that it activates intellisence so you can document it. Renaming the int parameter as …
The End.