4,439 Posted Topics

Member Avatar for babu02021964
Member Avatar for MJV

switch([B]int[/B]); What is int? Remove the ; after it to begin with. Where is default? Where is break?

Member Avatar for Rashakil Fol
0
297
Member Avatar for drfarzad

Just concentrating on the first problem [QUOTE]int x; int y; int m; float ave; Console.ReadLine(); Console.ReadLine(); Console.ReadLine(); ave = x + y + m / 3; Console.WriteLine(ave); Console.ReadKey(true);[/QUOTE] As Antenka and papuccino1(Hi how is your baby boy doing?) are saying: use x = Console.ReadLine(); but then you have a problem, …

Member Avatar for rapture
0
144
Member Avatar for omotoyosi

Don't annoy a user. When the action is save, save and nothing else. Why not show him the latest Bond film after he did a save? But if you really must : the last line in your save method, should be a call to your print method.

Member Avatar for ddanbe
0
56
Member Avatar for nuninio

Try this in a console app: StringBuilder sb = new StringBuilder("this is a test"); Console.WriteLine(sb); string str = sb.ToString(); char ch = str[0]; sb.Replace(ch, char.ToUpper(ch), 0, 1); Console.WriteLine(sb); Console.ReadKey();

Member Avatar for subtercosm
0
353
Member Avatar for ternor

THe best tutorial I can think of is your course notes and your textbook. Or are you missing both? At least show us what you already have. Please?

Member Avatar for ternor
0
100
Member Avatar for MJV

Why not allow only "numeric" input in a textbox? [url]http://www.daniweb.com/code/snippet1094.html[/url] Don't annoy a user with useless alarm messages.

Member Avatar for ddanbe
0
134
Member Avatar for oldSoftDev

If you can OO compare cars it should be easy to compare lines. What have you got so far? EDIT: sorry this was just posted after yours...

Member Avatar for oldSoftDev
0
195
Member Avatar for lion_crazz

If in the while loop leave out the initialisation of [B]number=0;[/B] it should work, now you are always testing zero.

Member Avatar for ddanbe
0
124
Member Avatar for Digvijaysinh

Pseudocode : if textbox1 is blank then do something else if texbox2 is blank then do something else if textbox3 is blank then do something else do something

Member Avatar for rapture
0
523
Member Avatar for jmumby

Why not use a thing called [B]Object Serialization [/B]so that you will have everything under your control, being undependant of some system permission settings?

Member Avatar for jmumby
0
149
Member Avatar for muhammad ismail
Member Avatar for Minolwen
0
74
Member Avatar for C#Newbie
Member Avatar for Antenka
0
1K
Member Avatar for C#Newbie

Use output.Write(fr.friendName); output.Write(fr.friendStreet); etc. Assuming they are strings.

Member Avatar for C#Newbie
0
519
Member Avatar for PaulThomas

Depends. But this [url]http://www.etro.vub.ac.be/Personal/bjansen/dlls/interfacing.html[/url] may start helping you out.

Member Avatar for ddanbe
0
37
Member Avatar for BobLewiston

Start with New project. Choose Empty project, name it CSharpSchool. Choose Add Item and select class. Now type in your code.

Member Avatar for JerryShaw
0
153
Member Avatar for ozan

The code project has several matrix related articles like [url]http://www.codeproject.com/KB/recipes/matrixclass.aspx[/url] hope this helps.

Member Avatar for ArkM
0
165
Member Avatar for karthi_selva

If you stored your information in a DataSet, what is the problem with retrieving that information?

Member Avatar for karthi_selva
0
195
Member Avatar for ITech

Just as MSDN is a fine source of information so is Google. Typed in ADO.NET, look what I found! [url]http://www.codeproject.com/KB/database/DatabaseAcessWithAdoNet1.aspx[/url]

Member Avatar for reach2shaik
0
150
Member Avatar for viperld

On the original Macintosh you did not even had the concept of a console. You did your event driven(see Salem above) programming in C or Pascal. You HAD to use windows, dialogs and buttons etc.

Member Avatar for ddanbe
0
105
Member Avatar for k2k

Normally wc -l should give you the line count. wc -w gives the word count.

Member Avatar for ddanbe
0
141
Member Avatar for jobi116

I would start a forms application and put a splitcontainercontrol in it. In Panel1 I would put a TreeView control in Panel2 I would try a ListView.

Member Avatar for jobi116
0
107
Member Avatar for wookinhung

It is called [B]hover [/B]over some object. Search this site for answers like [url]http://www.daniweb.com/forums/thread133192.html[/url]

Member Avatar for wookinhung
0
122
Member Avatar for C# beginner

Check the KeyEventArgs in your TextBox KeyDown event handler. Don't annoy a user with an error messagebox, simlpy do nothing when a user types in anything other then letters.

Member Avatar for Diamonddrake
0
158
Member Avatar for ddanbe

