Transform a listbox to textbox
I want to transform开发者_如何学Python a listbox to textbox when I'm clicking a checkbox. To explain, i have a listbox that contains addresses and if an address does't belong in the list someone can click to a checkbox called 'another address';so he can put another address.Thanx for your answer...
Place the
ListBox
and theTextBox
controls on top of each other in your form layout.Set the
textBox.Visibility = false
by default (on form load).When
checkbox.OnClick
setlistBox.Visible = !checkbox.Checked
andtextBox.Visible = checkbox.Checked
.
精彩评论