Julyuary's Profile User Rating: ***--

Reputation: 38 Craftsman
Group:
Active Members
Active Posts:
107 (0.11 per day)
Joined:
20-December 11
Profile Views:
2,669
Last Active:
User is offline Yesterday, 05:39 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   Julyuary has not set their status

Posts I've Made

  1. In Topic: C# Picture will not appear

    Posted 25 Nov 2013

    If the only random values that cause an image appear are 1 and 2, shouldn't it be more like...
    var randomnumber = new Random();
              int randomnum;
              randomnum = (randomnumber.Next(2) + 1); 
              if (randomnum == 1)
              {
                  companswer = "a"; 
                  pictureBox1.Image = Properties.Resources.blue; 
              }
              if (randomnum == 2)
              {
                  companswer = "e"; this.
                  pictureBox1.Image = Properties.Resources.red;
    
          }
    

    Or, you could adjust your ifs instead of adding 1 to randomnum since the upper bound of randomnumber.Next is exclusive. Whichever works. As your code is now, there's a chance that no picture will appear.
  2. In Topic: I am writing the previous loop sum values + new value?

    Posted 18 Nov 2013

    Forgive me if I'm wrong, but would it help if you cleared sb at the end of your first foreach loop? In your new code.
  3. In Topic: Passing SpriteBatch Around

    Posted 2 Sep 2013

    Thanks for the tutorial link, BBeck. It's actually pretty similar in design to the small game I'm working on. The situation with the lists is that I've got a list of action lists to represent different layers, and make it easy to loop through them all.
  4. In Topic: Passing SpriteBatch Around

    Posted 2 Sep 2013

    Thanks andrewsw, I've got it.
  5. In Topic: Check if Gridview Textbox is Empty

    Posted 14 May 2013

    My guess is that you aren't looping over any text boxes, just grid rows. Try looping over every text box inside of the grid row? The way you're using FindControl(), you're probably only going to get the first item it finds.

My Information

Member Title:
D.I.C Head
Age:
17 years old
Birthday:
July 9, 1997
Gender:
Interests:
gaming, programming, graphic design
Full Name:
Jaray Reeves
Years Programming:
3
Programming Languages:
C#, C++, Java, Dart, C

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  Julyuary@hotmail.com
Skype:
Skype  ray.mizuumi

Friends

Comments

Julyuary has no profile comments yet. Why not say hello?