Exception.InnerException error - need help

K

KitKat

Why am I getting this:

An error occurred creating the form. See Exception.InnerException for
details. The error is: Could not find any resources appropriate for the
specified culture or the neutral culture. Make sure
"Rvideo.frmRvideo.resources" was correctly embedded or linked into assembly
"Rvideo" at compile time, or that all the satellite assemblies required are
loadable and fully signed.
Imports System.Reflection

Public Class ApplicationControls

Public Shared Function FindControl(ByVal owner As Form, ByVal name As
String) As Control

Dim propInfo As PropertyInfo = _

owner.GetType().GetProperty(name, BindingFlags.IgnoreCase Or _

BindingFlags.Instance Or BindingFlags.NonPublic Or BindingFlags.Public)

If Not propInfo Is Nothing Then

Dim value As Object = propInfo.GetValue(owner, Nothing)

If TypeOf value Is Control Then

Return value

End If

End If

Return Nothing

End Function

End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top