Solved

Mouse clicking uestion

Posted on 2001-06-10
6
128 Views
Last Modified: 2010-05-02
I have command button, which i need to select one item
in the text box by mouse clicking and moving that one item
to a second text box.

Any one have any ideas?
0
Comment
Question by:SDGEORGEC
6 Comments
 
LVL 2

Expert Comment

by:Microsoft
ID: 6174675
if you have a command button and you want to transfer the details from text box 1 to text box 2 then follow this code below,

private sub command_click()

text2=text1

end sub

im still not sure thats what you want



0
 
LVL 2

Expert Comment

by:Microsoft
ID: 6174680
or do you mean you have a listbox and you want to beable to click on that item and make it appear in a second text box?
0
 
LVL 50

Accepted Solution

by:
Ryan Chong earned 50 total points
ID: 6175495
Hi SDGEORGEC, text2=text1.seltext?

0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 1

Expert Comment

by:nikelsh
ID: 6175736
hi, SDGEORGEC

as per i understood u have two text box and command button
in between that and wanted selected item goes on click to the second textbox. A seggesation why do'nt u use insted of text box listbox.

and use this code for transfering data from one listbox to another
 
Private Sub List1_Click(Index As Integer)
Select Case Index
    Case 0
       tem = List1(0).Text
    Case 1

End Select
End Sub

Private Sub Command1_Click()
On Error GoTo handler:
 
      If tem = "" Then Exit Sub
         List1(1).AddItem tem
exit sub
handler:
End Sub
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7135848
Hi SDGEORGEC,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept ryancys's comment(s) as an answer.

SDGEORGEC, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7168356
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question