Alex Rivera | Logout

Is there a difference between System.Windows.Clipboard and System.Windows.Forms.Clipboard?

Asked 2012-04-02T07:30:15.063
14

Is there a difference between System.Windows.Clipboard and System.Windows.Forms.Clipboard?

The documentation for the System.Windows.Forms version specifically states that to store an object on the clipboard it has to be serializable and your app has to have the STA model, but the documentation for the System.Windows version doesn't list either as a requirement. Is it? Why have two classes? What's the difference?

In case it matters, our app is WPF and yes I know the former is for WPF and the latter for Windows.Forms... but why? Why not just always use the System.Windows version even with forms-based apps considering it's just a reference and is less restrictive in its use, and an object is just an object in .NET.

Edit
Report

1 Answer

0

System.Windows namespace is about WPF(new way of creating GUI in Windows), while System.Windows.Forms namespace contains elements about Forms(old style).

answered 2012-04-02T07:33:59.230

Your Answer