Hi guys,
well i have a application which changes the resoloution on the computer (works fine)

i have the code to change it back to the original, say on a button click

however i dont know the code for running it when the application is exited as i need to change it back when the application exits.

I know people hate there resoloution being changed but this is for a particular purpose not the general public so it is fine.

Thanks,
Matt

What you need to do is as your app starts is to make notes of the current resolution, and then set the resolution to that as your app exits.

yes ive got the code to store it and reset it, its jsut i dont know where to put it so it runs as the app exits, i mean i could do it with jsut the exit button yes, but what about say alt f4 ect

If its a windows app, then the main forms "onclose" event would suffice

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.