Talk2Tom11 Posted September 16, 2004 Posted September 16, 2004 I wanted to know if someone had a piece of code the this... I hav items being send to a lstbox. I want the newest item to be sent to a textbox whenever there is a new item. Quote
Administrators PlausiblyDamp Posted September 16, 2004 Administrators Posted September 16, 2004 What do you mean by items being sent to a listbox? What is sending them? If you are just responding to user input and adding them to the list then you could just set the textbox at the same time, if this ischecking a database just set the textbox to the item as you add it to the list box. Perhap if you gave a bit more detail and indicated if this is web or windows app people may be able to offer more help. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Talk2Tom11 Posted September 17, 2004 Author Posted September 17, 2004 What do you mean by items being sent to a listbox? What is sending them? If you are just responding to user input and adding them to the list then you could just set the textbox at the same time, if this ischecking a database just set the textbox to the item as you add it to the list box. Perhap if you gave a bit more detail and indicated if this is web or windows app people may be able to offer more help.? I am writing this in a windows app. There is a client version and server version, and main client sends strings to the server and then out to a lstbox in the other clients. I want to have the latest item that is sent to the client, then sent to a txtbox from the lstbox. Is this possible. Quote
georgepatotk Posted September 17, 2004 Posted September 17, 2004 what u could do is to refresh the items. There are few approaches u could use. Can u please let me know whether you are using databases for storing the items? and if there is databases, how you send the items to the client side? My idea is if you are using databases, try to create a dataset for the items in server side and send it over the client side (of course with serilization). But, if the size is big, you need to do some algorithm to send only latest item and client side will display/add the latest item into the listbox. If u don't mind, please describe you workflow for this transaction so that mates can have a better view on your problem. Quote George C.K. Low
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.