I'm facing many problems using Clipboard class because not all methods works from first call, for example i'm using the following code to get text
I want to use clipboard's API GetClipboardData and SetClipboardData, there are many VB6 codes uses these functions but i cannot convert to VB.NET
vb Code:
On Error Resume Next Clipboard.Clear() Clipboard.Clear() Clipboard.Clear() Dim h As String = String.Empty Do h = Clipboard.GetText() My.Application.DoEvents() Loop Until h.Length > 0
I want to use clipboard's API GetClipboardData and SetClipboardData, there are many VB6 codes uses these functions but i cannot convert to VB.NET