First, your in the wrong group. This group is
for VBScript, hence the name.
Are you using some kind of VB? If you're using
VB5/6 then you have the syntax wrong, and you
can't call a sub with parentheses. You want:
Frm.List1.AddItem "value"
For further questions post to a VB group:
microsoft.public.vb.general.discussion
If you're using VB.Net then you need to ask in a
..Net group. (VB.Net has been misleadingly renamed
just "VB" and each version has up to 3 names besides,
so it can get confusing wading through Microsoft's
marketing chaos! VB.Net includes anything called
VB7, VB8, VB9, VB 1, VB 1.1, VB 2, VB 3, VB 2003,
VB 2005, VB2008. You might find that any of those
are also sometimes referreed to as "VB.Net", as in
"VB.Net 2008". They're *all* VB.Net.)
microsoft.public.dotnet.languages.vb
Quote:
> hi ahave a three forms
> ON the first form i have button and i create second forms by
> dim frm = new form2
> frm2.show()
>
> on the cecond form i have listbox
> and i want add record form thrird forms
>
> i have a button on second form and create third forms by:
> dim frm3 = new form3
> frm3.show()
>
>
> on third form i have a button and i want add record to listbox on second
> form by:
> frm.listbox.items.add("value") or form2.listbox.items.add("value")
> bu is not work why?
>