Khan,
You'll have to replace the item in the RowSource with the updated value and then call the lst.Requery() method to get it to see the change. How you do the replace would depend on the RowSourceType.
>Thanks for replying i tried in the rightclick event of the listbox
>rname=INPUTBOX('Enter the name for the file','Rename')
>if empty(rname)
> messagebox('You have to enter correct name for the file')
> return 0
>endif
>this.Value=rname
>this.Refresh
>
>
>but the item doesn't get refreshed.what am i missing.