When I use the above code, I get an error saying "nonstatic method cant be accessed from a static context."
So, I simply used but still nothing .
I get a BLACK background with blue text written on it .
If I change the color quality to 32 bit in the DisplayMode() constructor , the background doesn't appear .
It simply writes the text on the desktop.
Hi, I have tried to compile and run your program. I see the red background, but after a while an exception is thrown:
Joined: Jan 01, 2012
This means that the display mode is not supported by the videocard. Well , I will run the code on my desktop as well . And try different display modes
By the way , the screen size of my laptop is 1366 x 768 , color quality = 32 bit , refreshrate = 60 .
This is strange that my laptop didn't give any exception about the invalid display mode. I used command line to compile and run the programs . which IDE did you(Mr Nam Ha Minh) use ?
I think it should not make any difference but we never know .
thanks for replying