Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 03-21-2011   #1 (permalink)
Regular Member
C0rrupted's Avatar
Join Date: Sep 2010
Location: Colorado
Posts: 129
Thanks: 37
Default [HELP]Copy and Paste in a ComboBoxEx

This might seem like a noob question, but how would I copy text and paste text into a ComboBoxEx from my Clipboard? I've tried lots of different tuts, but i cant get it. Any help would be appreciated.
C0rrupted is offline
Reply With Quote


Old 03-21-2011   #2 (permalink)
Banned
 
Join Date: Sep 2010
Location: Canada
Posts: 2,056
Thanks: 534
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Wait what do you mean like in coding and clipboard is just paste usually
Spore is offline
Reply With Quote


Old 03-21-2011   #3 (permalink)
Regular Member
C0rrupted's Avatar
Join Date: Sep 2010
Location: Colorado
Posts: 129
Thanks: 37
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Quote:
Originally Posted by Spore View Post
Wait what do you mean like in coding and clipboard is just paste usually
Yes I mean the coding. I need to know how to Paste text into the ComboBoxEx from my clipboard. So far, I have gotten the copy part, but the paste is what I need help with.
C0rrupted is offline
Reply With Quote




Old 03-21-2011   #4 (permalink)
Banned
 
Join Date: Sep 2010
Location: Canada
Posts: 2,056
Thanks: 534
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Oh Do you have team viewer?
Spore is offline
Reply With Quote


Old 03-21-2011   #5 (permalink)
Regular Member
GHO5T BUST3Rs's Avatar
Join Date: Sep 2010
Posts: 3,773
Thanks: 1,599
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Just add items then paste them
__________________
GHO5T BUST3Rs is offline Send a message via AIM to GHO5T BUST3Rs
Reply With Quote


Old 03-21-2011   #6 (permalink)
Regular Member
C0rrupted's Avatar
Join Date: Sep 2010
Location: Colorado
Posts: 129
Thanks: 37
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Quote:
Originally Posted by Spore View Post
Oh Do you have team viewer?
yeah ill pm you my id's
C0rrupted is offline
Reply With Quote


Old 03-21-2011   #7 (permalink)
CLK

CLK's Avatar
Join Date: Sep 2010
Location: Spokane, WA
Posts: 1,592
Thanks: 1,605
Default Re: [HELP]Copy and Paste in a ComboBoxEx

You should be able to change the style of it in the properties (DropDownStyle) to "DropDown". Look for something among those lines... I know that the DotNetBar devs don't like steering too far away from the standard component's properties.
__________________

I'm gay.
CLK is online now
Reply With Quote


Old 03-21-2011   #8 (permalink)
Regular Member
C0rrupted's Avatar
Join Date: Sep 2010
Location: Colorado
Posts: 129
Thanks: 37
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Quote:
Originally Posted by CLK View Post
You should be able to change the style of it in the properties (DropDownStyle) to "DropDown". Look for something among those lines... I know that the DotNetBar devs don't like steering too far away from the standard component's properties.
yeah, its on that option, but still no luck :/

But this is the code that I have for the Copy that worked:
Code:
Clipboard.SetText(ComboBoxEx1.Text)
And this is the code that I have for paste but it doesnt work:
Code:
        If Clipboard.GetDataObject.GetDataPresent(DataFormats.Text) Then
            Clipboard.GetText(ComboBoxEx1.Text)
        End If
C0rrupted is offline
Reply With Quote


Old 03-21-2011   #9 (permalink)
Regular Member
C0rrupted's Avatar
Join Date: Sep 2010
Location: Colorado
Posts: 129
Thanks: 37
Default Re: [HELP]Copy and Paste in a ComboBoxEx

I keep getting this error during debugging when i try to paste text into the ComboBoxEx

"Conversion from string "" to type 'Integer' is not valid."
C0rrupted is offline
Reply With Quote


Old 03-21-2011   #10 (permalink)
CLK

CLK's Avatar
Join Date: Sep 2010
Location: Spokane, WA
Posts: 1,592
Thanks: 1,605
Default Re: [HELP]Copy and Paste in a ComboBoxEx

Quote:
Originally Posted by xC0rrupteDx View Post
Code:
        If Clipboard.GetDataObject.GetDataPresent(DataFormats.Text) Then
            Clipboard.GetText(ComboBoxEx1.Text)
        End If
Clipboard.SetDataObject(ComboBoxEx1.Text, true, 10, 50)

Try that.

Edit: whoops, that's for copying -- which you have working. For paste, try:
Clipboard.GetDataObject().ToString()
Code:
if(Clipboard.GetDataObject().GetDataPresent(DataFormats.Text))
{
       ComboBoxEx1.Text = (string)Clipboard.GetDataObject().GetData(DataFormats.Text); 
    }
That's obviously in C#, but converting should be a breeze.
__________________

I'm gay.

Last edited by CLK; 03-21-2011 at 08:59 PM.
CLK is online now
Reply With Quote
The following user thanked this post: C0rrupted

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:51 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM