You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDataObjectDataObject= NativeClipboard.CreateEmptyDataObject();
DataObject.SetData("MyCustomFormat","My Custom String");//Throw in here
NativeClipboard.SetDataObject(DataObject);
Example:
Vanara/PInvoke/Shell32/Clipboard.cs
Line 756 in 2829327
Replace "attr.EncodingType" with "attr?.EncodingType" should help fix this issue. Variable "attr" might be null in this case.
The text was updated successfully, but these errors were encountered: