4,439 Posted Topics

Member Avatar for rminator

Hi rminator, me again. Did I not gave you this link? [url]http://www.drxudotnet.com/csharp_2dchart.html[/url] It contains code to draw two functions(sine and cosine) in the same graph. Something you want. If you consider a column of a DataTable with numeric values, this is just the same as some sort of math function. …

Member Avatar for ddanbe
0
617
Member Avatar for mitmehta22

Have fun with this: [url]http://www.daniweb.com/software-development/csharp/code/217223[/url] Also have a look here:[url]http://msdn.microsoft.com/en-us/library/system.timespan.aspx[/url]

Member Avatar for ddanbe
0
26
Member Avatar for yousafc#

Have a look here: [url]http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm[/url] Excel also supports DB conections.

Member Avatar for sknake
0
298
Member Avatar for Dr peter

Hi Dr Peter, welcome! :) Have a look here: [url]http://msdn.microsoft.com/en-us/library/system.random(v=VS.100).aspx[/url] and this: [url]http://www.csharp-station.com/Default.aspx[/url]

Member Avatar for shiva07
0
140
Member Avatar for kapojian

Read this also: [url]http://msdn.microsoft.com/en-us/library/aa691323(VS.71).aspx[/url]

Member Avatar for kapojian
0
328
Member Avatar for vaishnu

Use code tags if you send code! The use of a control's Invalidate method causes a redraw.

Member Avatar for vaishnu
0
166
Member Avatar for Dean_Grobler

The best books on evolution are already mentioned. A side note: Don't believe that we are stagnant as some of you say we can be. We are continuously evolving! You must use a larger timescale than one human life to grasp that idea. Take the medical world for instance: it …

Member Avatar for guest star
0
190
Member Avatar for hermann87

You gave the answers to your question yourself! Why not do something on: [B]Cloud computing and it's impact on mobile phones/mobile networks.[/B]

Member Avatar for hermann87
0
145
Member Avatar for zifina

A Label is just that: a Label. Add some scrollbars to your Form, or put your text in a TextBox and add some scrollbars there.

Member Avatar for zifina
0
3K
Member Avatar for WaltP
Member Avatar for FallonCurly
0
135
Member Avatar for complete
Member Avatar for Falcon25

