Hello eveorne, Well I am in need of some help, I am workin on a project in c#, and I was wondering how do you get a form to call a certain form when you select a item from a combox. So as in a example.
The form loads and there is the combo box called Character class, the user hits the down arrow and there are 5 different things they can chosse from fighter mage priest thief archer. Now the user select the Fighter choice, now in c# how would I call a window to show the fighter form. I have tired it and this is what my code looks likes.
csharp
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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
fighter FighterStats = new fighter();
FighterStats.Show();
Mage MageStats = new Mage();
MageStats.Show();
}
}
}
*edit: Please use code tags in the future, thanks!

Now when I click one of the items in the combox it loads both the form Fighter Stats and Mage Stats, how would I get it so that if I click fighter it would only load the fighter stats form. And call other forms from selecting the other choice so says I choose mage how would I call mage with out it calling the fighter from along with the mage form.
Thank you for spending time and reading this.
This post has been edited by Chris Ross: 30 Sep, 2008 - 04:38 PM