如何将uio As String与listbox1.text一起使用? [英] how to use uio As String with listbox1.text ?

查看:63
本文介绍了如何将uio As String与listbox1.text一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim uio() As String = {"number1","number2","number3","number4"}
            If listBox1.SelectedItem(uio) Then
                Button1.BringToFront()
            Else
                Button1.SendToBack()
            End If



但是当我调试它时,什么也没有发生!
它应该是
listBox1.Text
但是它给出了错误



but nothing happens ,when i debug it !
its should be
listBox1.Text
but its gives error

推荐答案

ListBox.SelectedItem[^] is a property, not a method. Please read the documentation and understand how to use the tools.

In the future when posting a question format the code snippets and when you say "it gives error" list what the error is!


这篇关于如何将uio As String与listbox1.text一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