[CODE=c#] long bigNum = 7; bigNum /= 2;[/CODE] After this bigNum will be 3, so you don't have to round! With two integers the / operator does integer division.

Member Avatar for Falcon25
0
231
Member Avatar for neknek

Well your program looks quite fancy to me. Did you ever consider using DataGridView? Look here to get you started: [url]http://www.daniweb.com/software-development/csharp/code/335171[/url] [url]http://www.daniweb.com/software-development/csharp/threads/348696[/url]

Member Avatar for Bridgekeeper
0
172
Member Avatar for ddanbe
Member Avatar for MagnetoM
Member Avatar for prvnkmr194

[QUOTE]and that software must me use less after specified period[/QUOTE] I'm not a native English speaking person, so please explain what you mean by the above sentence.

Member Avatar for ddanbe
0
146
Member Avatar for darkseid

You probably have defined a coord array but you forgot to instantiate its elements.

Member Avatar for ddanbe
0
207
Member Avatar for johang_80

Perhaps have a look at(to use with Remove) the IndexOf('(') and LastIndexOf(')') methods. Also the SubString method can be helpfull. Look up the details here: [url]http://msdn.microsoft.com/en-us/library/system.string_members(v=VS.90).aspx[/url]

Member Avatar for johang_80
0
411
Member Avatar for Jessurider

In a Console app this is not possible. Are you using a Forms app? To do it you have to cut your string in two. Look for the method Substring of the String class how to do that. See on MSDN.

Member Avatar for Jessurider
0
102
Member Avatar for MaggieLynn

Saying you are getting errors does not help us very much. Wich error and on wich line did it occur? If you posted your code in code tags we could see some line numbers.

Member Avatar for ddanbe
0
223
Member Avatar for MagnetoM

Look for Z-order. You have 2 methods(BringToFront and SendToBack) [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.control.bringtofront(v=VS.100).aspx[/url] Or did you mean Tab order?

Member Avatar for MagnetoM
0
119
Member Avatar for Arjun_Sarankulu

Would it not be easyer if you used 2 DateTimePicker controls, instead of two textboxes and two MonthCalendars? Look here for some samplecode:[url]http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.aspx[/url]

Member Avatar for ddanbe
0
184
Member Avatar for vincezed

Line 4: Ever tried to use [B]end = Convert.ToInt32(dt.Rows[count-1][2].ToString());[/B]?

Member Avatar for vincezed
0
3K
Member Avatar for insanepenguin

The for loop on line 10 never gets executed for i = 2, so will print out as prime. Check for it in the debugger by setting a breakpoint! Or do it with pencil and paper. You could speed up by printing out 2 in front of the loops(everybody knows …

Member Avatar for insanepenguin
0
139
Member Avatar for qwesr

If every sprite has its own probability method, I see no problem. Or does the movement of a sprite depends on the movement of the others?

Member Avatar for Momerath
0
150
Member Avatar for scrivomcdivo

Console.WriteLine("Week{0\tWeek{1}\tWeek{2}", 1, 3, 5); will print the line: [B]Week1 Week3 Week5[/B]

Member Avatar for ddanbe
0
276
Member Avatar for majorawsome

The C# compiler is very smart! It fills in the details for you. Internally it creates a private field Blah and expands the get and set in a normal way. It is just shorthand invented to make life easier, if you have to create a 100 or more of these …

Member Avatar for shiva07
0
174
Member Avatar for lianpiau

Have a look here: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.headercell.aspx[/url]

Member Avatar for lianpiau
0
162
Member Avatar for CeeGee

This gives no problems when I try it. Only some minor spacing problems in your ToString methods. See line 14 and 25.

Member Avatar for kvprajapati
0
182
Member Avatar for rminator
Member Avatar for ddanbe
0
53
Member Avatar for vaishnu

Hi vaishnu, welcome at DW. :) Consider deriving your button from an existing button. That way you get a lot of behaviour of the button for free. Have you already some code?

Member Avatar for vaishnu
0
140
Member Avatar for yousafc#
Member Avatar for yousafc#
0
97
Member Avatar for localp

That's C++ I guess, look here [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.clip.aspx[/url]

Member Avatar for ddanbe
0
122
Member Avatar for KushMishra

FYI: I started learning C# in 2008. Did not need it for my work, so I did a bit relaxed and more on a "hobby" basis. Still don't completly have it in my fingers, but Daniweb(and other resources like MSDN) are a great help!

Member Avatar for CsharpChico
1
163
Member Avatar for ddanbe

I find C# very well suited for doing math and all sorts of calculations, so here is an example. Just start a Console application and fill in the code. Have fun! The code also shows a use of delegates and some Console functions. If you don't know what the Newton-Raphson …

0
3K
Member Avatar for jmurph333

Or have a look at the example code here: [url]http://msdn.microsoft.com/en-us/library/system.console.cursorleft(v=VS.85).aspx[/url]

Member Avatar for jmurph333
0
233
Member Avatar for dawsonz

Do not understand anything you are saying. Perhaps ask in on the ASP forum? Do you mean to convert a Column of a DataGridView to an array?

Member Avatar for dawsonz
0
204
Member Avatar for CeeGee

Please use code tags! Instead of [B]Totalcost = perminuterate * lengthoftime;[/B] use [B]Totalcost = perminuterate[index] * lengthoftime;[/B] Now all you have to do is determine that index, wich depends on the area code input by the user and you can determine from your VaildAreaCode array. Success!

Member Avatar for ddanbe
0
706
Member Avatar for bhagawatshinde
Member Avatar for Arjun_Sarankulu

Or have a look in the C# code snippet section of DaniWeb: [url]http://www.daniweb.com/software-development/csharp/code/361925[/url] [url]http://www.daniweb.com/software-development/csharp/code/364073[/url]

Member Avatar for Arjun_Sarankulu
0
138
Member Avatar for de Source
Member Avatar for AAXXOO

Hi AAXXOO welcome at daniweb :) Unless your keyboard does not allow lower case typing: STOP SHOUTING!!! Also please read [url=http://www.daniweb.com/forums/faq.php?faq=daniweb_policies]the rules[/url].

Member Avatar for oredigger
0
109
Member Avatar for ginnntux

Why do you create a new Graphics object in every method? e.g. line 140, after the using clause the object will not exist anymore. If I where a method :twisted: I would just use the things passed to me, unless I was called Dispose or something...

Member Avatar for ddanbe
0
189
Member Avatar for poonamjadav
Member Avatar for zifina

Make your choice: [url]http://social.msdn.microsoft.com/Search/en-us?query=printing+in+c%23[/url]

Member Avatar for ddanbe
0
84
Member Avatar for geekme

Please elaborate, don't understand it very well. Do you have many projects in your solution?

Member Avatar for de Source
0
71
Member Avatar for rminator

To read a binary file you could use this: [url]http://msdn.microsoft.com/en-US/library/system.io.binaryreader(v=VS.100).aspx[/url] To drop a text file in a DataGridView I already gave a solution here: [url]http://www.daniweb.com/software-development/csharp/threads/367737/page2[/url] Success!

Member Avatar for rminator
0
142
Member Avatar for revjim44

Look in MSDN. You can find e.g. this: [url]http://msdn.microsoft.com/en-us/library/k6sa6h87%28v=VS.80%29.aspx[/url]

Member Avatar for ddanbe
0
182
Member Avatar for iamthwee

Did some basketball when I was young. Now I only practice "bedsports" and "weightlifting" = lift a glass of beer to the height of your mouth.;)

Member Avatar for hotmatrixx
0
140
Member Avatar for CeeGee

Remove line 10 Rename the method on line 11 to [B]InchesToFeet[/B] your assignment tells you to do so, why not do it then? Line 23 should read: [B]Console.WriteLine("{0} inches is: {1} feet and {2} inches", inches,feet, tInches);[/B]

Member Avatar for DaveAmour
0
895

The End.