Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-02-2009
Member
 
Join Date: Jan 2009
Posts: 44
Error: Argument prompt cannot be converted to type string.

Hi,
I have this following problem in Visual studio 2005, VB dot net application.
On the form I have a listbox & textbox, I want that when i select a item from listbox then it shows in the textbox. SelectedIndexChanged event works fine for this, but the problem is this event fires when I fill the listbox with dataset, and I get the error: Argument prompt cannot be converted to type string.

Regard,
Reply With Quote
  #2  
Old 06-02-2009
Member
 
Join Date: May 2008
Posts: 40
Re: Error: Argument prompt cannot be converted to type string.

Hello Kiran123!
Why dot you use RemoveHandler & AddHandler?

call RemoveHandler before filling the dataset and AddHandler
after filling the dataset to avoid the handler being hit during the fill.
Reply With Quote
  #3  
Old 06-02-2009
Member
 
Join Date: Jan 2009
Posts: 44
Re: Error: Argument prompt cannot be converted to type string.

Well I am not sure how to do this can you provide me any sample code for the same?

Thanking you in advance!
Reply With Quote
  #4  
Old 06-02-2009
Member
 
Join Date: May 2008
Posts: 40
Re: Error: Argument prompt cannot be converted to type string.

Hi,
For the time being start reading!
http://msdn.microsoft.com/en-us/libr...93(VS.71).aspx

http://codebetter.com/blogs/peter.va...03/130245.aspx
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error: Argument prompt cannot be converted to type string."
Thread Thread Starter Forum Replies Last Post
Invalid Procedure or Argument error AlanBernardo Windows Software 5 02-01-2011 11:32 PM
During bootup I get this error message ? Error invoking method: main (java.lang.string)? Karsten M Windows Software 5 15-12-2010 07:18 PM
Hotsync Outlook Calendar Error "Cannot be converted for use in handheld" Solution Puloma Portable Devices 3 15-09-2010 06:27 AM
An error occurred in avast! engine: Invalid argument Gadin Networking & Security 4 10-04-2010 12:50 PM
How to provide .net url converted string to search engine Broot Software Development 3 03-08-2009 02:29 PM


All times are GMT +5.5. The time now is 06:49 PM.