Running form in class library

vinodyadav21

Member
Joined
May 11, 2012
Messages
6
Programming Experience
1-3
hi this is vinod kumar

i have a query iam able to add items in listbox from form 2 to form1 from windows application in vb.net
but iam unable to add items in listbox from form 2 to form1 why can any one tell please its urgent

in class library iam unable to add
 
There's no specific technical impediment to what you're asking for. If it's not working it is because you're doing it wrong. As you haven't told us what you're doing or what happens when you do it, we can't tell you what's wrong with it. Please ALWAYS provide a FULL and CLEAR explanation of the problem.
 
adding items in listbox of form one from form 2 .
if we run from class library we will specify
in form2 when icall from1
iam writing

form1 i have one listbox(already i have some items)
and form 2 i have another listbox

from this listbox iam adding some more items in form1 listbox

dim form1 as new form1
form1=new form1

form1.listbox1.items.add(listbox1.selecteditem)

iam unable to add the items in the listbox of form1

when iam debugging iam getting the items in listbox of form1 is 0 please can any one help
 
here sample example for my problem,

form1 code



listbox1.items.add("1101")

listbox1.items.add("1201")



form2 code


dim form as form1
form =new form1

form.items.add(listbox1.selected item)

iam unable to add any items in form1 with this code
 
Back
Top