🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.computer.workshop.live
4 messages
4 total messages Started by Raymond Chow Mon, 01 Jun 1998 00:00
How Can I add some functions in Visual Basic ?
#16
Author: Raymond Chow
Date: Mon, 01 Jun 1998 00:00
10 lines
876 bytes
�

Hi group,
��� I am the beginner in Visual Basic 5. I am making a program and I
want to insert the functions "Copy, Paste and Cut"
I already make the menu bar, but I don't how to set the code of this
part. Does someone can help me ??
��� Thanks your help !
�
Re: How Can I add some functions in Visual Basic ?
#15
Author: Sam Cobb
Date: Sun, 31 May 1998 00:00
17 lines
1240 bytes
Read the help file.  There is so much code in there you'd croak!!!

Sam Cobb
jazzman2@juno.com

Raymond Chow wrote in message <35715B50.9800DE90@geocities.com>...
>
>
>Hi group,
> I am the beginner in Visual Basic 5. I am making a program and I
>want to insert the functions "Copy, Paste and Cut"
>I already make the menu bar, but I don't how to set the code of this
>part. Does someone can help me ??
> Thanks your help !
>
>
Re: How Can I add some functions in Visual Basic ?
#17
Author: GroundHog
Date: Mon, 01 Jun 1998 00:00
25 lines
1432 bytes
Microsoft has a vb group on their public news server

Stefan
-- 
*COSA IT Solutions /MS-OEM/MS-SBNL2
http://www.ozemail.com.au/~billis/cohp/cohp.htm
*Billi's Designer Studio
http://www.users.bigpond.com/kreidi/Studio/billishp.htm
___________________
Nostradamus once said:
"Quia non est nostrum noscere tempora nec momenta"
[It is not for us to know the times or the instants]

Raymond Chow wrote in message <35715B50.9800DE90@geocities.com>...
> 
>
>Hi group,
> I am the beginner in Visual Basic 5. I am making a program and I
>want to insert the functions "Copy, Paste and Cut"
>I already make the menu bar, but I don't how to set the code of this
>part. Does someone can help me ??
> Thanks your help !
> 
>
Re: How Can I add some functions in Visual Basic ?
#14
Author: Ruo Fei Peng
Date: Tue, 02 Jun 1998 00:00
85 lines
3466 bytes

Raymond

I am using VB 3.0 and I think the way to build up menu bar should be same 
in VB5.

If you made the menu already, you should have no problem to code it. You 
just click on the iterm on the menu bar. The code edit window will appear 
and let you input the code. I enclose the details as follows just in case 
you need it because I am not quite sure how far you have reached. 

Create a form with a text box and use the Menu Design window to create a 
MyMenuEdit menu (can be any name),for each of the commands, 

set Caption = Cut, Copy and Paste; * 
set Name = MyMenuEditCut, MyMenuEditCopy and MyMenuEditPaste 

When these done you should see the menu bar. You might have this already.
Then click the each menu iterm place the following code to the correspondent 
iterm.


Sub MyMenuEditCut_Click ()	' Copy selected text to Clipboard.
	ClipBoard.SetText Screen.ActiveControl.SelText
	' Delete selected text.
	Screen.ActiveControl.SelText = ""
End Sub
'******************************************************************

Sub MyMenuEditCopy_Click ()	' Copy selected text to Clipboard.
	ClipBoard.SetText Screen.ActiveControl.SelText
End Sub
'******************************************************************

Sub MyMenuEditPaste_Click ()	' Place text from Clipboard into active control.
	Screen.ActiveControl.SelText = ClipBoard.GetText ()
End Sub


* You can also set it as C&ut, &Copy and &Paste, then you can active it 
by using alt+u, alt+c and alt+p from keyboard as well as by click mouse.

Hope this will give you some help.

Ruo


=========================================================================
            Ruo Fei Peng                       e-mail: r.peng@unsw.edu.au 
 . --_,\    School of Electrical Engineering   Phone : 61-2-93855394 
/       \   University of New South Wales      Fax   : 61-2-93855993 
\_.---._*   Sydney 2052 
       v    Australia 
=========================================================================





On Mon, 1 Jun 1998, Raymond Chow wrote:

>  
> 
> Hi group,
>     I am the beginner in Visual Basic 5. I am making a program and I
> want to insert the functions "Copy, Paste and Cut"
> I already make the menu bar, but I don't how to set the code of this
> part. Does someone can help me ??
>     Thanks your help !
>  
> 
> 
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads