76
Projects / Re: Placeholder for 2wenty Dungeons (formerly Codename: Words)
« on: 2010-01-09, 01:50:12 PM »
on my next release (soon, but not now), im disabling the "jumping feature" until i experiment with sprites a little more
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
edit: I checked it out. It's okay. But I don't get how to get to the end of the level.
//parent form
public partial class ParentForm : Form
{
string playersname;
public ParentForm(string strParam) //i have it set up to set this as "Enter Name Here"
{
InitializeComponent();
if (strParam == "Enter name here")
{
Form Child1 = new Child1(strParam);
Child1.ShowDialog();
playersname = Child1.PlayersName;
label1.Text = playersname;
}
}
//the rest of the code
}
//child form
public partial class Child1 : Form
{
public string PlayersName
{
get;
}
public Form1(string strParam)
{
InitializeComponent();
textBox1.Text = strParam;
}
private void button1_Click(object sender, EventArgs e)
{
//i'm betting that something goes here
this.Close();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
SetPlayersName(textBox1.Text);
}
private void textBox1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "Enter name here")
{
textBox1.Text = "";
}
else
{
textBox1.SelectAll();
}
}
public string SetPlayersName(string Name)
{
Name = PlayersName;
return PlayersName;
}
}