Link to home
Start Free TrialLog in
Avatar of emdsft
emdsft

asked on

DragDrop registration did not succeed

I am using Visual Studio 2005.

In the event handler of a Timer on a form I am setting some of the fields visible. But I get a "DragDrop registration did not succeed" error. This does not happen if I just the fields' enabled property.

Can someone please tell me what I need to do?
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

What does your form do?

Can you show us the code in the Timer event?
Avatar of emdsft
emdsft

ASKER

Actually its not a timer but an event from a DLL  

   Private Sub Core_Tufter_YarnFeedEnabledChanged(ByVal Index As Integer, ByVal Enabled As Boolean)
        Core.StatusPnlArray(Index).Enabled = Enabled
        Core.SettingsValLblArray(Index).Visible= Enabled             '// This is where I get the error.
        Core.FeedTypeLblArray(Index).Visible= Enabled
        If Not Enabled Then
            Core.StatusPnlArray(Index).BackgroundImage = My.Resources.YarnFeed_Gray
            Core.SettingsValLblArray(Index).Text = ""
            Core.FeedTypeLblArray(Index).Text = ""
        End If
    End Sub

I have set Control.CheckForIllegalCrossThreadCalls = False in Form Load.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In general,

    Control.CheckForIllegalCrossThreadCalls = False

is a BAD idea.  That is why it is True by default.