Click here to Skip to main content
14,383,185 members
Rate this:
Please Sign up or sign in to vote.
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.
Posted

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100