how my computer will be open

Thread Solved

Join Date: Jul 2008
Posts: 471
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 24
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

how my computer will be open

 
0
  #1
Mar 7th, 2009
If I click a button how my computer will be open? I want I click a button then my computer will be open.
help me with my computer, control panel
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 821
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 150
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: how my computer will be open

 
0
  #2
Mar 7th, 2009
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Shell "rundll32.exe shell32.dll,Control_RunDLL"
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,094
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: how my computer will be open

 
0
  #3
Mar 7th, 2009
then you need to push the power button on your computer.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 821
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 150
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: how my computer will be open

 
0
  #4
Mar 7th, 2009
Originally Posted by debasisdas View Post
then you need to push the power button on your computer.
No that would be how my computer on not how to open the box to my computer
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 471
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 24
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: how my computer will be open

 
0
  #5
Mar 8th, 2009
Dear Deba what your answer!

dear vb5prgrmr, please clear and details.
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 821
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 150
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: how my computer will be open

 
0
  #6
Mar 9th, 2009
Originally Posted by abu taher View Post
Dear Deba what your answer!

dear vb5prgrmr, please clear and details.
Quite simple. Start a new project, add a button, add the code, run program, click button.

Good Luck
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 471
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 24
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: how my computer will be open

 
0
  #7
Mar 11th, 2009
thanks. but, dear tell me about my computer. it works with control panel.
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 218
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: how my computer will be open

 
1
  #8
Mar 11th, 2009
thanks. but, dear tell me about my computer. it works with control panel.
Press the Power Button. That's a good one I like that one. Well, you weren't very explicit.

But I think this is what you want.

Add the Shell Controls and Automation reference in the Projects/Reference Menu by clicking on that item.

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. dim MyShell as Shell
  2.  
  3. Private sub form_load()
  4. set MyShell = New Shell
  5. MyShell.Explore &H11 ' For My Computer
  6. MyShell.Explore &H3 ' For Control Panel
  7. end sub
  8.  
  9. Private sub form_unload()
  10. Set MyShell = Nothing
  11. end sub()

Hopefully, that's enough to get you going. You can take the code from the form_load event and stick it in the appropriate Command Button.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 471
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 24
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: how my computer will be open

 
0
  #9
Mar 15th, 2009
dear hkdani
if you don't mind can you help me one more. how can I open start menu by clicking a button.
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 218
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: how my computer will be open

 
0
  #10
Mar 16th, 2009
Once you load the Shell Controls and Automation reference, then you should find all these constants available for your use and you can just use the autocompletion feature of your IDE: just type ssf and then Ctl + Space to see the constants appear in your code window.
These are a list of the constants available for your use:

ssfDESKTOP Desktop folder.
ssfPROGRAMS File system folder that contains the items in the Programs folder on the Start menu.
ssfCONTROLS Control Panel folder.
ssfPRINTERS Printers folder.
ssfPERSONAL File system folder that contains the user's documents.
ssfFAVORITES Favorites folder.
ssfSTARTUP Startup folder on the Start menu.
ssfRECENT Folder that contains shortcuts to the user's most recently used documents.
ssfSENDTO Folder that contains the items that are added to the Send To menu.
ssfBITBUCKET Recycle Bin.
ssfSTARTMENU Folder that contains the items that are displayed on the Start menu.
ssfDESKTOPDIRECTORY File system folder that contains the items on the desktop.
ssfDRIVES My Computer.
ssfNETWORK Network Neighborhood.
ssfNETHOOD File system folder that contains items displayed inside the Network Neighborhood.
ssfFONTS Folder that contains the installed fonts.
ssfTEMPLATES File system folder that contains document templates. MSDN
If you just want to open the start menu, why not just click the start menu button?
Last edited by hkdani; Mar 16th, 2009 at 1:07 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC