Jump to content
Xtreme .Net Talk

Check my code please


Recommended Posts

Posted

Hi,

 

On the form, there is a PictureBox. If I assign an image for the picturebox, following code not works. If not assign the image, works fine. If delete class tryClass block, no error (even assign the image to the pictureBox).

 

Any idea?

 

Public Class tryClass

Private mProperty As Integer

Property tryProperty() As Integer

Get

Return (mProperty)

End Get

Set(ByVal Value As Integer)

mProperty = Value

End Set

End Property

End Class

 

Public Class Form1

Inherits System.Windows.Forms.Form

 

#Region " Windows Form Designer generated code "

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

 

End Sub

 

End Class

Posted

Hi,

 

I made that simple and stil have the error message so that you all can check easily.

 

The error message was:

 

An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll

 

Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Form1.resources" was correctly embedded or linked into assembly "MyMultiThread".

baseName: Form1 locationInfo: MyMultiThread.Form1 resource file name: Form1.resources assembly: MyMultiThread, Version=1.0.979.1028, Culture=neutral, PublicKeyToken=null

 

Highlighted following line in 'Form Designer generated code':

Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Bitmap)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...