4,439 Posted Topics

Member Avatar for cool_zephyr

@sirlink99: good, but should line 5 of your pseudocode not read **else** instead of **gen == 9**?

Member Avatar for cool_zephyr
0
209
Member Avatar for sash_kp
Member Avatar for danny.entico

Hi Danny, welcome to DaniWeb! Did you know there exists a [TimeSpan Class](http://msdn.microsoft.com/en-us/library/system.timespan.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1)?

Member Avatar for GeekPlease
0
105
Member Avatar for geraldike

When you can avoid VBA macros, avoid them. Excel has a great set of worksheetfunctions, among them : **MAX** and **INTERCEPT**. Hope it helps.

Member Avatar for ddanbe
0
177
Member Avatar for mr.unknown

In the third row u = 3 not i At that moment line 6 of the code reads for (i=1;i<=3;i++) and i starts being 1. So 1 2 3 gets printed, the i-for loop finishes and u will become 4. Hope it clears things out. :)

Member Avatar for sanjulovers
0
185
Member Avatar for ariarman

Read about ADO.NET. [Click Here](http://social.msdn.microsoft.com/Search/en-US?query=ado.net&ac=3)

Member Avatar for ddanbe
0
32
Member Avatar for riahc3

Perhaps you can use Excel to store the data and connect to it via C#. You could perhaps also have a look [here](http://www.daniweb.com/software-development/csharp/threads/224213/can-a-dataset-be-used-as-a-database)

Member Avatar for amateurmosta
0
125
Member Avatar for GeekPlease

[Click Here](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_tutorials.htm) for some example code.

Member Avatar for GeekPlease
0
691
Member Avatar for new_developer

Line 51: 1/2 is integer division. So the outcome multipied with whatever will be zero! Use 0.5 or 1.0/2 instead.

Member Avatar for new_developer
0
184
Member Avatar for vishalonne
Member Avatar for ddanbe
0
4K
Member Avatar for markyjj
Member Avatar for ddanbe
0
151
Member Avatar for vishalonne

Perhaps you could use a DGVCombobox column? [Click Here](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn.aspx)

Member Avatar for ddanbe
0
150
Member Avatar for zachattack05
Member Avatar for sanaQ

Change line 95 to **progressBar1.Value = listBox1.Items.Count;** progressBar1.Maximum should be set to the total numbers of tasks somewhere.

Member Avatar for ddanbe
0
868
Member Avatar for GeekPlease

I would try to use a paging technique. Google paging DGV or something. Hope it helps.

Member Avatar for GeekPlease
0
182
Member Avatar for vishalonne

You can adress the cells of a DGV somewhat like, you can do it in Excel. Use something like **myDGV.Rows[i].Cells[j].Value = myValue.ToString();** i and j are zero based.

Member Avatar for ddanbe
0
210
Member Avatar for manoj_582033

I had to look for it, but [click here](http://msdn.microsoft.com/en-us/library/ms171619.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1)

Member Avatar for ddanbe
0
175
Member Avatar for Dewise

I had the first edition of [this book](http://www.apress.com/9781430242093). Somewhere in it a meal delivery system was used as a design example.IMHO (I'm no pro) I guess what you are trying to do is sophisticated enough. Success!

Member Avatar for pritaeas
0
300
Member Avatar for ToniSoft

Try to keep the use of **goto** to a strict minimum. The way that it is used in your code is nice and clean, but we don't want to return to spagetti code BASIC I hope. There is also [this snippet](http://www.daniweb.com/software-development/csharp/code/371819/code-template-for-a-menu-in-a-console-application) with an example of how you could code a …

Member Avatar for ddanbe
0
212
Member Avatar for PM312

[Click Here](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx) as a start.

Member Avatar for PM312
0
183
Member Avatar for pearl doll

Cube for integers without multiplication: static int cube(int x) { int s = 0, c = 0; for (int i = 0; i < x; i++) { s += x; } for (int i = 0; i < x; i++) { c += s; } return c; }

Member Avatar for ddanbe
0
145
Member Avatar for Stuugie

Someone once said(don't know who) : "As soon as you are born you are busy dying." So I don't worry getting older, it is an inescapable fate that awaits us all. And there is some other positive news! It has to stop sooner or later... I wear glasses, probably because …

Member Avatar for BigPaw
0
439
Member Avatar for Landoro
Member Avatar for raptr_dflo
0
282
Member Avatar for sujanthi.kumari

Line 26 of the OP code **else if(income>=70,000 && income >=50,001)** coulde be written as **else if( income >=50001)** Same for the rest of the else ifs

Member Avatar for new_developer
0
182
Member Avatar for kamalashraf

> but i meet some errors Could you please state the kind of errors you are encountering?

Member Avatar for tinstaafl
0
270
Member Avatar for o Chantelle o

Not all colors have a name. With all the combinations of 255,255,255 integers you can form more than 1,5 million colors. There is however an enumeration that lists all the colors that have a name [Click Here](http://msdn.microsoft.com/en-us/library/system.drawing.knowncolor.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1)

Member Avatar for o Chantelle o
0
2K
Member Avatar for Anark10n

> this same code works as intended on another friend's machine, running the same software Strange. Did you ever encounter a **courses** variable that is both smaller than 4 AND greater than 6? Smaller than 4 OR greater than 6 is possible.

Member Avatar for rubberman
0
325
Member Avatar for anandprk

Of course you can! Start a loop in the button click handler to print a report for every employee.

Member Avatar for ddanbe
0
33
Member Avatar for omgnametaken

Your while loop never gets executed with the condition **temp > 23** and temp being equal to **5**

Member Avatar for ddanbe
0
106
Member Avatar for vishalonne
Member Avatar for tinstaafl
0
668
Member Avatar for minitauros

@Dani > In NYC it's called taking public transportation. I've never heard of "public transport". Transport is a verb, as in to transport something. Verbs can be used as nouns: [see here](http://www.enchantedlearning.com/wordlist/nounandverb.shtml) I think I'm beginning to agree with AD more and more... ;)

Member Avatar for Ancient Dragon
0
370
Member Avatar for treasure2387
Re: MSIL

You could write "hello world" programs in each of the languages. Then examine each .exe produced with the IL Dissasembler tool to see if there is a difference in the MSIL code produced.

Member Avatar for treasure2387
0
156
Member Avatar for nitish.mohiputlall
Member Avatar for zachattack05

I guess you mean merging instead of wrapping? DaniWeb has a solution :[Click Here](http://www.daniweb.com/software-development/csharp/threads/371682/how-to-merge-specific-cells-in-runtime-in-datagridview)

Member Avatar for zachattack05
0
267
Member Avatar for blackcathacker

Just give it a try yourself. Come back here if you encounter any problems. Success! Oh, btw the 21st century started on 31 december 2000 one second after 23:59 hour.So whole of the year 2000, you still lived in the 20th century!

Member Avatar for ddanbe
0
506
Member Avatar for arba shahid
Member Avatar for castajiz_2

From your post I infer you are still struggling with the concept of recursion. [This snippet](http://www.daniweb.com/software-development/csharp/code/244162/square-root-calculation-with-iteration-and-recursion) might clarify things a bit, at least this is what I hope for. And BTW recursive hannoi towers are not easy, just as they are not difficult. They are often used as THE example …

Member Avatar for Momerath
0
161
Member Avatar for pwolf

Why don't you set breakpoints so that the program falls into the debugger? Because now you can see all the values of your variables and better find uot how your program works.

Member Avatar for ddanbe
0
250
Member Avatar for pabdylos

If you have studied, what is the proplem? What did you try, if you did encounter problems with what you have tried to work out, we are all so pleased to help you out. :)

Member Avatar for ddanbe
0
107
Member Avatar for selipar.jepun.712
Member Avatar for Schol-R-LEA
0
144
Member Avatar for treasure2387

[This lesson](http://csharp-station.com/Tutorial/CSharp/Lesson06) might explain it much better than me.

Member Avatar for ddanbe
0
141
Member Avatar for Vusumuzi
Member Avatar for Jx_Man
0
183
Member Avatar for ddanbe

Lately, I was reading [this snippet](http://www.daniweb.com/software-development/python/code/453788/moon-phase-at-a-given-date-python) by vegaseat. I thought, why not do it in C#? But I would also like to add lattitude and logitude in the celestial calculations and draw a picture of the moon at that moment and location. Now the calculations can get a bit involved …

1
2K
Member Avatar for castajiz_2

Another important thing to remember is that a recursive method must have a stopping condition here it is **k==m**. The method prints something and "bubbles up" to the calling method etc.

Member Avatar for ricky.subiantoputra
0
835
Member Avatar for JOSheaIV

Could you not use some sort of [standard deviation](http://en.wikipedia.org/wiki/Standard_deviation)? The picture with the smallest S.D. would be closest to your "mean" picture.

Member Avatar for JOSheaIV
0
225
Member Avatar for sumitrapaul123
Member Avatar for sumitrapaul123
0
216
Member Avatar for jaejoong
Member Avatar for jaejoong
0
290
Member Avatar for spowel4

I have this method and it works fine with me: public void PutData(int row, int col, string data) { worksheet.Cells[row, col] = data; } Also keep in mind that Cells is a Range object.

Member Avatar for spowel4
0
243
Member Avatar for nitin1

Tell us about what problem you have. [Click Here](http://www.freesoft.org/CIE/RFC/1832/10.htm) for some format info.

Member Avatar for jephthah
0
165
Member Avatar for sana.f.qureshi

To set a form non resizable, set the **MaximizeBox** property to **false** set the **FormBorderStyle** property to **FixedDialog**

Member Avatar for ddanbe
0
230

The End.