4,439 Posted Topics
Although [url=http://en.wikipedia.org/wiki/Roman_numerals]roman numerals[/url] sneak in our lives from time to time, we(luckily) don't use them very often. Probably the reason why the Romans where not that good at calculating things. That changed, more than 1000 years later, with [url=http://en.wikipedia.org/wiki/Fibonacci]this person[/url] who introduced to the Western world the number system we … | |
Re: Too many while loops! Use one loop on line 15: [B]while (response != 'Z')[/B] and start arranging your code from there. | |
Re: Explain: What type is a [B]WindowsForm[/B]? When I use a form it is normally derived from the Form class. A class that lives in the System.Windows.Forms namespace. | |
Re: [COLOR="Green"]fine and good?[/COLOR]So do you know of any [COLOR="green"]coarse and bad [/COLOR]controls? BTW you could find this out using the free download, or build your own custom controls if you like tto. | |
Re: Sorry : may be deleted, posted in wrong thread.:sad: | |
Re: You cannot declare other methods inside a method in a C-like language. Use Pascal or Modula-2 if you like to do that. A possible solution to your post might be: [CODE=C#]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int … | |
Re: Using VS 2010 pro. With my installation, the option to [I]Save all changes[/I] was set by default. | |
Re: [url=http://en.wikipedia.org/wiki/Calvados_(brandy]Calvados[/url], sometimes too many :S | |
Re: Second Life is already dead, others to follow I guess. Count me in. | |
Re: In the click events of all your buttons, you could keep track of the time the button was pressed. | |
Re: What if someone removed your iconfile? It is a bad thing to do believe me. The best way to store your icons is in the application! Your project probably contains a Properties map, which contains something called resources. Open it and add your icons. You can watch [url=http://msdn.microsoft.com/nl-be/vcsharp/bb798026]this video[/url] to … | |
Re: IMO a PictureBox is specially designde to show pictures.. The Image property will be empty or NULL or what ever if you just draw a rectangle or whatever in it. | |
Re: You cannot initialise a field that way, but this is perfectly legal: [CODE=c#] public class Base { public int A; } public class Derived: Base { public void MyMethod() { A = 10; } }[/CODE] | |
Re: Why are you calling Main in yourMain method on line 16? Tip: have a look at this:[url]http://msdn.microsoft.com/en-us/library/system.char.isletter(VS.71).aspx[/url] | |
Re: A calendar is a wonderfull thing. With months of 31 days we soon have New Yearsday in the middle of summer! 12*31 being 372. | |
Re: As for a language to do my project in I should choose [url=http://en.wikipedia.org/wiki/Brainfuck]this one[/url]. | |
I saw a thread lately on this site to rotate an integer. Seemed like a fun project to do. There are probably more efficient solutions out there but this is mine, and indeed it was fun! It is mostly a demo on how you could use the less known shift … | |
Re: You could start reading this [url]http://msdn.microsoft.com/en-us/library/ms172492.aspx[/url] | |
Re: What have you already tried for yourself? Glad to comment on that! | |
Re: To my knowledge, MonoDeveleop seems already multiplatform. Have a look: [url]http://monodevelop.com/[/url] | |
Re: Line 3 : [COLOR="Red"][B]sql statement[/B][/COLOR] is no code in whatever computer language, so it is very hard to translate.. You could just as well try to translate a poem to C#, it will not work. | |
Re: You could use a scanner: [url]http://www.daniweb.com/software-development/csharp/code/217185[/url] | |
Re: [QUOTE=Momerath]1: Brace on following line (sucks)[/QUOTE] Don't agree, code with brace on next line makes everting much clearer for me.:| I know it is the style also used in the K&R book, and in the past I hapened to use alot of BEGIN and ENDs:D | |
Re: This is the code for a console calculator I posted here. It knows what a named variable is and has a notion of functions. You could try to add an If statement or a loop statement to it. [url]http://www.daniweb.com/software-development/csharp/code/217185[/url] [url]http://www.daniweb.com/software-development/csharp/code/217186[/url] [url]http://www.daniweb.com/software-development/csharp/code/217187[/url] I hope it will give you a little insight … | |
| |
Re: I like all music! As long as it is good music.:) This can be classical : Bach This can be jazz : Miles Davis This can be blues : BB King This can be rock : Neil Young This can be ... this list is not exhaustive | |
Re: Think line 8 of your first code post never gets executed. j=19 and so is Columns.Count so the condition in youfor statement: j < dataGridView1.Columns.Count; will end the for loop. BTW. It is a bad habit to use hardcoded numbers in your code. But I confess, sometimes I still have … | |
Re: Wow, man. Your fantasy must be really extraordinary! Why don't you throw it in the group. Let us share your deepest thoughts first. | |
Re: Doubles are not "exact" numbers. You are confronted with rounding errors. Try this: It will not give you what you expected: [CODE=c#]double d = 0.0; for (int i = 0; i < 100000; i++) { d = d + 1000000.23; } MessageBox.Show(d.ToString());[/CODE] | |
Re: If I fotograph the sun, the picture is overexposed. Did they use some sort of refraction filter? | |
Re: Could you tell us on which line you got the error? Obviously some object is not instantiated, but from your code it is hard to tell. | |
Re: Why are you posting twice? Why are you not using code tags? What exactly do you mean by "merging" points? | |
Re: Are you looking for something like this? [CODE=C#]private void button1_Click(object sender, EventArgs e) { // augment txbox1 value and put in txbox2 int id =int.Parse(this.textBox1.Text); ++id; this.textBox2.Text = id.ToString(); // if txbox1 contains 10001, txbox2 will now contain 10002 }[/CODE] | |
Re: [QUOTE]i want to filter the grid using the index selected with in a combobox[/QUOTE] That is a very noble goal to reach for, but could you also show us some code(in CODE TAGS!) how this filtering is supposed to look like? | |
Re: Although the layout could be better, [url=http://www.codeproject.com/KB/cs/codesamples.aspx]this [/url] should do the trick. | |
Re: Could be wrong here , but unless a dice has only 5 sides it should be randGen.Next(1, 7) instead of randGen.Next(1, 6) | |
Re: Why not use a DateTimePicker control to input a date, instead of a TextBox? A DateTimePicker has ValueChanged and Validating events you could use to check the date entered and act accordingly. | |
Re: You could also have a look in the code snippet section of the C# forum here. | |
Re: These postings on DaniWeb might help: [url]http://www.daniweb.com/software-development/csharp/code/335171[/url] [url]http://www.daniweb.com/software-development/csharp/threads/348696[/url] [url]http://www.daniweb.com/software-development/csharp/code/374216[/url] Or Google e.g.: [url]http://www.c-sharpcorner.com/uploadfile/raj1979/datagridview09052008041419am/datagridview.aspx[/url] | |
Re: Google. e.g. [url]http://ezinearticles.com/?What-is-the-Difference-Between-a-Software-Engineer-and-a-Computer-Programmer?&id=1899417[/url] | |
Re: Sure it are tabs? The only thing to find that out is by making a hexdump. | |
Re: I think if you use [url=http://msdn.microsoft.com/en-us/library/system.random.aspx]the Random class[/url] you can generate random strings, integers etc. | |
Re: Try nitting, you can learn the basics in a month. | |
Re: 0x23 is hexadecimal notation, 23 is decimal notation. In binary notation this gives: 00010111 = [B]0x17[/B] in hex = [B]23[/B] in decimal 00100011 = [B]0x23[/B] in hex = [B]35[/B] in decimal Perhaps a site like [url]http://www.computerhope.com/binhex.htm[/url] can help you to understand. | |
Re: Double clicking a Form in the Designer window will create a Load event and put you right in the source , ready to edit. | |
Re: [QUOTE=sknake]sure Eric Clapton's account has more than $4.10 [/QUOTE] Considering he played(Among others) with "The Yardbirds", "The Blues breakers" and "The Cream" that is a true statement :) | |
Re: If you have an icon editor, why not create a completely transparant icon? |
The End.