4,439 Posted Topics
Re: You could perhaps start with this snippet [url]http://www.daniweb.com/code/snippet217204.html[/url] | |
Re: I know this is not what you need, but take a look at this snippet [url]http://www.daniweb.com/code/snippet238532.html[/url]. It might give you some ideas on how to construct a barchart. It just so happens, I'm working on a forms barchart app. I have a form with a Panel and I use the … | |
Re: I'm not very familiar with XNA and game programming, but to give it a first shot(no pun intended;) ) I would look at [B]BoardCells[,] Cell = new BoardCells[11, 12];[/B] This array goes from 0 to 10 and from 0 to 11. What about Cell[0, 0]? You never seem to use … | |
Re: Remove line 52. At that point in your code, you know that [B]response [/B]is Z(see previous while) Besides that you are creating what is called an endless while here. It will go on printing the output of your program for ever. You need this output only once. B.T.W. be carefull … | |
Re: Look for GetItemCheckState method on MSDN. [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.getitemcheckstate(VS.85).aspx[/url] | |
Re: Perhaps you better ask your question(if any, see Ana D.) in the C# forum, instead of in the VB.NET forum. From the code you posted I can see that line 3 will definitly not work. [B]a[/B] is an integer you cannot pass the variable [B]int.Parse(comboBox1.Text)[/B] to an integer like you … | |
Re: "Shrani novo datoteko" and "Shrani besedilo" are of type ToolStripMenuItem. This type has also an Enabled property. If you want to disable both you perhaps better set the Enabled property to false of the "Shrani" ToolStripMenuItem. | |
Re: Hi Sidd. welcome here! Try this: [CODE=c#]using (StreamReader sr = new StreamReader ("myfile.dat")) { string s = sr.ReadLine(); //etc. }[/CODE] | |
Well, I don't think I can make this any simpler. I hope newbies in the C# language can learn from it. | |
Re: You could use the [B]FolderBrowserDialog[/B]. More info about this class can be found [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx]here[/url] | |
Re: Lines 69 to 79 in your PeriodicTable class, are not ok I think, why not simply say: [B]return m_theElements[atomicNum];[/B] Now the chance exists you return null which may crash your Print routine in the Element class. And if you are allowed to do so, look up the special [B]indexer [/B]syntax … | |
Re: What about an elevator managment system with 3 elevators and 7 floors? Decide which elevator goes where... Home meal delivery system? Reception, who is out where, menu, etc... | |
Re: I typed the title of your thread in Google. This is the first thing I found: [url]http://www.c-sharpcorner.com/UploadFile/jeradus/UsingLinkedListInCS11102005005525AM/UsingLinkedListInCS.aspx[/url] | |
Re: Name your dll as you want, as long as you follow the file naming rules. The only naming convention I know of in C# is that all interfaces files start with the capital letter I. I tend to start all my constants with a small letter c, but that is … | |
Re: Must be a nice person when he is sober. Drunks that far away are not always so "gentle". | |
Re: Click on this thread (a collegue of you?) [url]http://www.daniweb.com/forums/thread236306.html[/url] to find out more. Good luck! | |
Re: To me it does not matter how many pounds and ounces you have. Just use the right conversion factor to convert them to kilos. Your assignment states you have to use functions. C# has only notion of methods, but you could call a method that returns a value a function. … | |
Re: You are doing very well and listened very well to the advise of Ryshad! Carry on! | |
Re: Hi beta911, welcome here at DANIWEB. Could you be more specific please? The statement "It does not work" is a little vague... | |
Re: I read somewhere (maybe even on this site!) that express editions don't allow remote connections. | |
Hi all, For a combobox I was trying to imitate the behaviour of this code example:[url]http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.valuemember.aspx[/url] So I have this class: [CODE=c#]class Planet { private string myName; private double myGravitationalAcceleration; public Planet(string strName, double Acceleration) { this.myName = strName; this.myGravitationalAcceleration = Acceleration; } public string Name { get { return … | |
Re: Hi Byrne86 welcome at DANIWEB. On first inspection of your code I can tell you (unless I overlooked something) you are never calling your [B]Init [/B]and [B]Start [/B]methods. | |
Re: Hi Dekken, welcome here! perhaps you could use the DoubleBuffered property of the form by setting it to true. | |
Re: A book I personally liked very much when starting off with C# was : "[B]Beginning Visual C# 2005 Express Edition[/B] From Novice to Professional" by Peter Wright It is lightly written and easy readable, you are not dropped into the gory details of C# right at once. Look at [url]www.apress.com[/url] … | |
Re: Did the effort reading through this thread. Do not understand it very well. I think that Sknake and Ryshad did their best to tell you how to translate text to LaTeX format. (At least for division that is, if you want to do this full blown you need a text … | |
Re: Maybe you can do something with this [url]http://www.daniweb.com/code/snippet217084.html[/url]. There are other related threads here but I think you are smart enough to search this site and find out for yourself. | |
Re: Are you referring to a class field in C#? Then use property syntax to access it. Your code looks a bit strange, why are you making a [B]inputs [/B]collection and just put one item [B]input[/B] into it? | |
Re: >>StreamWriter sw = new StreamWriter(file); IMO a StreamWriter expects a filename as [B]of.FileName[/B], not a FileStream like [B]file[/B]. | |
Re: Besides the fact that there exists a generic [B]LinkedList [/B]class which can do these things for you, you might consider to put your code in CODE TAGS. Nobody will even try to feel the need to start reading your code if you don't. | |
Re: Every application under .NET gets compiled to IL (intermediate language) This is some sort of assembly language, yuo can see how it looks if you use the ILDASM tool. This IL gets executed by the JIT(just in time) compiler who translates it into native instructions for the cpu at hand. … | |
Re: No problem:) Depends indeed. If I have 2 or 3 buttons and some other controls, I let the IDE do his work. But in a case of 26 or more buttons it pays off to create them manually in a loop, so I guess you are right the way you … | |
Re: [B]Pin ball[/B] (see attachment) on [url=http://en.wikipedia.org/wiki/TI-99]this computer[/url] In general I don't like games anymore, they have become so "complicated" that it seems you have to spend the rest of your life with them... | |
Re: What is the part you are having trouble with? [I]its not workin right[/I] is a bit vague as a question. | |
Re: What do you mean by groupbox here? A groupbox control is meant to group other controls, most of the time radiobuttons. | |
Re: The confusion comes from the fact that Karyawan is a namespace which contains a class with the name Karyawan. If you have a namespace A with classes A and B, you would also say A.A and A.B | |
Re: The BitMap class has a SetPixel method. Call it like this SetPixel(x,y,aColor); x,y : coordinates in int. aColor : Color | |
Re: Hi, welcome to DANIWEB! Perhaps look at this thread [url]http://www.daniweb.com/forums/thread224213.html[/url] may help. This site also has a search function with perhaps lots of more information. | |
Re: Hello Maheed, welcome on this site. Seems like you where trying to start what is called a Console application. You have to put as a last line of code a "read" statement, so that the console window stays on screen. I usually use [B]Console.ReadKey();[/B] | |
Re: Hi welcome on DANIWEB! [B]Person Michael = new Person(Console.ReadLine());[/B] But then you must have a constructor in your class Person that accepts a string: [B]Person(string Name);[/B] | |
Re: Use this: dateTimePicker1.Value = dateTimePicker1.Value.AddDays(2.0); | |
| |
Re: Hi sumit21amig, welcome! Don't know what you are getting at here. * ALWAYS takes precedence over +. That is just standard math. The formulas you give will only have the same result if a,b and c have the same value or some of them are zero. Static data are always … | |
Re: Hi Sachin_coder, welcome at DANIWEB:) Your catch clause doesn't return anything, that's what caused your error. Either return someting or throw an exception. Please use code tags, the next time you post code! Read the rules. | |
![]() | |
Re: The 2 errors have the same cause. You are trying to compare a string with an int. You can compare strings with strings or ints with ints. The last error tells you, you are trying to assign a string to an int.BTW on line 57: you cannot use assign(=) here, … | |
Re: Perhaps use the NLST command instead? You could also use methods from the string class like SubString, Length etc. You could use the string Split method and split on a space character. The last string will be the filename. You could use a Regex expression. Hope this helps. | |
Re: You must first learn to crawl before you start to walk. Start to learn the difference between a Console application and a Windows Forms application. The code you posted is console code, you talk about form code?!? Besides: your spyware [COLOR="Red"]works fine [/COLOR](your own words) | |
Re: Open the file Read the file Put what you have read from the file on an ouputdevice, printer, screen,... |
The End.