ive been trying to get a list box input its list into a label on another form. i thought it worked but ive discovered that it only inputs the last entry i make.
ive been trying to get a list box input its list into a label on another form. i thought it worked but ive discovered that it only inputs the last entry i make.
that didnt work sorry that makes it go blank it will be in an if statement because there will be 2 frames on top of eachother for the ifs will make the frames visibleand take information input form one form to the other. i know a case statment would work better but i like ifs more
example
Code:
if bui_opt = true then
form5.bui_frame.visible = true
Form5.bui_lbl.Caption = spec_lst.Text
end if
there will be else if for the other statment for repair option
that didnt work sorry that makes it go blank it will be in an if statement because there will be 2 frames on top of eachother for the ifs will make the frames visibleand take information input form one form to the other. i know a case statment would work better but i like ifs more
example
Code:
if bui_opt = true then
form5.bui_frame.visible = true
Form5.bui_lbl.Caption = spec_lst.Text
end if
there will be else if for the other statment for repair option
If this doesnt help then I guess I have no idea what your going for.
Option Explicit
Private Sub Command1_Click()
Dim W As String, i As Integer
For i = 0 To List1.ListCount - 1
W = W + List1.List(i) + Chr$(10) + Chr$(13)
Next i
Form2.Show
Form1.Visible = False
Form2.Label1.Caption = W
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 5: List1.AddItem "Listbox Line" + Str$(i): Next i
End Sub