I have an array of array wich all have the same length. Which syntax is to be preferred : multidimensional : string[,] names = new string[5,4]; or jagged : string[][]names = new string[5][4]; Or is it, in this case just a matter of style? I searched this site and I …

Member Avatar for ddanbe
0
86
Member Avatar for VBNick
Member Avatar for Indianblues

OK BlackSun your attempt is honorable but totally beside the question. ( And please drop your textbox fumbling!) Indianblues just needs to follow the advice of LizR here: open the helpfile and look for StreamReader Read. If Indianblues has no helpfile he can google for help or come back here.

Member Avatar for Ramy Mahrous
0
111
Member Avatar for kishore84
Member Avatar for VernonDozier
0
3K
Member Avatar for k2k

The program wont crash, but as long as you don't type YES,Yes,yES etc. you will stay in the do...while loop.

Member Avatar for ddanbe
0
721
Member Avatar for asafoatse

Rashakil was just making a point here. You seem a bit desperate. Never be desperate when you want to be a programmer. Why use a 3D array? Have you considered an array of class or struct for your "Saler"(I think you mean salesman) In a class or struct you could …

Member Avatar for serkan sendur
0
144
Member Avatar for lighthead

I had the same problem once with Stopwatch. Read this article [url]http://www.codeproject.com/KB/dotnet/ExecutionStopwatch.aspx[/url]

Member Avatar for lighthead
0
272
Member Avatar for scrypt3r

Write a compiler in your code, feed it the string "example" and it will run.(If your string has no compile errors in it of course)

Member Avatar for scrypt3r
0
101
Member Avatar for jdbarry
Member Avatar for meistrizy

[B]meal = (t / (tar + 100)) * 100; [/B]??? Why not use [B]meal = t * (tar +100)/100;[/B] ?

Member Avatar for meistrizy
0
142
Member Avatar for BobLewiston
Member Avatar for driebel

The first term of your sum is always zero, so start with i=2. Use an if-statement for the first factor of your product. If i is even then it is -1 else it is 1. For the second factor I should use 1/(i*i*i). So trash the power function and the …

Member Avatar for driebel
0
111
Member Avatar for arupa

It is all explained here [url]http://msdn.microsoft.com/en-us/library/xfhwa508.aspx[/url]

Member Avatar for BlackSun
0
111
Member Avatar for CsharpBeginner

I recently read the book: "Mathematical tools in computer graphics with C# implementations." It is rather mathematically oriented but has many code listings that show what you can do with C# in this area. B.t.w. you can download this code from their site [url]http://eve.uj.ac.za/gfxbook[/url]. You'll have to do some editing...They …

Member Avatar for BlackSun
0
1K
Member Avatar for bundersi

Write say 20 digits down on paper and another 20 or so digits. Now add them. Do the same in your compurter program but use arrays and for loops and so on. Happy computing

Member Avatar for Salem
0
157
Member Avatar for Evert-Jan
Member Avatar for shila13

Why don't you leave out all the white space and convert it with the letters of the alphabet in reverse! There is a preview, before you post, there are code tags, there is info enough here to read before you post. Please do take into consideration we are only human. …

Member Avatar for iamthwee
0
98
Member Avatar for Richard1992

The [B]sqrt [/B]function returns a value of type [B]Extended[/B]. ( number with a decimal point in it.) Internally these numbers are stored differently then [B]Integer [/B]or [B]LongInt[/B]. That's why they are called incompatible types.

Member Avatar for ddanbe
0
280
Member Avatar for Praveenhai

Start sending me 50000$ first. The rest of the details will be discussed afterwards.

Member Avatar for ~s.o.s~
0
93
Member Avatar for mruane

There is but one C# language(With versions,extensions). You can start the compiler from the console (csc.exe I believe) or you could use an IDE like Visual Studio. VS makes it much easier for you(does lots of code generation for you), but it is handy if you still know what you …

Member Avatar for LizR
0
98
Member Avatar for Sam_Surrey
Member Avatar for BobLewiston

Adobe acrobat reader documents although binary often start with the text [B]%PDF[/B]

Member Avatar for Ramy Mahrous
0
114
Member Avatar for ribena500

Simply said : don't use a minus operator on the left side of an assignment operator.

Member Avatar for Salem
0
75
Member Avatar for OrderChaos

When yo are in design view and you press the little button with the lightning symbol on it, in the properties window. You get a list of all available events for the control currently selected. Double click the event you want and you will get into the code view in …

Member Avatar for Ramy Mahrous
0
1K
Member Avatar for ddanbe

Start a new Forms application. Add a DataGridView control to the Form. Add a few Columns to the DataGridView. In the properties window select the ColumnHeadersDefaultCellStyle (ahh what's in a name...) property. A dialog opens. Change the appearance BackColor to whatever color you like. Run the application. On my system …

Member Avatar for ddanbe
0
340
Member Avatar for Rashakil Fol

The End.