4,439 Posted Topics
Re: Nice code! I did something resembling a little bit like your code, but in C#, some years ago. [Click Here](http://www.daniweb.com/software-development/csharp/code/238279/bouncing-ball) | |
Re: You could use the [TrimStart](http://msdn.microsoft.com/en-us/library/system.string.trimstart(v=vs.110).aspx) method to adjust the first line of your file. | |
Re: Line 33: Remove the " and the ; On line 31 you read in the integer variable k, you don't have to place double quotes around it in the switch. | |
Re: Have a look [here](http://msdn.microsoft.com/en-us/library/tabh47cf(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1) | |
Re: Why not use a DateTimePicker control, instead of your scheme of dates and times? | |
Re: Look at an [ASCII table](http://www.asciitable.com/). What is wrong with extending Ceasar cypher to more than 26 letters of the alfabet? It would make the decyphering a bit harder, I guess. | |
Re: Make a method like this: public double Mortgage(int months, double dIRate, double loanamount) { //3 lines of your calculations return Montly payments } Next replace your calculations in the click event with a call to Mortgage | |
Re: If you know what a **for loop** is, this must be a very pleasant task to do. | |
Greetings. Is there an easy way for an app to find out at runtime, if it is a console app or a form app? Any answer would be greatly appreciated. | |
Re: Could you please inform us about the WHAT part of your code that is not working? | |
Re: Perhaps it is just a matter of style, but personally I prefer **if (flagQuestion.checked)**, rather then **if (flagQuestion.checked==true)** | |
Re: This sounds like the [traveling salesman problem](http://en.wikipedia.org/wiki/Travelling_salesman_problem) | |
This has by far no practical use. But as I was used to VS, handling most of the code housekeeping "behind the back", I wanted to try to make a Forms program as minimalistic as possible. Start an Empty project, include a reference to System.Windows.Forms and fill in the code. … | |
Re: sch85 calls **sub** the lines starting with 5,5 5,15 etc. Do your files always contain 3 of those "sub" items? | |
Re: It is like asking: I want to cook a meat dish, without meat. BTW VB6 is also MS. | |
Re: Have a look a [LockBits](http://msdn.microsoft.com/en-us/library/5ey6h79d.aspx) | |
Re: [Click Here](http://www.daniweb.com/community/rules) | |
Re: Just use something like `comboBox1.Items.Add("My new combo item");` | |
Re: With the message "**My code is not working, please help me**", we can do nothing to help you. Please show us your code and point out **WHAT EXACTLY** is not working | |
Re: Very much agree with Sharron 1(welcome! btw) One thing I see immediately: Make the number of first class and economy seats as constants. Adapt the rest of your program accordingly. Why? If the compagny buys a bigger plane later, you only have to change some numbers, you don't have to … | |
| |
Re: With what array you are having trouble with? | |
Re: In this case, you could take advantage of the fact that the curve is symetric around the y-axis. | |
Re: It is a golden rule never to change the loop counter. In your case leave out line 9. First print spaces, then decrement the number of spaces to print, then print asterixes,thenincrement number of asterixes to print | |
Re: Thanks for the info. So this would be about 410 nanoseconds? | |
Re: Have a look at these [DateTime format strings](http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm) | |
Re: A function calculates something and returns a value, your function tires to calculate an average from a string? Pull the Grades array out of it. | |
Re: Do you mean something like this: if (userinput > 70) GRADE = "A"; else if (userinput > 50) GRADE = "B"; | |
Re: Can we see the results of your tryings? Don't be afraid if they contain mistakes. We are here to fix them if we can. | |
Re: Did you try 1,85 instead of 1.85? | |
Re: In your case, I think it is "easier" to design your own OpenFile dialog if you just need the functionalities you want. If you want to do it in C# you better had posted this thread in the C# section. But perhaps a friendly moderator will be willing enough to … | |
Re: Last file. Yuo declare **char symbol** you use it in the switch statement, but I never see it getting any value. | |
Re: Did you start coding the Individual and Factory classes yet? | |
Re: Start by reading [this](http://en.wikipedia.org/wiki/Newton's_method) | |
Re: May I point your attention to [this code snippet](http://www.daniweb.com/software-development/python/code/465422/turtle-random-fun-python)? | |
Re: Hi coolsdudes1992, welcome at DaniWeb! I'm confused about your question. Could you give an example, where "Checked" is used for overflow checking? O, and this should be posted in the C# departement. | |
Re: Your text could be considered as an array, Just walk through the array with a for loop and comare each char with the lookup char. | |
Re: Just a suggestion: why not use an array of TextBoxes here? | |
Re: ASP.NET? VB.NET? [url=http://en.wikipedia.org/wiki/Tweety] "I tawt I taw a puddy tat!" [/url] But I think this is the C# forum. | |
Re: Does "shape" also include a dodecahedron? We cannot decide for you how complex this program has to be, so what have you tried to do for yourself? | |
Re: You can obtain a HWND in C# [here](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.handle.aspx) | |
Re: Did you read [this](http://www.daniweb.com/software-development/csharp/code/258293/add-sound-file-into-resource-and-access-it.-in-.net-c#post2025396)? | |
Re: Yeah, Rammstein and Kraftwerk, top! Ever tried [this](http://www.youtube.com/watch?v=wgfirIh0ej8)? From their album "In the court of the Crimson King", one of my all time favorites. In a way, a rather prophetic song I guess. | |
Re: > t is the name of student, d is mark of each student, n is the number of students, m is the number of objects and tb is the average mark of each student: Why not give meaningfull names to your variables? **studentName** instead of **t** etc. For the moment, … | |
Re: Do you mean Crystal Reports, reports derived from a DataGriView other? Please be more specific. | |
Re: Although it is syntactically correct(as rishif2 did) to write all these declarations on one line, I would prefer: int num; int i = 0; int sum = 0; | |
Re: Hi Venkatech 3, welcome at DaniWeb. I'm affraid, without specific error messages, we can do little to help you. | |
Re: Perhaps this [Daniweb thread](http://www.daniweb.com/software-development/csharp/threads/71878/capturing-enter-key-event-in-c-windows-application) will help. |
The End.