|
-
May 19th, 2010, 03:20 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Copy to clipboard
Anyone know how you copy something from a label to a clipboard. (The Ctrl + C) ? I think its called clipboard... =)
//Thanks in advance
//Thomas
My hobbies:
Vb 6.0, Studio 2010, Webbdesign ( PHP, Mysql, CSS, Javascript, HTML)
Programming hobbies:
Vb 6.0: Work, Vb 2010: Login system to acces internet game, Webbdesign: Creating an advanced Text-based browser-game Called Banner
Other word:
Programming a game and an API to the game, while working and learning and
P.S. I am still a basic programmer so i listend to every advice i get
-
May 19th, 2010, 03:34 AM
#2
Re: Copy to clipboard
Code:
Private Sub Command1_Click()
Clipboard.SetText Label1.Caption
End Sub
...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
May 19th, 2010, 03:40 AM
#3
Thread Starter
Hyperactive Member
Re: Copy to clipboard
Thank you akhil =) Youre allways here =)
My hobbies:
Vb 6.0, Studio 2010, Webbdesign ( PHP, Mysql, CSS, Javascript, HTML)
Programming hobbies:
Vb 6.0: Work, Vb 2010: Login system to acces internet game, Webbdesign: Creating an advanced Text-based browser-game Called Banner
Other word:
Programming a game and an API to the game, while working and learning and
P.S. I am still a basic programmer so i listend to every advice i get
-
May 19th, 2010, 03:43 AM
#4
Re: Copy to clipboard
You're welcome...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
May 19th, 2010, 04:40 AM
#5
Thread Starter
Hyperactive Member
Re: Copy to clipboard
for some reason it only worked first time. after that it doesnt change as i press the button...
i got the code in label1.click if that makes any diffrent.
My hobbies:
Vb 6.0, Studio 2010, Webbdesign ( PHP, Mysql, CSS, Javascript, HTML)
Programming hobbies:
Vb 6.0: Work, Vb 2010: Login system to acces internet game, Webbdesign: Creating an advanced Text-based browser-game Called Banner
Other word:
Programming a game and an API to the game, while working and learning and
P.S. I am still a basic programmer so i listend to every advice i get
-
May 19th, 2010, 04:44 AM
#6
Re: Copy to clipboard
Try this:
Code:
Private Sub Label1_Click()
Clipboard.Clear '~~~ This will clear the clipboard contents
Clipboard.SetText Label1.Caption '~~~ Copies the caption to the Clipboard
End Sub
...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
May 19th, 2010, 04:45 AM
#7
Thread Starter
Hyperactive Member
Re: Copy to clipboard
thank you that works perfect =)
My hobbies:
Vb 6.0, Studio 2010, Webbdesign ( PHP, Mysql, CSS, Javascript, HTML)
Programming hobbies:
Vb 6.0: Work, Vb 2010: Login system to acces internet game, Webbdesign: Creating an advanced Text-based browser-game Called Banner
Other word:
Programming a game and an API to the game, while working and learning and
P.S. I am still a basic programmer so i listend to every advice i get
-
May 19th, 2010, 06:05 AM
#8
Thread Starter
Hyperactive Member
Re: [RESOLVED] Copy to clipboard
Thanks for marking this resolved =)
My hobbies:
Vb 6.0, Studio 2010, Webbdesign ( PHP, Mysql, CSS, Javascript, HTML)
Programming hobbies:
Vb 6.0: Work, Vb 2010: Login system to acces internet game, Webbdesign: Creating an advanced Text-based browser-game Called Banner
Other word:
Programming a game and an API to the game, while working and learning and
P.S. I am still a basic programmer so i listend to every advice i get
-
May 19th, 2010, 09:11 AM
#9
Re: [RESOLVED] Copy to clipboard
You're welcome....
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|