Hi, I have another problem. Using EnumDisplaySettings no refresh rate frequency is returned in 9x, but works fine in nt/2k. In 9x only value 0 is returned. I am completely stuck on this, as I can set display modes on 2k/xp fine but have had to disable.

If anyone knows the way around this or has WORKING code please let me know.

Thanks,

Andrew
nvmax.com

Dim lindex As Integer
nv.display(2).Clear
Dim tDevMode As DEVMODE
tDevMode.dmSize = Len(tDevMode)

Do
If EnumDisplaySettings(Int(Right(devicenum, 1)) + displayn - 1, lindex, tDevMode) = 0 Then: Exit Do
lindex = lindex + 1

If Val(tDevMode.dmPelsWidth) & " by " & Val(tDevMode.dmPelsHeight) = nv.display(0).Text Then
If tDevMode.dmBitsPerPel & " Bits" = nv.display(1).Text Then
nv.display(2).AddItem tDevMode.dmDisplayFrequency & " Hertz"
End If
End If

Loop