I get msgbox (x=0),(y=0)Code:
frm2.ListView1.Location = New Point(0, 300)
frm2.Refresh()
MsgBox("loc: " & frm2.ListView1.Location.ToString)
How come "y" doesn't change to 300?
I wish to simply move the position of the listview.
Printable View
I get msgbox (x=0),(y=0)Code:
frm2.ListView1.Location = New Point(0, 300)
frm2.Refresh()
MsgBox("loc: " & frm2.ListView1.Location.ToString)
How come "y" doesn't change to 300?
I wish to simply move the position of the listview.
Is frm2 a created instance of a form, or is it the default instance?
I declare frm2 in a module asThen in a form1 I instantiate frm2 from a command button:Code:Friend frm2 As Form2
I've been able to change other properties of frm2 using this method from outside that form.Code:Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
'loads display screen
frm2 = New Form2()
frm2.Show()
frm2.startTimer()
End Sub
I even tried within form2 itself using the Me keyword. Same result.Code:Me.ListView1.Location = New Point(100, 300)
MsgBox("loc: " & Me.ListView1.Location.ToString)
Update... think I resolved it. Had to with one of the other property settings such as alignment = snap to grid or dock = fill , not sure which but changed both and works =)