G
Guest
Hi
I'm attempting to place controls on a form based on checkbox values. More specifically, when a user clicks a checkbox and then clicks an OK button, text boxes are created and placed on a new form. Everything works fine, but the textbox controls end up on top of one another with the exception of the final textbox. Here are code snippets for reference
Dim ctlTextBox As Contro
Dim chkCheckBox As Contro
Dim intSelBoxCount As Intege
Dim intSelBoxTotal As Intege
Dim intPosition As Intege
intPosition = 10
For intSelBoxCount = 1 To intSelBoxTota
intPosition = intPosition + 2
ctlTextBox.Top = intPositio
Next intSelBoxCoun
Any help or suggestions would be greatly appreciated!
I'm attempting to place controls on a form based on checkbox values. More specifically, when a user clicks a checkbox and then clicks an OK button, text boxes are created and placed on a new form. Everything works fine, but the textbox controls end up on top of one another with the exception of the final textbox. Here are code snippets for reference
Dim ctlTextBox As Contro
Dim chkCheckBox As Contro
Dim intSelBoxCount As Intege
Dim intSelBoxTotal As Intege
Dim intPosition As Intege
intPosition = 10
For intSelBoxCount = 1 To intSelBoxTota
intPosition = intPosition + 2
ctlTextBox.Top = intPositio
Next intSelBoxCoun
Any help or suggestions would be greatly appreciated!