4,439 Posted Topics

Member Avatar for vegaseat

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)

Member Avatar for ddanbe
3
6K
Member Avatar for Mohsin89

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.

Member Avatar for Ketsuekiame
0
203
Member Avatar for nitish.mohiputlall

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.

Member Avatar for ddanbe
0
154
Member Avatar for bullet_1

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)

Member Avatar for Momerath
0
198
Member Avatar for laura301019
Member Avatar for laura301019
0
147
Member Avatar for strongard63

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.

Member Avatar for ddanbe
0
199
Member Avatar for Jerry_3

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

Member Avatar for ddanbe
0
215
Member Avatar for passant.elwasimy

If you know what a **for loop** is, this must be a very pleasant task to do.

Member Avatar for ddanbe
0
69
Member Avatar for ddanbe

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.

Member Avatar for ddanbe
0
228
Member Avatar for bertha

Could you please inform us about the WHAT part of your code that is not working?

Member Avatar for Ketsuekiame
0
130
Member Avatar for mcoliver88

Perhaps it is just a matter of style, but personally I prefer **if (flagQuestion.checked)**, rather then **if (flagQuestion.checked==true)**

Member Avatar for bertha
0
321
Member Avatar for bradley1234

This sounds like the [traveling salesman problem](http://en.wikipedia.org/wiki/Travelling_salesman_problem)

Member Avatar for vegaseat
0
188
Member Avatar for carlbutler7
Member Avatar for ddanbe

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

Member Avatar for pitic
1
169
Member Avatar for sch85

sch85 calls **sub** the lines starting with 5,5 5,15 etc. Do your files always contain 3 of those "sub" items?

Member Avatar for pitic
0
285
Member Avatar for pdmaduranga
Member Avatar for G_Waddell
0
242
Member Avatar for AmrMohammed
Member Avatar for ddanbe
0
160
Member Avatar for fashxfreak
Member Avatar for ARC.1
Member Avatar for chxyz

Just use something like `comboBox1.Items.Add("My new combo item");`

Member Avatar for brainbox
-1
158
Member Avatar for suryawanshi

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

Member Avatar for ddanbe
0
2K
Member Avatar for mslittle1

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 …

Member Avatar for ddanbe
0
8K
Member Avatar for Mistyz
Member Avatar for Deegirl
Member Avatar for John_47

In this case, you could take advantage of the fact that the curve is symetric around the y-axis.

Member Avatar for John_47
0
218
Member Avatar for miekie357

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

Member Avatar for tinstaafl
0
377
Member Avatar for vegaseat
Member Avatar for prabhakar78

Have a look at these [DateTime format strings](http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm)

Member Avatar for prabhakar78
0
2K
Member Avatar for Deegirl

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.

Member Avatar for wrathness
0
379
Member Avatar for Ihteshamullhaq

Do you mean something like this: if (userinput > 70) GRADE = "A"; else if (userinput > 50) GRADE = "B";

Member Avatar for Ihteshamullhaq
0
182
Member Avatar for Raymond Albert

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.

Member Avatar for Adak
0
4K
Member Avatar for sam.escott4
Member Avatar for riyamanavalan@g

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 …

Member Avatar for riyamanavalan@g
0
126
Member Avatar for andrew mendonca

Last file. Yuo declare **char symbol** you use it in the switch statement, but I never see it getting any value.

Member Avatar for Schol-R-LEA
0
151
Member Avatar for Rawan_92line
Member Avatar for Rawan_92line
0
258
Member Avatar for reverend818
Member Avatar for mike_2000_17
0
389
Member Avatar for 123pythonme

May I point your attention to [this code snippet](http://www.daniweb.com/software-development/python/code/465422/turtle-random-fun-python)?

Member Avatar for vegaseat
0
272
Member Avatar for coolsdudes1992

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.

Member Avatar for ddanbe
0
167
Member Avatar for joester007

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.

Member Avatar for joester007
0
216
Member Avatar for Mafiamanandre
Member Avatar for iainiow

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.

Member Avatar for Sampsonlenord
0
748
Member Avatar for Hashim Javed

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?

Member Avatar for vegaseat
0
293
Member Avatar for riyamanavalan@g

You can obtain a HWND in C# [here](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.handle.aspx)

Member Avatar for ddanbe
0
239
Member Avatar for Triryche

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)?

Member Avatar for tinstaafl
0
366
Member Avatar for GrimJack

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.

Member Avatar for ddanbe
0
460
Member Avatar for Gà_1

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

Member Avatar for Gà_1
0
249
Member Avatar for Surendrasinh

Do you mean Crystal Reports, reports derived from a DataGriView other? Please be more specific.

Member Avatar for ddanbe
0
76
Member Avatar for Payal Gupta

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;

Member Avatar for KushMishra
0
997
Member Avatar for null_pointer

Hi Venkatech 3, welcome at DaniWeb. I'm affraid, without specific error messages, we can do little to help you.

Member Avatar for KushMishra
0
226
Member Avatar for erdhimant.patel

Perhaps this [Daniweb thread](http://www.daniweb.com/software-development/csharp/threads/71878/capturing-enter-key-event-in-c-windows-application) will help.

Member Avatar for Momerath
0
220

The End.