By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 943 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Exception.InnerException error - need help

P: n/a
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
Mar 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Fixed....disregard...ty!
"KitKat" <ki****@nospam.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
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

Mar 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.