Highlighted
Absent Member.
Absent Member.
580 views

Button display in windows 2012 server

Jump to solution

Button control is being displayed as expected in windows 7 machine but in 2012 server it displays more like a label(just as s flat control , doesn't highlight the borders when focused) .

Is there anything i need to take care of in 2012 server side?

This is a winforms application developed using visual cobol 2.3

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Button display in windows 2012 server

Jump to solution

saratkumar43,

From your description I think that your 2012 Server is running with a different Visual Style to your Windows 7 machine. See Windows Visual Styles for a detailed description on visual styles. The flat style is the default appearance on newer versions of Windows.

When you create a Winform application the main program contains the following :

          invoke type System.Windows.Forms.Application::EnableVisualStyles()

You can remove that line if you want your application to retain the 3D-style controls, but I would not recommend doing that because it will make your application have a different appearance to other applications running on the 2012 Server.

Gael

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Button display in windows 2012 server

Jump to solution

saratkumar43,

From your description I think that your 2012 Server is running with a different Visual Style to your Windows 7 machine. See Windows Visual Styles for a detailed description on visual styles. The flat style is the default appearance on newer versions of Windows.

When you create a Winform application the main program contains the following :

          invoke type System.Windows.Forms.Application::EnableVisualStyles()

You can remove that line if you want your application to retain the 3D-style controls, but I would not recommend doing that because it will make your application have a different appearance to other applications running on the 2012 Server.

Gael

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.