question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VB.net 2015 Form Type Mismatch

See original GitHub issue

Using VB 2015 (Visual Studio Enterprise 2015) running with .NET 4.5.2

It simply complains that Form1 cannot be converted to MaterialForm.

BC30311 | Value of type ‘Form1’ cannot be converted to ‘MaterialForm’.

I would say this is a huge problem that can effectively prevent the use of the library, any thoughts?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
GuardianMajorcommented, Sep 3, 2016

@Dutchs I am such a dumbass, I figured out where I borked it. I put the inherit in the wrong place, I put it in the code not the designer, ARGH! and now it works, thank you for your help.

2reactions
Dutchscommented, Sep 3, 2016

That is strange, i have been able to inherit a Form from MaterialForm without any issues using the provided sample code, with vb.net 4.5.2 (VS2015)

Just so we are on the same page: You have added a refrence to MaterialSkin and added a Form and in Form1.Designer.vb you changed: Inherits System.Windows.Forms.Form to: Inherits MaterialSkin.Controls.MaterialForm and at this point the Designer for Form1 displays a MaterialForm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type mismatch - Visual Basic
Learn more about: Type mismatch (Visual Basic) ... You attempted to convert a value to another type in a way that is not...
Read more >
database - Data Type Mismatch Vb.net Access
The error message talks about a mismatch between the datatypes of the values in your parameters and the datatype of the columns on...
Read more >
Type Mismatch while calling VB6 function from VB.NET
Trying to call a vb6 function in an OCX that has a prototype Initialize(byref Object,Optional byref Object) from VB.NET. VB.
Read more >
VBA Type Mismatch Error (Error 13)
Type Mismatch (Error 13) occurs when you try to specify a value to a variable that doesn't match with its data type. In...
Read more >
how to fix vb.net error data type mismatch in criteria ...
Parse your user input into a DateTime value, and pass that as a parameter - your problem will go away, and you will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found