public string Username;
public string Password;
private void OkButton_Click(object sender, System.EventArgs e)
{
Username = UsernameTextBox.Text;
Password = PasswordTextBox.Text;
this.DialogResult = DialogResult.OK;
this.Hide();
}
if( credform.ShowDialog() == DialogResult.OK )
{
Credentials credform = new Credentials();
// Read the public properties on the Credentials form
Username = credform.Username;
Password = credform.Password;
SubmitButton.Enabled = true;
}
CAn anyone tell me how to change these C# syntax to Vb.net plzzzzz. Help desperately needed. Thnx
public string Password;
private void OkButton_Click(object sender, System.EventArgs e)
{
Username = UsernameTextBox.Text;
Password = PasswordTextBox.Text;
this.DialogResult = DialogResult.OK;
this.Hide();
}
if( credform.ShowDialog() == DialogResult.OK )
{
Credentials credform = new Credentials();
// Read the public properties on the Credentials form
Username = credform.Username;
Password = credform.Password;
SubmitButton.Enabled = true;
}
CAn anyone tell me how to change these C# syntax to Vb.net plzzzzz. Help desperately needed. Thnx