4,439 Posted Topics
Re: Download a free version of Visual Studio and look for the get started section. As for a book, so many good books on C# and .NET exist I could not tell you what is the best. | |
Re: Perhaps [url=http://msdn.microsoft.com/en-us/library/ms379572]this article[/url] is something for you. | |
Re: [QUOTE=Ryshad]I'm with nick on this one, if radiobuttons in panels automatically have one checked then this is new behaviour for 2010 because vs2005 and vs2008 have not exhibited it.[/QUOTE] Have to contradict you Ryshad. Because in a strange way I can use VS 2005,2008 and 2010 for the moment:icon_lol: The … | |
Re: [QUOTE=cwarn]But if you print it out with a huge dpi (dots per inch) then it is a perfect circle. This is because the ink is 3d. [/QUOTE] Why are you always referring to a circle using matter or particles? A circle is a mathematical object, like a line or hyperbola, … | |
Re: Nice snippet Ramy. The only thing I don't like is the MessageBox that says everything is correct! Only show a MessageBox if something is wrong. But I suppose you did it here for debugging (and other...) purposes. Gave you 4 stars. | |
Re: You can't. Create a private field or a property in your form that contains the two buttons, and you can go ahead. What you did was defining a variable local to the click method, once this method has finished, your local variable is vanished! ![]() | |
Re: You could read this article: [url]http://msdn.microsoft.com/en-us/magazine/cc301520.aspx[/url] And this is a comparision table between the two languages: [url]http://msdn.microsoft.com/en-us/library/yyaad03b(VS.71).aspx[/url] | |
Re: Perhaps there is also the possibility of using a DataSet. Look at this thread : [url]http://www.daniweb.com/forums/thread224213.html[/url] | |
Re: Perhaps you could try something like this: [CODE=c#]private void AddARow(int i) { DataGridViewRow Arow = new DataGridViewRow(); Arow.HeaderCell.Value = "R" + i.ToString(); this.Rows.Add(Arow); }[/CODE] If your row number i=4, your row header should display [B]R4[/B] | |
Re: You could try [url=http://www.amazon.com/Pro-2010-NET-Platform-Fifth/dp/1430225491/ref=sr_1_1?s=books&ie=UTF8&qid=1280846156&sr=1-1]this book. [/url] In the 2008 version it covers ALL the looping constructs of C# in just two pages, not in 20 or more like in some other books. | |
Re: Most of the time, an electrical engineer is not interested in the internals of an IC. It is a black box with pins. The function off each pin is what would interest him. Same for a String. It is an object(black box) with methods(pins) Lenght is a method so it … | |
Re: You could use the thread Sleep method, or you could use a Timer. | |
Re: The first character in your keep alive string is 0x66. This represents the printable character 'f' and won't be filtered out. Don't know exactly what you are trying to do with your ascii data, but it might be a good idea, not to filter out characters like 0x0d (carriage return). … | |
Re: Please use CODE tags if you post code! Here is an example of property syntax: [CODE=c#]class Person { private string _Name; //private field public string Name { get { return _Name; } set { _Name = value; } } }[/CODE] Use like this: [CODE=c#]Person.Name = "John"; //sets the private field … | |
Re: You could extract all the needed strings from your main string array and put them in a new string array. This would simplify things I guess. I write it out here to explain it to you, but you should use some sort of loop for this. [CODE=c#] newStr[0] = str1[0] … | |
Re: Another piece of advice: Give your variables meaningfull names! If I read your assignment, I would call the 2D array [B]StudentGrades[/B], instead of [B]average[/B]. The 1D array(wich you have not defined yet) I would call something like [B]AverageStudentGrades[/B]. Good luck! | |
Re: Yeah, I remember those days, back in the sixties. It was on a beach. Lots of mini scirts and bikinis floating around... But also lots of little transistor radios. They had a row of buttons on the top to select a radio channel. If you pushed one down, all the … | |
Re: I don't know your background, but perhaps it is better to start to walk, before you want to run? | |
Re: I you can think, well start to do so. It will help, believe me. | |
Re: I have no idea what you mean by 'new certifications', but yes, I tried Visual Studio 2010. | |
Re: This is a thread I started once, with somewhat the same problem. Perhaps it helps. [url]http://www.daniweb.com/forums/thread208555.html[/url] | |
Re: Perhaps have a look at this article: [url]http://www.codeproject.com/KB/cs/unmanage.aspx[/url] | |
Re: This is a variation of your CalculateAge method. I used the operator overloading features of DateTime, so I would not have to work with a huge boolean expression. Feel free to use it or not. [CODE=c#]public static int CalculateAge(DateTime birthDate) { DateTime testDate = new DateTime(DateTime.Today.Year, birthDate.Month, birthDate.Day); int years … | |
Re: Have a look at [url=http://www.daniweb.com/forums/thread297977.html]this thread[/url], it started just 3 days ago. Did you know this site has a search function? | |
Re: Elevator AI system. Say, 3 elevators and 10 floors. Fast food delivery system. Menu, orders, deliverers... LIMS (Laboratory Information Management System) | |
Re: [B]number [/B]is a string, returned from ReadLine. You first have to convert it to an integer value, before you can do calculations with your input. Use [B]int.TryParse [/B]or the [B]Convert.ToInt32 [/B]method to do that. | |
Re: Thanks for sharing this sad news with us Aia. May he rest in peace. | |
Re: Please use code tags if you post code. What label are you talking about? [B]else if (timeLeft == 0)[/B] is a bit meaningless, you can just as well say [B]else[/B] | |
Re: Use List (generic) instead of ArrayList. Use the [B]Contains [/B]method to check if an object is already in the list. | |
Re: You have in fact declared an array of 6 button objects. But you still have to allocate each button! Use: [B]mybutton[i] = new Button();[/B] | |
Re: Perhaps you could take a look at this: [url]http://msdn.microsoft.com/en-us/library/cc148994.aspx[/url] | |
Re: Unless you are studying how sort algorithms work, you are making your life very complicated. Use a generic [B]List [/B]instead of an [B]ArrayList[/B]. | |
Re: I never had that problem, they both look the same. If you are not feeling happy with the standard button, you can always come up with your own design and implement that. e.g. a round button. | |
Re: Perhaps have a look here: [url]http://www.daniweb.com/forums/thread196171.html[/url] | |
Re: This is some code from something I'm still working on, look at the color thingies: [CODE=c#]#region Initialisation of the DataGridView private void InitializeDataGridView(int rows, int columns) { this.AllowUserToAddRows = false; this.AllowUserToDeleteRows = false; this.AllowUserToResizeRows = false; this.EnableHeadersVisualStyles = false; this.SelectionMode = DataGridViewSelectionMode.CellSelect; this.EditMode = DataGridViewEditMode.EditOnKeystroke; this.Location = new System.Drawing.Point(0, 0); … | |
Re: Perhaps you could use a DataSet for it. Have a look at [url=http://www.daniweb.com/forums/thread224213.html]this[/url] thread. | |
Re: Hi, I'm not that much of a DB guy and still learning C# too. Two things: 1) If you would want to do something with LINQ, you could download VS C# 2008 express. It is still free I guess. 2) Trash the declaration of your loop variable on line 16! … | |
Re: Lots of tutorials on the web e.g. [url]http://www.functionx.com/csharp/index.htm[/url] | |
Re: A default constructor is never a bad idea. A default constructor never takes argument and could be used to set some field of your class to a default value. So you could include in your class, for example something like this: [CODE=C#] public cCOPY() { _directorypath = "MyDefaultDirPathName"; // etc. … | |
Hi all, IMHO it is a great omission that the graphic, showing ones post and reputation has no size labels. Any graph or chart is in fact useless without them. The only thing you can tell from it is that the post or rep is going up or down. BTW … ![]() | |
Re: [B]for(int i=2;i<x,i>x;i++) [/B]is wrong! Use [B]for(int i=2;i<x;i++)[/B] [B]while (z) return true;[/B] is wrong! When you come to this point in your code you know you have a prime so why not just use [B]return true;[/B] Btw. in your for loop you don't have to test all the way to x. … | |
Re: numericUpDown1.Value is ALWAYS of type [B]decimal [/B],so an [B]integer [/B]like 42 is auto converted, a [B]double [/B]like 42.0 is not, in that case you can use the M suffix (42.0M), for strings use conversion methods. | |
Re: [QUOTE=nick.crane]value += ((System.Windows.Forms.Button)sender).Text;[/QUOTE] Agree with you Nick, [I]all roads lead to Rome[/I] This would be my way: [CODE=c#]Button MyButton = sender as Button; value += MyButton.Text;[/CODE] | |
Re: This "designer.cs" file in Visual Studio is there just to relieve you of the burden to do it all by yourself. Like create a button, set the size, location, text, background etc. etc. But feel free to do all those things by yourself, so copy this file to your Main … | |
Re: Look [url=http://msdn.microsoft.com/en-us/library/system.string_members(VS.71).aspx]on this site[/url] for more information and examples, because I don't really get what it is you are saying. | |
Re: You could start [url=http://www.functionx.com/csharp/index.htm]here.[/url] | |
Re: Test if the Checked property of the checkbox is true or false and act accordingly. | |
Re: It is really hot overhere(34°C) but I still managed to do a bit of programming. Having no swimming pool around, what else can a man do? ;) So here it is, hope it helps. [CODE=c#]namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double[] D = { 5, … | |
Re: Try and Google DataGrid or better DataGridView? I case you don't know: every VS edition has a [B]Help [/B]menu with a [B]Search [/B]option. Try and click it. |
The End.