|
-
Mar 26th, 2010, 11:39 AM
#1
Thread Starter
Member
Creating Multiples of Controls
I have a program that utilized a numericupdown control. When the numeric value = 1 then it displays 1 text box on button click
When I add this code
If NumericUpDown1.Value = 1 Then Me.Controls.Add(Newbox)
If NumericUpDown1.Value = 2 Then Me.Controls.Add(Newbox * 2)
Trying to multiply the boxes it creates by 2, it doesn't work.
How do I utilize multiplication to create multiples of my new textbox control?
(the error I get, just in case it is needed is "Operator '*' is not defined for types 'System.windows.forms.textbox' and 'integer')
Last edited by Kasem; Mar 30th, 2010 at 03:21 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|