4,439 Posted Topics

Member Avatar for ddanbe

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 …

Member Avatar for gracefull
0
1K
Member Avatar for CeeGee

Too many while loops! Use one loop on line 15: [B]while (response != 'Z')[/B] and start arranging your code from there.

Member Avatar for ddanbe
0
1K
Member Avatar for destruct0

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.

Member Avatar for sknake
0
162
Member Avatar for ahmed elweshahy

[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.

Member Avatar for ddanbe
0
60
Member Avatar for tapandesai007
Member Avatar for king03

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 …

Member Avatar for Mitja Bonca
0
88
Member Avatar for coroll

Using VS 2010 pro. With my installation, the option to [I]Save all changes[/I] was set by default.

Member Avatar for nmaillet
0
117
Member Avatar for pseudorandom21

[url=http://en.wikipedia.org/wiki/Calvados_(brandy]Calvados[/url], sometimes too many :S

Member Avatar for Niles64
0
331
Member Avatar for MooGeek
Member Avatar for Netcode
4
502
Member Avatar for ron92

In the click events of all your buttons, you could keep track of the time the button was pressed.

Member Avatar for ddanbe
0
21
Member Avatar for Panathinaikos22

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 …

Member Avatar for singh_soorma94
0
169
Member Avatar for galhajaj

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.

Member Avatar for ddanbe
0
157
Member Avatar for Panathinaikos22

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]

Member Avatar for ddanbe
0
278
Member Avatar for king03

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]

Member Avatar for duke_swh
0
388
Member Avatar for gogs85

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.

Member Avatar for ddanbe
0
95
Member Avatar for farhanrocks

As for a language to do my project in I should choose [url=http://en.wikipedia.org/wiki/Brainfuck]this one[/url].

Member Avatar for Rashakil Fol
-3
287
Member Avatar for trungdang
Member Avatar for ddanbe

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 …

Member Avatar for kel634
0
2K
Member Avatar for grvs

You could start reading this [url]http://msdn.microsoft.com/en-us/library/ms172492.aspx[/url]

Member Avatar for prit005
0
152
Member Avatar for sinthurika
Member Avatar for james6754

To my knowledge, MonoDeveleop seems already multiplatform. Have a look: [url]http://monodevelop.com/[/url]

Member Avatar for Ketsuekiame
0
121
Member Avatar for cocoll

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.

Member Avatar for ddanbe
0
234
Member Avatar for saqi1986

You could use a scanner: [url]http://www.daniweb.com/software-development/csharp/code/217185[/url]

Member Avatar for Ketsuekiame
0
737
Member Avatar for jotae
Member Avatar for C#Jonathan

[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

Member Avatar for ddanbe
0
193
Member Avatar for shridharmaster

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 …

Member Avatar for Momerath
0
345
Member Avatar for Lowchernhwee
Member Avatar for Serunson

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

Member Avatar for blackcathacker
0
1K
Member Avatar for symeramon

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 …

Member Avatar for symeramon
0
216
Member Avatar for Netcode

Wow, man. Your fantasy must be really extraordinary! Why don't you throw it in the group. Let us share your deepest thoughts first.

Member Avatar for iAssistant
0
94
Member Avatar for Roy Gourgi

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]

Member Avatar for shams.expert
0
254
Member Avatar for ithelp

If I fotograph the sun, the picture is overexposed. Did they use some sort of refraction filter?

Member Avatar for Ancient Dragon
-1
518
Member Avatar for BoBok2002

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.

Member Avatar for cudahead
0
234
Member Avatar for selvavijay1987

Why are you posting twice? Why are you not using code tags? What exactly do you mean by "merging" points?

Member Avatar for selvavijay1987
0
231
Member Avatar for shelly1234
Member Avatar for yousafc#

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]

Member Avatar for ddanbe
0
141
Member Avatar for orville

[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?

Member Avatar for ddanbe
0
75
Member Avatar for kool.net

Although the layout could be better, [url=http://www.codeproject.com/KB/cs/codesamples.aspx]this [/url] should do the trick.

Member Avatar for kumarvarshadr
0
503
Member Avatar for vishal1949

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)

Member Avatar for ddanbe
0
1K
Member Avatar for yousafc#

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.

Member Avatar for yousafc#
0
190
Member Avatar for king03

You could also have a look in the code snippet section of the C# forum here.

Member Avatar for ddanbe
0
162
Member Avatar for pg9

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]

Member Avatar for ddanbe
0
74
Member Avatar for spoonlicker

Google. e.g. [url]http://ezinearticles.com/?What-is-the-Difference-Between-a-Software-Engineer-and-a-Computer-Programmer?&id=1899417[/url]

Member Avatar for Fareena.B
0
485
Member Avatar for pseudorandom21
Member Avatar for pseudorandom21
0
196
Member Avatar for zachattack05

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.

Member Avatar for zachattack05
0
91
Member Avatar for ruchi18
Member Avatar for vaishnu

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.

Member Avatar for ddanbe
0
149
Member Avatar for udigold1

Double clicking a Form in the Designer window will create a Load event and put you right in the source , ready to edit.

Member Avatar for ddanbe
0
562
Member Avatar for jerome2467

[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 :)

Member Avatar for ddanbe
0
163
Member Avatar for strmstn
Member Avatar for k.d.m
0
1K

The End.