Click here to Skip to main content
16,018,249 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: lock dextop using vb.net app Pin
Dave Kreskowiak4-Jul-05 3:22
mveDave Kreskowiak4-Jul-05 3:22 
GeneralRe: lock dextop using vb.net app Pin
paragraut4-Jul-05 8:23
paragraut4-Jul-05 8:23 
GeneralRe: lock dextop using vb.net app Pin
Christian Graus4-Jul-05 13:12
protectorChristian Graus4-Jul-05 13:12 
GeneralGIVING ANIMATION TO A FORM Pin
LAYEEQ AHMED KHAN3-Jul-05 9:32
LAYEEQ AHMED KHAN3-Jul-05 9:32 
GeneralRe: GIVING ANIMATION TO A FORM Pin
Christian Graus3-Jul-05 11:58
protectorChristian Graus3-Jul-05 11:58 
GeneralRe: GIVING ANIMATION TO A FORM Pin
Yulianto.3-Jul-05 16:51
Yulianto.3-Jul-05 16:51 
QuestionHow to print tiff file.... Pin
KRathor3-Jul-05 5:28
KRathor3-Jul-05 5:28 
GeneralSystemParametersInfo Pin
rlx5003-Jul-05 2:33
rlx5003-Jul-05 2:33 
Hi
I'm working with VBA for MS access. A visually impaired user has high contrast set on his pc and when printing snapshot reports they appear in high contrast.

To resolve the problem I was trying to write a sub routine that would check if high contrast was set and if true switch it off before printing and then switch it back on after printing.

I was using the SystemParametersInfo api. The code I was using is below.

const SPI_GETHIGHCONTRAST = 66
const SPI_SETHIGHCONTRAST = 67
const SPIF_SENDWININICHANGE = &H2
const SPIF_UPDATEINIFILE = &H1

Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" ( _
ByVal uAction As Long, _
ByVal uParam As Long, _
ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long

Sub TestCode()
a = SystemParametersInfo(SPI_GETHIGHCONTRAST, 0, 0, SPIF_SENDWININICHANGE Or SPIF_UPDATEINIFILE)
MsgBox a
End Sub

Not sure what I'm doing wrong but the SystemParametersInfo function returns if high contrast is on or off.

Any help with this would really appreciated.
GeneralRe: SystemParametersInfo Pin
Anonymous3-Jul-05 15:07
Anonymous3-Jul-05 15:07 
GeneralRe: SystemParametersInfo Pin
rlx5004-Jul-05 9:32
rlx5004-Jul-05 9:32 
GeneralRe: SystemParametersInfo Pin
Anonymous6-Jul-05 18:33
Anonymous6-Jul-05 18:33 
GeneralRe: SystemParametersInfo Pin
rlx5007-Jul-05 7:59
rlx5007-Jul-05 7:59 
GeneralRe: SystemParametersInfo Pin
Anonymous7-Jul-05 16:23
Anonymous7-Jul-05 16:23 
Generalcontrol on word save prompt msg Pin
paykani2-Jul-05 19:28
paykani2-Jul-05 19:28 
Generalip address Pin
Binary01102-Jul-05 16:52
Binary01102-Jul-05 16:52 
GeneralRe: ip address Pin
Mohamed Ishak2-Jul-05 19:23
professionalMohamed Ishak2-Jul-05 19:23 
GeneralListView open folder path Pin
Algera2-Jul-05 10:35
sussAlgera2-Jul-05 10:35 
GeneralRe: ListView open folder path Pin
Anonymous6-Jul-05 7:16
Anonymous6-Jul-05 7:16 
Generalhelp on socket programming in vb.net Pin
boy2122-Jul-05 7:48
boy2122-Jul-05 7:48 
GeneralRe: help on socket programming in vb.net Pin
Mohamed Ishak2-Jul-05 19:29
professionalMohamed Ishak2-Jul-05 19:29 
QuestionAnybody has the TAPI SDK for Win2K? Pin
Member 20898122-Jul-05 0:52
Member 20898122-Jul-05 0:52 
AnswerRe: Anybody has the TAPI SDK for Win2K? Pin
Dave Kreskowiak2-Jul-05 11:21
mveDave Kreskowiak2-Jul-05 11:21 
GeneralRe: Anybody has the TAPI SDK for Win2K? Pin
Member 208981212-Jul-05 8:49
Member 208981212-Jul-05 8:49 
GeneralRe: Anybody has the TAPI SDK for Win2K? Pin
Dave Kreskowiak12-Jul-05 11:53
mveDave Kreskowiak12-Jul-05 11:53 
QuestionHow to populate list view Pin
kalyan.n@dsolusys.com1-Jul-05 18:51
kalyan.n@dsolusys.com1-Jul-05 18:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.