New topic: Clearing A TextBox Before Dropping Text
<http://forums.realsoftware.com/viewtopic.php?t=34551> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Knightlite Post subject: Clearing A TextBox Before Dropping TextPosted: Thu Jul 08, 2010 1:02 pm Joined: Thu Apr 26, 2007 7:29 am Posts: 157 Location: Middlebury, CT ]Hi, I have a listbox and several textboxes that are able to receive text from the listbox by dragging and dropping. The ListBox has this code: Code:Drag.Text=Me.List(Row)+chr(13) //get the text Return True The text drags nicely from the ListBox to the Textbook, but it adds test to existing text already in the box. I was wondering if anyone knows a way to eliminate the text from the box before the drop event happens. I tried to put this code in the DragEnter event: Code: txt1.Text="" Return True This works great, but if I pass the mouse over any of the other textboxes it deletes the text from those boxes as well. I was wondering if anyone knew how to delete just the text in the targeted textbox, and not other boxes the mouse moves over. Any help would be appreciated. Jim Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
