Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista Tutorial - problem with forms

Reply
 
Old 08-27-2008   #1 (permalink)
xxx
Guest


 
 

problem with forms

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?


My System SpecsSystem Spec
Old 08-27-2008   #2 (permalink)
mayayana
Guest


 
 

Re: problem with forms

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?
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Forms and WLM Live Mail
simulate continuous forms & subforms in a windows forms application .NET General
IE 7 and sending forms Vista General
My Forms are cut off Vista General
Trying Again - Flash Forms Problem in Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46