Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Tue, 1 Jul 2008 02:30:00 -0700,    group: microsoft.public.msdn.general        back       


how to convert the items of a listbox to required data type   
hi...
im doing an example based on window application..in that i need to 
manupulate the item values of a listbox.
in that i have written as
total = total + Convert.ToInt32(listBox1.SelectedItem);
where i have declared the items of list box as int withsome value initialised
and total is also an int variable..
but iam getting some exception like "input string is not in correct format".
so can anyone plz rectify this statement...

thank u in advance..
date: Tue, 1 Jul 2008 02:30:00 -0700   author:   sowjanya

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us