4,439 Posted Topics
Would I create "more" randomness if if I had the library random function selecting randomly a value from the logistic function,with initial values showing chaotic behaviour, which I then would use as a seed to the random function provided by the library? Phew, whole mouthfull I guess . . . … | |
Re: Nice! It is possible to turn this into an egg timer! | |
Re: How rude! You don't even make the effort to ask a decent question! | |
Re: The year 2012 was a leap year as will be the year 2016. Both years are not divisible by 100 or 400. | |
Re: Have you considered of using LINQ? | |
Re: Either choose VB2012 or C#2012. Not both, that would be confusing I guess. I would opt for C#, since you have a C and Java background. I'm a C# man, but if you want to go for VB.NET 2012, go for it! Happy programming! | |
Re: What are lines 27-29 doing in your button add method? My guess is that they somehow belong in your translate button event handler | |
Re: Your first example catches ALL exceptions. Your second example just catches one specific exception. You can have multiple catch clauses and you can even write your own exceptions derived from the Exception class. | |
Re: Perhaps [this recent post](http://www.daniweb.com/software-development/csharp/threads/451669/need-help-with-c-while-loop) can help you out. It discusses a while loop to read a file line by line. | |
Re: Beside a ContextMenu, you could make use of the following events: private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { // this will only work if the cell has content in it // use e.ColumnIndex and e.RowIndex determine the cell clicked } private void dataGridView1_MouseClick(object sender, MouseEventArgs e) { // use if … | |
I have no problem of putting a break statement in the default option of a **switch case** statement, just wondering why it is needed. Anyone any ideas? int a = 42; switch (a) { case 1 : case 2 : //statements for case 1 and 2 break; // probably more … | |
Re: In the previous century I made a Date and Calender app(try to calculate easter day!) as part of a bigger data manipulation application in the compagny where I worked. | |
Re: What about [this one?](http://apod.nasa.gov/apod/ap130401.html) | |
Re: Sounds like a really, really big, mega homework assignment to me.What have you tried for yourself so far? | |
Re: http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx | |
Re: I your case you probably don't need to convert a string to an integer. Console.WriteLine or Write take care of converting your int loop variable to a string, if needed. | |
Re: @deceptikon: Have this book on my amazon wish list! Is it really worth the buy, even for a non pro like me? | |
Re: A DataGridView has a default of textboxes, so you don't have to add one from the toolbox.[Click Here](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcolumn.aspx) | |
Re: @tinstaafl If you wander through my code snippets, you could see I have a great interest in charting. Thanks for the link. | |
Re: Try this: [CODE=c#]class Program { static void Main(string[] args) { Console.WriteLine("***original array***"); string[] strs = new string[4] { "one", "two", "two", "three" }; for (int i = 0; i < strs.Length; i++) { Console.WriteLine(strs[i]); } Console.WriteLine("***distinct array***"); var Results = strs.Distinct(); foreach (var item in Results) { Console.WriteLine(item); } Console.ReadLine(); … | |
Re: I like programming, it is not some sort of obsession. | |
Re: Did you know Google is your friend? Try **Genetic algorithm in C# source code** or something like that. Success! | |
Re: The obvious thing I can think off is there is something wrong in the calculations in your Financial class. The code you send us just fills in a DataGridView. | |
Re: A radiobutton is used in a group to turn one selection on and all the rest off. You better use one checkbox, to turn something on or off. | |
Re: A program to print out the squares of the numbers 1 to 9 can be really though if you're just starting to learn to program.(In any language) | |
Re: Is this a political issue? Or is Budget 2013 an application to manage your budget? | |
Re: Oh, Michael! You were feeling pain during a football game! Lucky you. Can you imagine the pain of a soldier with his legs bombded off in some kind of silly war? I think I can. I had my sick kidneys replaced by a newone. I can tell you I was … | |
Re: You could start by reading [this](http://msdn.microsoft.com/en-us/library/vstudio/94223t4d(v=vs.100).aspx) on how to read a string from a file. Then read about the string Split member [here](http://msdn.microsoft.com/en-us/library/system.string.aspx) | |
Re: Good question! I should create forms as I need them. Think for instance about a dialog form, informing the user that he has some options he can take, before finishing the application. Would you create such form at the start of the application? I see no need in doing so, … | |
Re: I was wondering why you created an extra variable **wks** because your Form appears to have an **ActiveSheet** field already. I also prefer to use the Cells object instead of the Range object, because you can easy loop through it if needed. Cells, is in fact also a Range object. … | |
Re: I started with 6 cans of beer. Then a bear was entering the room! I grabbed a bottle of wine and drunk it up all at once before te bear could grab me! Yes, I like beer and wine. I even like bears, the "teddy" kind that is. | |
Re: What comes up in your mind when you think about **something linked with the word puzzle** I'm not a native English speaker, but I guess by the word "the" you meant any kind of word puzzle. That what comes up in your mind is the project you want to make. … | |
Re: Maybe [this](http://en.wikipedia.org/wiki/MIX) could be a start, but I guess you are better of asking again in the computer science department of daniweb. | |
Re: No. A computer is not **human**, you cannot hurt it. You can smash it with a sledgehammer, it won't give a damn. | |
Re: Life consists mainly of walking down a road and taking choices. You can take the left road, or the right road. Whichever road you choose, you should never regret it, because it is impossible to return!(no programmers pun intended here.) Conclusion: my life is fine as it is, no regrets! … | |
Re: For your Invalue property on line 20(C# 3.0), you could also opt for [automatic properties](http://csharp.net-tutorials.com/csharp-3.0/automatic-properties/) | |
Re: Related thread: http://www.daniweb.com/software-development/csharp/threads/448777/sorting-arrays-without-array.sort#post1939882 | |
Re: Analogy: Supose I have a car that starts, but I tell you it won’t bring me from point A to point B. Would you know what was wrong? Could you solve my problem? Supose I would send you a picture of my not working car and you would immediately notice … | |
| |
Re: Did you try Dispose? | |
Re: Your first link does not seem to work. It also is not very clear what you are trying to do. | |
Re: What about [this?](http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list) | |
Re: You find yourself a computer language you feel comfortable with, you devise an algorithm to solve your problem, You have problems during your development stage and then you come back here, posting a question. We are all here to help you out then! | |
Re: What do you mean by "seems to not work..."? Explain EXACTLY what you mean by Aob(Is it a string? a char array? a sequence of zeros and ones?) We also have absolutely no idea what a **AxShockwaveFlash1.SetVariable** is? Could you elaborate on that please? | |
Re: I infer you are using some sort of microcontroller to drive the robot. Sugest to refer to the specific documentation for the microcontroller brand you are using. | |
Re: Why not simply use input[j] instaid of input.Substring(j,1) ? It would make your code easier to read. |
The End.