开发者

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...


  1. Place the ListBox and the TextBox controls on top of each other in your form layout.

  2. Set the textBox.Visibility = false by default (on form load).

  3. When checkbox.OnClick set listBox.Visible = !checkbox.Checked and textBox.Visible = checkbox.Checked.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