This line suggests that you have created your own constructor for the
form:
>Dim Signon =As New frmSignon(_populatelastlogon) Executes ok
e.g. something like:
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
Public Sub New(ByVal blnTest As Boolean)
MyBase.New()
'Do nothing
End Sub
where calling the custom constructor does not result in a call
to InitializeComponent, which is where your listbox is created.
The fact that the "Text" property can be set in the example
you are working from is because the Form class is derived
from the Control one, which contains a Text property.
But as you did not supply the code for the constructor for
frmSignon(<something>), this is just speculation.
/JB
>' Hi all
>I have been using the following example from the Dot Net Help screen with
[quoted text clipped - 39 lines]
>
>Roger Stenson
Roger Stenson - 27 Feb 2005 18:13 GMT
Hi Joergen
Thank you for your advice and the speed of its delivery. You not only solved
my problem but also persuaded me to read the advanced sections of the text I
am using to convert from VB6 to .Dot Net. I now more fully understand the
context of your remarks and the differences between the two.
Roger Stenson
> This line suggests that you have created your own constructor for the
> form:
[quoted text clipped - 73 lines]
>>
>>Roger Stenson