Brandon
2012-08-20 18:23:35 UTC
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Ch01HandsOn
{
public partial class PromotionsForm : Form
{
public Form1()
{
InitializeComponent();
}
private void exitButton_Click(object sender, EventArgs e)
{
//End the project.
this.Close();
}
private void clothingButton_Click(object sender, EventArgs e)
{
//Display current promotion.
promotionsLabel.Text = "Take an extra 30% off the clearance items.";
}
private void equipmentLabel_Click(object sender, EventArgs e)
{
//Display current promotion.
promotionsLabel.Text = "Yoga Mats--25% off.";
}
private void juiceBarButton_Click(object sender, EventArgs e)
{
//Display current promotion.
promotionsLabel.Text = "Try a free serving of our new Wheatberry Shake.";
}
private void membershipButton_Click(obect sender, EventArgs e)
{
//Display current promotion.
promotionsLabel.Text = "First month personal trainer included.";
}
private void personalTrainingButton.Click(object sender, EventArgs e)
{
//Display current promotion.
promotionsLabel.Text = "3 free sessions with membership renewal.";
}
}
}
I keep geeting an error about public Form1() and it says: Class, struct, or interface method must have a return type
HELP!