Click here to Skip to main content
15,400,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have inherited a project from another code writer. In the project this code:

Dim culture_info As New System.Globalization.CultureInfo(locale_name)
Dim manager As New ComponentResourceManager(form_cur.GetType)

manager.ApplyResources(form_cur, "$this", culture_info)

Leads to the main form being resized (becomes smaller).

I understand that this has something to do with the original size of the form. However when I implement this method on a derived new project, the main form does not change size.

What I have tried:

In the new project, I have tried resizing the form and closing the project. Assuming that the new size would be saved through the Me.Settings call.

However on restarting the new project the form's size remains as programmed.

Can someone explain what is happening in the original project? Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900