Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
WinForms designer error variable is undeclared or unassigned
Tchala B
May 20 2017 5:21 AM
356
Reply
My windows form application form form is giving an error when i change to design mode in visual studio 2015.
It says "The variable 'componentResourceManager' is either undeclared or was never assigned. "
Here is the line with the error
this
.pictureBox1.Image = (Image) componentResourceManager.GetObject(
"pictureBox1.Image"
);
and here is how i initialized the resourcemanager
private
void
InitializeComponent()
{
this
.components = (IContainer)
new
Container();
ComponentResourceManager componentResourceManager =
new
ComponentResourceManager(
typeof
(frmMainMDI));
But when i run the application all the forms load well.What could be the problem?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Duplicate value in datagridview pressing show button
Changing String formate of any column's data in gridview.