4,439 Posted Topics

Member Avatar for aVar++

I like both. I don't drink while programming, I'll have a break instead!

Member Avatar for <M/>
0
186
Member Avatar for peymankop

Well, peymankop your questioning is improved. :) Was the answer I gave you in the other thread not sufficient?

Member Avatar for ChrisHunter
0
97
Member Avatar for peymankop
Member Avatar for write.me

And here is [something for you to read.](http://www.daniweb.com/software-development/csharp/threads/448647/new-programmers-what-resources-are-available-to-you)

Member Avatar for ddanbe
0
1K
Member Avatar for adem87

. . . x y cloum want first show all second on fastly boxt tb tbb . but this doesnt how can do Huh??? I'm no English speaker myself, so I quess I cannot help you here, because it doesn't make sence. Why did you put this in the tag …

Member Avatar for ddanbe
0
163
Member Avatar for terrier_unknown

[This ](http://www.daniweb.com/software-development/csharp/code/295819/simulating-normdist-function-of-excel-in-c)is the closest I got to doing an integration in C#. You also have the book "Practical Numerical Methods with C#" by Jack Xu.

Member Avatar for tinstaafl
0
319
Member Avatar for nickayin
Member Avatar for jangojan

Maybe [this class](http://msdn.microsoft.com/en-us/library/system.environment.aspx) can help?

Member Avatar for pitic
0
159
Member Avatar for <M/>

What is the exact phrasing of your assignment? As I see it now it could be that you just have to use 10 numbers as seeds for the Random method and generate 5 random number with the 10 numbers.

Member Avatar for <M/>
0
338
Member Avatar for <M/>

Don't know exactly what you are trying to achieve here. If an integer value is even and you add 1 to it, it will be odd. static void Main(string[] args) { int userinput = 8; do { Console.WriteLine(userinput); userinput++; } while (userinput % 2 > 0); Console.ReadKey(); } The above …

Member Avatar for <M/>
0
122
Member Avatar for nabeelkhanjadoon10

What is your definition for "a line of code"? Does it really matter how many lines of "code" a program contains? Is a program with 100000 lines of code better that one with 1000 lines of code?

Member Avatar for DoRight
0
7K
Member Avatar for NidhiSree

Your English is as good as mine. :) I don't see why you could not do what you are trying to do. You only got to have some indebt knowledge of all the objects involved. In the beginning this can look very complex, I know. The more you are using …

Member Avatar for NidhiSree
0
382
Member Avatar for csss

Something like this? static void Main(string[] args) { int value = 11; int power = 8; Console.WriteLine(Math.Pow(value, power)); Console.WriteLine(Math.Pow(value, 2)*Math.Pow(value, 6)); Console.ReadKey(); }

Member Avatar for tinstaafl
0
170
Member Avatar for nitin1
Member Avatar for Moschops
0
162
Member Avatar for visweswaran28
Member Avatar for Counterpartz

IntValue is not defined. Define it. Start your loop with while (Intvalue < ...) Do a ReadLine. Put your if statement next. Test Intvalue as you did. Augment Intvalue only if between 10 and 50. Are 10 and 50 inclusive or not? Succes!

Member Avatar for tinstaafl
0
320
Member Avatar for killer88

We aim to please. MSDN should be your friend. Here is [The String class](http://msdn.microsoft.com/en-us/library/system.string.aspx), all the string manipulation you want! Happy programming.

Member Avatar for killer88
0
596
Member Avatar for nitin1

That's the spirit! Think positive. Make love, no war! (And make love does not always mean something that rabbits often tend to do)

Member Avatar for BigPaw
3
223
Member Avatar for csss

Perhaps you could consider [this.](http://msdn.microsoft.com/en-us/library/system.numerics.biginteger(v=vs.100).aspx)

Member Avatar for TnTinMN
0
255
Member Avatar for riahc3

Determine if a char is whitespace and exclude a space. [Look here](http://msdn.microsoft.com/en-us/library/vstudio/t809ektx.aspx) for a start. If you are familiar with Regex, you could use that as well.

Member Avatar for Ketsuekiame
0
151
Member Avatar for i_tec
Member Avatar for <M/>

My native language is **Flemish**, which is a **Dutch** dialect. Further I can speak and write **English** and **French** rather fluently. Some **German**, **Spanish** and **Italian**. @decepticon : I doubt if some knowledge of Spanish would be handy in learning Japanese :)

Member Avatar for Lucaci Andrew
0
419
Member Avatar for chrisaddicted
Member Avatar for aVar++

Look [here](http://www.daniweb.com/software-development/csharp/code/217187/console-calculator-part-3-the-calculator-engine) what I did some 4 years agoo

Member Avatar for <M/>
1
404
Member Avatar for sunn shine

Look [here](http://www.getbookee.org/get_book.php?u=aHR0cDovL3dpa2kuemltYnJhLmNvbS9pbWFnZXMvYS9hNy8xMjg1OC5wZGYKQ09NUFVURVIgR1JBUEhJQ1MgVVNJTkcgT1BFTkdMICgzUkQgRURJVElPTikgQlkgRlJBTkNJUyBTIC4uLg==) don't know it's for free though.

Member Avatar for ddanbe
0
116
Member Avatar for castajiz_2

I zip them. Did you Publish your project correctly? Thenyour friend can run the installer. If your friend has VS, send him your project and he can open and the project through VS.

Member Avatar for TnTinMN
0
4K
Member Avatar for homeboy

You could use e.g. **objTool.SetStarted();** it would print started on the console. objTool inherits all the methods from the base class. You can use them as such or override them.

Member Avatar for homeboy
0
237
Member Avatar for silvercats
Member Avatar for ddanbe

I wanted to make an array of bits which I could click on and off at will. Sort of a register you could manipulate. First thing that came up was a checkbox control. But I wanted to change the usual checkmark with a 1 or a 0. With tips from …

Member Avatar for TnTinMN
0
2K
Member Avatar for wizzy-cool

I once used [this article](http://www.codeproject.com/KB/printing/datagridviewprinter.aspx) to help me explain how to print a DataGridView. On the CodeProject site you may find other stuff about printing. Succes!

Member Avatar for tinstaafl
0
240
Member Avatar for skliz

Think [this tutorial](http://www.c-sharpcorner.com/UploadFile/mahesh/TabControlTutorial11302005235835PM/TabControlTutorial.aspx) is a good place to start.Check out MSDN also. Succes!

Member Avatar for ddanbe
0
276
Member Avatar for ddanbe

These are (I guess) the most basic printing instructions in C#, to let some printed paper coming out of a printer. Start a new Forms application, drop a ComboBox, a Label and a Button on the form. Implement a form Load and a Button Click event and fill in the …

2
364
Member Avatar for Mariann

On line 30, if you just tap return for a test with no answer you will get a null value from ReadLine, wich you are trying to convert to a char wich gives your error. So test for null values( as deceptikon proposes) before you do the conversion to a …

Member Avatar for ddanbe
0
236
Member Avatar for ryan311

To me your line of code reads as **txtNetPrice.Text = 0 + ContxtPriceCut.Text;** Before the plus sign you are multiplying by zero. After the plus sign you are converting text to a double and you make again text of it with the ToString method.

Member Avatar for castajiz_2
0
227
Member Avatar for sundog1
Member Avatar for stacey.sell.3

Every C# program has to have a static Main(...) method (a so called entrypoint) From here is where your program starts to run. Are you using Visual Studio?

Member Avatar for tinstaafl
0
265
Member Avatar for amiralirezaei

Perhaps one of my snippets is easier to use:[Click Here](http://www.daniweb.com/software-development/csharp/code/217194/data-encryption-in-c)

Member Avatar for ddanbe
0
2K
Member Avatar for serkan sendur

Depends on what you want Serkan. This [url]http://www.daniweb.com/code/snippet1022.html[/url] loops through what is called the KnowColors. All the colors would need 256*256*256 iterations I guess.

Member Avatar for Mauricio Feijo
0
1K
Member Avatar for cerealBoxx

Console.WriteLine returns void so return a string first and then feed that string to the WriteLine method.

Member Avatar for ddanbe
0
144
Member Avatar for Borsund

Are you using WPF or WinForm? You could implement 100 TextBox, Button etc. and implement the MouseHover event. There is a video lesson somewhere about it I will try to find it for you.

Member Avatar for ddanbe
0
95
Member Avatar for AquaNut

Have you had a look at [this ](http://www.csharp-examples.net/string-format-datetime/)?

Member Avatar for ChrisHunter
0
220
Member Avatar for sk8ergirl

Also List can be used. **List<Item> tempLst = new List<Item>();** [See here](http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx) Use IndexOf,RemoveAt, Insert methods to get wath you want.

Member Avatar for ddanbe
0
188
Member Avatar for tony75

What idea have you tried already? We would like to see it, so we can help you better.

Member Avatar for tony75
0
218
Member Avatar for ajassal1

@tinstaafi I guess the Str would do nicely in VB.NET. In C# it is called ToString()! @ajassal1 Google "The triangle of Pascal"

Member Avatar for ddanbe
0
43
Member Avatar for vebi1000

I don't see your design image. But it should be a fairly simple taskto fill your PictureBox with coloured rectangles, with a size depending on the percentage.

Member Avatar for ddanbe
0
434
Member Avatar for hirenpatel53

If I understand you well. Can you not change the worksheet cell, before you feed it to the dataset?

Member Avatar for remunance
0
217
Member Avatar for jangojan
Member Avatar for tinstaafl
0
882
Member Avatar for jangojan
Member Avatar for Ancient Dragon

Let's get [cultural](http://www.enotes.com/shakespeare-quotes/what-s-name-that-which-we-call-rose)!

Member Avatar for Reverend Jim
0
179
Member Avatar for ndrichim

The End.