Solutions to errors » C#


 Currently Browsing C# Errors
Need help with C sharp. Getting an error and I have no idea what it means?

Question from Dax: Need help with C sharp. Getting an error and I have no idea what it means?
I have this line

cArea = Math.PI(radius * radius);

and I’m getting this error

non-invocable member ‘System.Math.PI’ cannot be used like a method.

Any help would be awesome. Thanks in advance.
haha duh… Thank you very much

Popular answer:

Answer by Break It Down! Productions
Yes… Math.PI is a property! I.e it’s not a method and that’s how you’re using it, what you’re looking for is:

cArea = Math.PI * (radius * radius);

What do you think of this error? Answer below!

Q&A: can you please give me the site for free C sharp tutorials?

Question from athul k: can you please give me the site for free C sharp tutorials?
i am Athul can you help me in getting good free C shrp tutorials?

10 points and thank you very much for your answer…..

Popular answer:

Answer by watercolor
I think you mean the programming language C# . Here are some sites that have tutorials online:

http://www.csharphelp.com/archives2/archive402.html

http://www.csharp-station.com/Tutorial.aspx

http://www.visualbuilder.com/csharp/tutorial/

Hope this helps. If you have any specific questions post in programming languages or software. I’ll try to help.

Add your own answer to this error in the comments!

is it possible to convert the c sharp code written in visual studio 10 into visual studio 8?

Question from raaamuz: is it possible to convert the c sharp code written in visual studio 10 into visual studio 8?
i have written code in visual studio 10, now i want to create crystal report to do that i have to convert that code into visual studio 8, can anybody help me?
i think it is not possible to create crystal report in vs8..
sorry…. in visual studio 10 we cant create crystal report…

Popular answer:

Answer by airjarrod
Who says the code doesn’t work in 8 already?

If you have a better solution to this error, please comment below.

What are couple death/black/melodic metal bands that play in C sharp?

Question from Z V: What are couple death/black/melodic metal bands that play in C sharp?
I know theres Behemoth and Dying Fetus, but I can’t seem to find much others >>. Please help

Popular answer:

Answer by kenzillion
these guys do. check them out they’re well heavy. enjoy.
http://www.youtube.com/watch?v=6inwzOooXRU

What do you think of this error? Answer below!

Q&A: Can somebody help me with Rachmaninov’s Prelude in C sharp Minor?

Question from Captain K: Can somebody help me with Rachmaninov’s Prelude in C sharp Minor?
I’m struggling with the agitato section that’s all, any tips?

Popular answer:

Answer by Mordent
Learn the patterns. For instance to begin with the bass is a C# going up a 7th and then descending chromatically. The triplet pattern is a chromatic descending phrase. Many of the chords are approached chromatically. Also learn the “melody” – i.e. the tenuto notes in the treble. It may help to write in the chords as well.

Possibly the easiest way to really get to play it well would be to learn it by heart.

If you have a better solution to this error, please comment below.

what’s the best way to switch from a low C sharp to the low C on an oboe?

Question from Vivian: what’s the best way to switch from a low C sharp to the low C on an oboe?
my pinky really hurts. switching between those two keys is starting to get tiring. does anyone know any alternate fingerings? oboe experts help!

Popular answer:

Answer by Klay
Yup I do know the answer cause I’m an oboe major in music school. On some oboes there’s a key on it called a banana key. If you have it, The banana key is located next to the third finger key of the right hand and is used as an alternate to the little finger key for C to avoid sliding the little finger. If you have it- that’s the only cheat key for a C to C sharp.

If you don’t have it, put lotion on you’re pinky, it’ll make it slide wicked easy

If you have a better solution to this error, please comment below.

How can you tell the difference (by reading) between E major and C sharp minor?

Question from sumpinsfishie: How can you tell the difference (by reading) between E major and C sharp minor?
Same number of sharps, but different key sigs. The main peice that brought this up is piano sonata 14 (moonlight). How can you tell. please help

Popular answer:

Answer by del_icious_manager
Firstly, the music will seem to occasionally return back to E or C# accordingly. Secondly, C# minor will have many instances of the leading note B#, which would be much less prevalent in E major. Also, at the very end of the piece, the music is likely to finish in the home key so look to see if it an E major chord or a C# minor (or perhaps major) one.

Add your own answer to this error in the comments!

(clarinet players) How can i go to middle B natural to middle C sharp?

Question from Ameh ;]: (clarinet players) How can i go to middle B natural to middle C sharp?
I’ve been playing clarinet for almost 4 years, I have a really old clarinet. I Try to move my finger from b natural [middle one] to C sharp (midde one). But I keep squeaking. Any help on how to stop squeaking and actually play that transition. (i have a new reed and everything).

Popular answer:

Answer by ktbird0111
Have your tried going from left hand b to right hand c# or from right hand b to left hand c#? If those transitions are squeaking your fingers might be moving ever so slightly so that they are not quite covering the holes all of the way. Another possibility is that your pinkies are not moving together and the timing of the pads covering the holes might be a little off.
So check your fingers first to make sure they aren’t moving then check the movement of your keys.

Know better? Leave your own answer to this error in the comments!

How to control the 3d graphical objects (made in 3d Studio max) with a C Sharp code?

Question from Mike P: How to control the 3d graphical objects (made in 3d Studio max) with a C Sharp code?
I am trying to make a simple surface and put some objects on it using 3d studio and then make a small program (like a simple game in C#) to be able to move between my objects.

I don’t know how I can take control of my objects in my code?

Any help or resource?

Thank you.

Popular answer:

Answer by Solrax
I’d suggest “3D Programming for Windows” by Charles Petzold. It is an introduction to 3D programming using C#.

If you don’t want to buy a book, I found a number of tutorials just by Googling “3D C#”, here is one that looks promising:
http://www.developer.com/net/csharp/article.php/3582636

Know better? Leave your own answer to this error in the comments!

Q&A: C#(C sharp) question. How do you add the values in two different text boxes and display the answer in a label?

Question from jcarreno89: C#(C sharp) question. How do you add the values in two different text boxes and display the answer in a label?
Could you please help me write this code. The label must be not display the answer until the button is pressed to add the values in the text boxes.

Popular answer:

Answer by Fudge
go to the onClick event handler for the label and there get two variables pointing to the text boxes’ values

Know better? Leave your own answer to this error in the comments!

Page 1 of 1012345»...Last »