UserControl Copy Paste not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ink

    UserControl Copy Paste not working

    Hi All,

    I have created a user control that has a textbox and a button on it.
    For some reason this control will not let me Cut, Copy or Paste into the
    textbox.

    I load the control at runtime as it makes up a control array.

    Is there a property that i need to set?

    Thanks,
    ink

  • ink

    #2
    Re: UserControl Copy Paste not working

    I have got it working buy adding a context menu to the text box and
    assigning it short cut keys.

    I have also coded the following in the click events

    Clipboard.SetTe xt(txtClipboard .SelectedText);

    txtClipboard.Se lectedText = Clipboard.GetTe xt();








    "ink" <ink@notmyemail .comwrote in message
    news:eLOIj5DOJH A.3636@TK2MSFTN GP05.phx.gbl...
    Hi All,
    >
    I have created a user control that has a textbox and a button on it.
    For some reason this control will not let me Cut, Copy or Paste into the
    textbox.
    >
    I load the control at runtime as it makes up a control array.
    >
    Is there a property that i need to set?
    >
    Thanks,
    ink

    Comment

    Working...