4,439 Posted Topics

Member Avatar for aliskov

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.

Member Avatar for ddanbe
0
299
Member Avatar for mabshell

Perhaps [url=http://msdn.microsoft.com/en-us/library/ms379572]this article[/url] is something for you.

Member Avatar for ddanbe
0
92
Member Avatar for judithSampathwa

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

Member Avatar for judithSampathwa
0
1K
Member Avatar for babug

[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, …

Member Avatar for Sriman_Laxmi
0
1K
Member Avatar for Ramy Mahrous

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.

Member Avatar for ADias-Jayasinha
0
367
Member Avatar for trippinz

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!

Member Avatar for saravind84
0
179
Member Avatar for LevyDee

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]

Member Avatar for LevyDee
0
167
Member Avatar for GAME

Perhaps there is also the possibility of using a DataSet. Look at this thread : [url]http://www.daniweb.com/forums/thread224213.html[/url]

Member Avatar for PierlucSS
0
109
Member Avatar for empyrean

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]

Member Avatar for ddanbe
0
2K
Member Avatar for abdelhakeem

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.

Member Avatar for abdelhakeem
0
131
Member Avatar for swetz

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 …

Member Avatar for Geekitygeek
0
367
Member Avatar for wade2462
Member Avatar for Buizenamp

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). …

Member Avatar for Buizenamp
0
342
Member Avatar for campbell.st04

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 …

Member Avatar for Geekitygeek
0
147
Member Avatar for Don_leon

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] …

Member Avatar for Don_leon
0
168
Member Avatar for kavisg1

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!

Member Avatar for finito
0
1K
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
0
177
Member Avatar for rajag89

I don't know your background, but perhaps it is better to start to walk, before you want to run?

Member Avatar for rajag89
-1
167
Member Avatar for satish06
Member Avatar for ithelp
-1
86
Member Avatar for progcomputeach
Member Avatar for Suzie999
0
87
Member Avatar for SusanHAllen

This is a thread I started once, with somewhat the same problem. Perhaps it helps. [url]http://www.daniweb.com/forums/thread208555.html[/url]

Member Avatar for nick.crane
0
198
Member Avatar for saqib_604

Perhaps have a look at this article: [url]http://www.codeproject.com/KB/cs/unmanage.aspx[/url]

Member Avatar for saqib_604
0
104
Member Avatar for virusisfound

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 …

Member Avatar for ddanbe
0
362
Member Avatar for judithSampathwa

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?

Member Avatar for Duki
0
285
Member Avatar for Kakashi

Elevator AI system. Say, 3 elevators and 10 floors. Fast food delivery system. Menu, orders, deliverers... LIMS (Laboratory Information Management System)

Member Avatar for adampaulson
0
201
Member Avatar for EmmaH

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

Member Avatar for finito
0
132
Member Avatar for Aia
Member Avatar for sureronald
9
625
Member Avatar for Mattisc

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]

Member Avatar for Mattisc
0
208
Member Avatar for wolfje

Use List (generic) instead of ArrayList. Use the [B]Contains [/B]method to check if an object is already in the list.

Member Avatar for Geekitygeek
0
97
Member Avatar for buddy87

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]

Member Avatar for ddanbe
0
72
Member Avatar for Mattisc

Perhaps you could take a look at this: [url]http://msdn.microsoft.com/en-us/library/cc148994.aspx[/url]

Member Avatar for Geekitygeek
0
83
Member Avatar for mabshell

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

Member Avatar for Geekitygeek
0
95
Member Avatar for RoyMicro

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.

Member Avatar for xpentor
0
255
Member Avatar for virusisfound

Perhaps have a look here: [url]http://www.daniweb.com/forums/thread196171.html[/url]

Member Avatar for ddanbe
0
70
Member Avatar for virusisfound

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); …

Member Avatar for ddanbe
0
333
Member Avatar for litlemaster

Perhaps you could use a DataSet for it. Have a look at [url=http://www.daniweb.com/forums/thread224213.html]this[/url] thread.

Member Avatar for ddanbe
0
81
Member Avatar for Zinderin

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! …

Member Avatar for nick.crane
1
97
Member Avatar for Mattisc
Member Avatar for gidireich

Lots of tutorials on the web e.g. [url]http://www.functionx.com/csharp/index.htm[/url]

Member Avatar for Zinderin
0
163
Member Avatar for aragmus

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

Member Avatar for k.d.m
0
130
Member Avatar for ddanbe

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 …

Member Avatar for diafol
0
66
Member Avatar for spring sun

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

Member Avatar for technology
0
220
Member Avatar for AngelicOne

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.

Member Avatar for AngelicOne
0
711
Member Avatar for emclondon

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

Member Avatar for nick.crane
1
168
Member Avatar for kelskels

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 …

Member Avatar for ddanbe
0
129
Member Avatar for kalpa23

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.

Member Avatar for kalpa23
0
432
Member Avatar for Awah Mohamed

You could start [url=http://www.functionx.com/csharp/index.htm]here.[/url]

Member Avatar for Lusiphur
0
86
Member Avatar for anerchy

Test if the Checked property of the checkbox is true or false and act accordingly.

Member Avatar for anerchy
0
74
Member Avatar for Mikey12345

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, …

Member Avatar for ddanbe
0
1K
Member Avatar for programming2010

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.

Member Avatar for Duki
0
71

The End.