Ok I got it setup so when I click the apply button the resolution will change if needed. But when I do I get a memory access violation. Im using BUI gui and it returns display$ from the combo box.
if display$ = "800x600"
width = 800
height = 600
endgraphics
Graphics3d width, height, 0, 1
endif
if display$ = "1024x768"
width = 1024
height = 768
Graphics3d width, height, 0, 1
endif
if display$ = "800x600"
width = 800
height = 600
endgraphics
Graphics3d width, height, 0, 1
endif
if display$ = "1024x768"
width = 1024
height = 768
Graphics3d width, height, 0, 1
endif