Mahamad Alî
Mahamad Alî

Reputation: 1

Message=Unable to cast object of type 'System.Windows.Forms.PlaceholderTextBox' to type 'Bunifu.UI.WinForms.BunifuTextBox'

I'm trying to convert a bunifu text into a sender in the key down event

private void TxtName_KeyDown(object sender, KeyEventArgs e)
    {
        BunifuTextBox textBox = (BunifuTextBox)sender;
    } 

but im having this error

Upvotes: 0

Views: 104

Answers (0)

Related Questions