Thx for the help guys, ill try to implement this to my program and if I run into errors ... i'll let u know :)
Thx very much!
Type: Posts; User: Diablo02
Thx for the help guys, ill try to implement this to my program and if I run into errors ... i'll let u know :)
Thx very much!
hmm, i see what you mean now... So basically have an array '0' for key up and '1' for key down to act as a bool right? So if key A is pressed -'1'- and key W are pressed -'1'-, I should then have a...
If I was to go with arrays how would the program know if the user intended to press a different key instead of pressing two keys... What im saying is that since c# can only read 1 input at a time, if...
Hmm, ok :(
Thx.
I have the following code and was wandering if someone could help me in telling me how i could make the program read 2 inputs such as: 87 and 68 ('w' and 'd') instead of reading just one input at a...
hmm, alright, i got it to work, thx.
Globally
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
}
During the KeyPress event, it takes any key pressed, but how would i make it to ONLY accept the "w" key for...
Hmm, ive tried the code, but it doesn't draw it... Am I missing something?
Nevermind, i got it to work. Thx!
Could someone tell me how i could accomplish this?
Basically .. i want to draw a circle and fill it with a colour. Could you show me the code thats needed to do this?
ohhhh! gotcha :)
That makes sense now ...
Thx for the help. -got it to work
Doesn't work ...
a = Math.Asin(0.25);
a = 0.25268...
Im coding in console app, and i can't seem to find a way to get the inverse of sine.
I need it to evaluate:
a = sin^-1(0.2/0.5)
a=23.58 degrees
but while looking through the different 'Math.'...
Hmm, thats better, thanks
hmmm .. doesn't work ..
Ive tried using:
if (narray[y] == ((a * ((2 / 3) * (2 / 3))) + (b * ((2 / 3) * -1)) + c))
but didn't work .. why not? It should output the exact same value shouldn't it?...
hmm... So what should i do? Is there a way to round it off?
if not .. then could i have c# read that as 0 by adding an if statement?
using System;
using System.Collections.Generic;
using System.Text;
namespace Factoring_2
{
class Program
{
static void Main(string[] args)
no no...
This is what i get, ' 4.44089209850063E-16 ' if calculated with 2/3.. Which is utterly wrong... Any other number works perfectly fine and the problem only stays with 1/3 or 2/3. I have...
I was wandering if someone could tell me how I could make c# do a round off for 1/3 or 2/3 before placing it into a calculation.
For example:
I know that c# is terrible with 1/3 and 2/3 and will...
hmm, ill check it out...
would the text field expand for me as the arrays make a new line each time? or do I have to make it large enough to fit all of them?
Im working in the application GUI layout and was wandering if there was a scrollbox or something like that that would allow me to output several arrays in it...
For example, user inputs something,...
You could set the new window's opacity to be translucent...
Another thing u can do is have the new window pop up at a certain corner of your screen that is a certain length and width that won't...
thx man!
Another thing came up... how would i specify a random coordinate (random x, random y) for the window to open at?