Hello,
I'm using blist library and it works fine except for one thing and I want to be sure I'm not using it the wrong way.
In my program I want to change the height and with parameters when the screen rotate for example.
When I try to setup the blst.height=x for the first time it's ok but if I tried to change it afterward with the same way (blist.height=y) I have an error 'object reference not set to an instance of an object'.
Here is little I tried:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
list.New1("frmMain")
item.New1
list.ItemHeight = 50
list.Top = 0
list.Left = 0
list.Width = frmMain.Width
list.Height = 220
list.Height = 210 ' Changing value
list.Backcolor = cGray
list.AddFromString("First Item", cBlack, cWhite)
list.SuspendLayout
For i = 1 To 50
list.AddFromString(i, cBlack, cWhite)
Next
list.ResumeLayout
frmMain.Show
End Sub
I'm using blist library and it works fine except for one thing and I want to be sure I'm not using it the wrong way.
In my program I want to change the height and with parameters when the screen rotate for example.
When I try to setup the blst.height=x for the first time it's ok but if I tried to change it afterward with the same way (blist.height=y) I have an error 'object reference not set to an instance of an object'.
Here is little I tried:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
list.New1("frmMain")
item.New1
list.ItemHeight = 50
list.Top = 0
list.Left = 0
list.Width = frmMain.Width
list.Height = 220
list.Height = 210 ' Changing value
list.Backcolor = cGray
list.AddFromString("First Item", cBlack, cWhite)
list.SuspendLayout
For i = 1 To 50
list.AddFromString(i, cBlack, cWhite)
Next
list.ResumeLayout
frmMain.Show
End Sub