Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
709 views
in Technique[技术] by (71.8m points)

windows - Hide the taskbar using C#

I am running Windows XP 64 bit. I want to hide the taskbar when I run my application.

I tried codes by searching the web. In all those, it hides the task bar. But the problem is, when i open a notepad and maximize it, it is not actually into full screen. Because the space where task bar was there is still blocked with empty space. I want it fit really into full screen mode.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you like to replace the windows shell (taskbar) you'll have to change a registry key.

Changing the default shell (all users):

  1. open regedit (start menu > run, and type in regedit)
  2. go to: HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon.
  3. Change Shell from explorer.exe to your program path and name e.g. c:myKioskAppKiosk.exe

Changing the default shell (only current user):

  1. open regedit (start menu > run, and type in regedit).
  2. go to: HKCUSoftwareMicrosoftWindows NTCurrentVersionWinlogon.
  3. add a new string value (Edit > New > String Value) called shell. and set the value to the path of the new shell e.g. c:myKioskAppKiosk.exe
  4. log out and log back in.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...