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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with screen resolution...

Status
Not open for further replies.

k99

Programmer
Aug 21, 2003
2
0
0
FR
I try to get the screen resolution but Screen.PrimaryScreen.Bounds.Width always return 1024 even if I change the resolution. Why ????
Thank you for your help and don't hesitate to ask more information.
 
Hmm, what does your code look like? I could not reproduce this problem you had...

Regards,
John
 
What I have forgotten to say is that I work with Web forms in an aspx web form...

if(Screen.PrimaryScreen.Bounds.Width.ToString().Equals("800"))
{
dgLibelle.HeaderStyle.Font.Size = 5;
dgWeeklyFacturablesActivities.ItemStyle.Font.Size= 5;
dgWeeklyInfacturablesActivities.ItemStyle.Font.Size= 5;
dgWeeklyAbsencesActivities.ItemStyle.Font.Size = 5;
dgWeeklyState.ItemStyle.Font.Size= 5;
dgWeeklyComments.ItemStyle.Font.Size= 5;
}
else
{
dgLibelle.HeaderStyle.Font.Size= 8;
dgWeeklyFacturablesActivities.ItemStyle.Font.Size= 8;
dgWeeklyInfacturablesActivities.ItemStyle.Font.Size= 8;
dgWeeklyAbsencesActivities.ItemStyle.Font.Size= 8;
dgWeeklyState.ItemStyle.Font.Size= 8;
dgWeeklyComments.ItemStyle.Font.Size= 8;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top