4,439 Posted Topics
Re: Instead of SSN = Convert.ToString(Console.ReadLine()); use taxArray[x].SSN = Console.ReadLine(); // readline already returns a string | |
Re: You can also read this: [url]http://www.functionx.com/csharp/Lesson21.htm[/url] | |
Re: Your terminology is a bit confusing. Are we talking about menus in an application or menus from a restaurant? | |
Re: Try this: [CODE=c#]String s = "12shshasj"; String newStr = String.Empty; if (char.IsDigit(s,0) && char.IsLetter(s,s.Length-1)) { newStr = s.Insert(0, "00"); }[/CODE] | |
Re: Try something like this: [CODE=C#]string str = dataGridView1.Columns[0].HeaderText;[/CODE] | |
Re: Your question is not very clear. Do you mean something like this: [url]http://msdn.microsoft.com/en-us/library/dsxfcba1.aspx[/url] | |
Re: This is a little tutorial: [url]http://www.switchonthecode.com/tutorials/wpf-tutorial-custom-control-templates[/url] You will find more if you google. | |
Re: On line 13 you called a method to give you the directoryname(GetDirectoryName), so that is what you get. | |
Re: You can perfectly develop C# applications using any texteditor you prefer(In the past I used [B]vi[/B] and I could still,use it for C#) Download a SDK from MS for free. The compiler command is [B]csc[/B], just try it out or dump it. | |
Re: Redesign and start all over, possibly taking some previous methods with you. | |
I mostly use Console or Forms applications in VS for my projects. Did anyone among you ever use an Empty Project when starting a new one? Well, it is as clean as you can get with Visual Studio! The world is at your feet! I use it mainly to test … | |
Re: Hi Sheila, I have not the faintest idea what a [B]tiny tots tee-ball league[/B] is so I'm affraid I cannot help you.:( | |
Re: Study this: [url]http://msdn.microsoft.com/en-us/library/ms173114.aspx[/url] | |
Re: Start here: [url]http://msdn.microsoft.com/en-us/library/k4s6c3a0.aspx[/url] | |
Re: [url]http://msdn.microsoft.com/en-us/library/sf985hc5.aspx[/url] | |
Re: [url]http://msdn.microsoft.com/en-us/library/sf985hc5.aspx[/url] | |
Re: Have a look at [B]DateTime [/B]members. Eg. the [B]Now [/B]property: [url]http://msdn.microsoft.com/en-us/library/system.datetime.now(v=VS.90).aspx[/url] BTW. I hate the word GUI, use UI instead! | |
![]() | Re: Have you a Player class? In it you could keep properties like the players hand, the players score etc. |
Ever wanted to know how to implement running lights? well here is your chance to find out. Open a new Forms application enlarge the Form a bit and drop a Panel and a Timer on it. Add the class ChasingLights to the solution, see code. Implement a form Load, panel … | |
Re: In [url=http://www.daniweb.com/software-development/csharp/code/231400]this snippet[/url] I use some special string effects. | |
![]() | Re: Anybody in for a shuffle? [url]http://www.daniweb.com/software-development/csharp/code/269487[/url] ![]() |
Re: IndexOf method:[url]http://msdn.microsoft.com/en-us/library/8bd0tetb(v=VS.90).aspx[/url] There is also a FindIndex method. | |
Re: [url]http://msdn.microsoft.com/en-us/library/6373h346(VS.80).aspx[/url] | |
Re: My car won't start!!! Help plz. Which car? What are the circumstances in which it won't start? etc. etc. Please refrase your question. | |
Re: Have a look at this: [url]http://www.codeproject.com/KB/webforms/Data_Relations.aspx[/url] Do you know aperson who calls himself "xanawa"? | |
![]() | Re: Hi Stow19, welcome here at Daniweb. Use something like this: [CODE=c#]string[] names = new string[playerNames.Length]; for (int i = 0; i < playerNames.Length; i++) { names[i] = "p" + i.ToString(); }[/CODE] ![]() |
Re: Have a look at this: [url]http://www.codeproject.com/KB/webforms/Data_Relations.aspx[/url] How is Christine btw? | |
Re: Why do you always say "need help ........"? It can well be you need help, but if you make the titles of your threads a bit more informative, you will get help sooner. :) In this case your title could have been "What is the advantage of C#?" | |
Re: To save the answer in sql server is possible. Show us your code so far. Please? :| | |
Re: So you want to open a console window after clicking a button in a forms application? | |
Re: Seeing your code, what do you mean by [B]open a class[/B]? | |
Re: Line 9 is wrong. Because you have to test that a string is equal to "sfere" or "cube" make them constants. Like this: [CODE=c#]const string aSfere = "sfere";[/CODE] | |
Re: Nothing ever seems to happen with the variable [B]moveSpace [/B]defined on line 4 | |
Re: Google will be your friend. Example : [url]http://social.msdn.microsoft.com/forums/en-us/winforms/thread/17DE0FDF-1F18-4100-B472-6FE65FB4B6AE[/url] | |
Re: If you open the properties of your console app and open the debug tab in the window that shows, you can set some command line arguments to test things out. Strange that you have to use some weird thing like a CmdParser, when all the command line arguments are passed … | |
Start a new Forms application and fill in the above code in the Forms.cs file. If after startup you drag one of the labels the text of the labels will be copied to the textbox. | |
Re: First of all, use code tags if you post code. Second, why would you want your program to leak? It will not. | |
Re: My car seems to have a big problem, hope that someone can please fix it. | |
Re: Do you want to close the application, or are other forms open? | |
Re: [QUOTE=Kath_Fish]but my coding just can display out the first output 2 1 after that will give me the error..."Index was outside bound of array"...what should i do..?[/QUOTE] Ever heard of a thing called "debugger"? The one in VS is a charm to work with, believe me. | |
Re: While you are busy drawing some shapes, why not use that opportunity to also draw some strings? [url]http://msdn.microsoft.com/en-us/library/76c5db29.aspx[/url] | |
Re: Study a lot! Learn how to work with Visual Studio. Learn to work with the classes in .NET Learn how to make a winodws Forms application. Learn database design. Learn ADO.NET etc. | |
Re: Have a look at the BringToFront and SendToBack methods and [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.control.updatezorder.aspx[/url] | |
Re: Or Remove: [CODE=c#]string str = "1 2 : 3"; int ind = str.IndexOf(':'); str = str.Remove(ind, 1); string[] split = str.Split(' ');[/CODE] | |
Re: myProcess.Start does not take any arguments, use StartInfo followed by myProcess.Start(); |
The End.