Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource File Question 1

Status
Not open for further replies.

imterpsfan3

Programmer
Jul 22, 2005
160
US
I am currently running Visual Studio.NET 2003. Yet in a Windows Application I'm noticing in the form resource file, that it lists Mscorlib Version 1.0.0.5000.0. That doesn't seem right to me. Should it map to Version 1.1?

I'm also having some strange behavior in the form. I only have one btnEdit button, yet when I double click it it wires the click event to btnEdit_Click_1. I am also not able to disable it in code. However I have 4 other buttons on the form where this behavior does not occur.

Thanks in advance

 
It sounds like your resource (resx) file is screwed. Did you make changes to the InitializeComponent() section in code manually?

If you can create a new form and start fresh - that would be a good idea.

Generally, btnEdit_Click_1 is created when you re-handle the Click event and the code for btnEdit_Click already exists.

as for mscorlib, 1.0.0.5000.0 is normal. Mscorlib and .Net framework v1.1 are 2 very different things.
 
Thanks for the info. It's possible I ran into problems making changes in the InitalizeComponent section. Thanks for the info. I was concerned that something might have gotten corrupted. I was also concerned that I had 3 different versions (1.0,1.1,2.0) of the .NET framework loaded on my machine.

I deleted every reference I had to btnEdit and still when I add it to the form, it doesn't attach the correct event handler to the click event.

The build compiles without any problem. But I'm going to have to migrate this to a new project or new form and see what happens.

 
When you searched for every instance of btnEdit, did you have "Search Hidden Text" checked?

You should have found something like:

this.btnEdit.Click += new System.EventHandler this.btnEdit_Click);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top