Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why doesn't my NumericUpDown diaglog show?

Status
Not open for further replies.

mheppler

Programmer
Feb 6, 2006
8
0
0
US
Nothing pops up. Thanks, Mark

private void AmountTextBox(object sender, EventArgs e)
{
NumericUpDown mynumericUpDown = new
NumericUpDown();
mynumericUpDown.AccessibleRole =
AccessibleRole.Dialog;
mynumericUpDown.Location = new
System.Drawing.Point(200, 200);
mynumericUpDown.Size = new
System.Drawing.Size(120, 20);
mynumericUpDown.Show();
}
 
AccessibleRole doesn't alter the class of the control.
it's there to tell the accessibility tools what role the control has. e.g. how to present the control to a blind person.
it won't change a numericupdown into a dialog.
if you want a dialog with a numericupdown on it, build a form in your project and use that.
good luck,


mr s. <;)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top