开发者

Transform a listbox to textbox

开发者 https://www.devze.com 2022-12-30 17:33 出处:网络
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

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

精彩评论

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

关注公众号