4,439 Posted Topics
Re: 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. … | |
Re: 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] | |
Re: Have a look here: [url]http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm[/url] Excel also supports DB conections. | |
Re: 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] | |
Re: Read this also: [url]http://msdn.microsoft.com/en-us/library/aa691323(VS.71).aspx[/url] | |
Re: Use code tags if you send code! The use of a control's Invalidate method causes a redraw. | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
| |
Re: Or use the Remove method and append a space. | |
![]() | Re: [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. ![]() |
Re: 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] | |
Short piece of code to add a "menu" to your Console application. | |
Re: Set the FormBorderStyle property of your form to None. | |
Re: [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. | |
Re: You probably have defined a coord array but you forgot to instantiate its elements. | |
Re: 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] | |
Re: 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. | |
Re: 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. | |
Re: 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? | |
Re: 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] | |
Re: Line 4: Ever tried to use [B]end = Convert.ToInt32(dt.Rows[count-1][2].ToString());[/B]? | |
Re: 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 … | |
Re: 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? | |
Re: Console.WriteLine("Week{0\tWeek{1}\tWeek{2}", 1, 3, 5); will print the line: [B]Week1 Week3 Week5[/B] | |
![]() | Re: 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 … |
Re: Have a look here: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.headercell.aspx[/url] | |
Re: This gives no problems when I try it. Only some minor spacing problems in your ToString methods. See line 14 and 25. | |
Re: Have a look here: [url]http://www.drxudotnet.com/csharp_2dchart.html[/url] | |
Re: 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? | |
Re: Do you know [url]http://en.wikipedia.org/wiki/Edgar_F._Codd[/url] ? | |
Re: That's C++ I guess, look here [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.clip.aspx[/url] | |
Re: 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! | |
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 … | |
Re: 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] | |
Re: 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? | |
Re: 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! | |
Re: Why not use a DatagridView instead? | |
Re: 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] | |
Re: Would a DataGridView not be a better idea? | |
Re: 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]. | |
Re: 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... | |
Re: [url]http://msdn.microsoft.com/en-us/library/ms364091(v=VS.80).aspx[/url] | |
Re: Make your choice: [url]http://social.msdn.microsoft.com/Search/en-us?query=printing+in+c%23[/url] | |
Re: Please elaborate, don't understand it very well. Do you have many projects in your solution? | |
Re: 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! | |
Re: Look in MSDN. You can find e.g. this: [url]http://msdn.microsoft.com/en-us/library/k6sa6h87%28v=VS.80%29.aspx[/url] | |
![]() | Re: 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.;) |
Re: 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] |
The End.