Thread: C#
View Single Post
  #1   Spotlight this post!  
Unread 30-05-2005, 21:44
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
C#

Well I downloaded Microsoft Visual C# 2005 Beta 2 today (for those interested, it's a free version and I definitely recommend you try it out) and so far the learning curve has been minimal. Now I'm stuck on a problem, and searched Google and everywhere else but theres really no good sized, active C# forums. Does anybody know of any? In the meanwhile, I might as well post my question here.

I am trying to enable a timer by pushing the left button on the keyboard. I used MSVC#'s Method Creating tool, so I know the method declarations are right... but it's not working. Here's my code:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Simulator
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void tmrRobot_Tick(object sender, EventArgs e)
        {
            pictBot.Location = new System.Drawing.Point(100, 100);
        }

        private void frmMain_KeyPress(object sender, KeyPressEventArgs e)
        {
            tmrRobot.Enabled = true;
        }

    }
}
__________________
http://www.mikesorrenti.com/