Results 1 to 4 of 4

Thread: Error: Argument prompt cannot be converted to type string.

  1. #1
    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,

  2. #2
    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.

  3. #3
    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!

  4. #4
    Join Date
    May 2008
    Posts
    40

    Re: Error: Argument prompt cannot be converted to type string.


Similar Threads

  1. Invalid Procedure or Argument error
    By AlanBernardo in forum Windows Software
    Replies: 5
    Last Post: 02-01-2011, 11:32 PM
  2. Replies: 5
    Last Post: 15-12-2010, 07:18 PM
  3. Replies: 3
    Last Post: 15-09-2010, 06:27 AM
  4. An error occurred in avast! engine: Invalid argument
    By Gadin in forum Networking & Security
    Replies: 4
    Last Post: 10-04-2010, 12:50 PM
  5. How to provide .net url converted string to search engine
    By Broot in forum Software Development
    Replies: 3
    Last Post: 03-08-2009, 02:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,391,524.07552 seconds with 16 queries