开发者

accessing second form listbox from first form in vb [closed]

开发者 https://www.devze.com 2022-12-21 08:39 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

how can i getting data from listbox in second form named listform while i am at first form

i have 开发者_Python百科search it a lot on google but not find any usefull ans...


I see these questions all the time

Create two forms one called form1 the other from2 drop a button on form 1 and a list box on from two use the defalut names for everything and put this code in your button click handler.

  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim f As New Form2()
    f.Show()
    f.ListBox1.Items.Add("Added somthing")
   End Sub
0

精彩评论

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