Programmatically change screen resolution?

前端 未结 4 885
感动是毒
感动是毒 2020-11-28 12:20

Is there a way to programmatically change the screen resolution or enable/disable multiple monitors in Windows XP? For example to change from 1024x768 with one monitor to 1

4条回答
  •  感动是毒
    2020-11-28 12:46

    Read the given link its easy.

    just download the dll the good to go..

    MyTactics.blogspot.in

    Screen Srn=Screen.PrimaryScreen;
    
    int tempWidth=Srn.Bounds.Width;
    int tempHeight=Srn.Bounds.Height;
    Console.WriteLine("Current Screen width is {0} and height is {1}.",
                       tempWidth,
                       tempHeight);
    

提交回复
热议问题