Visual Basic gives us access to the Windows API which allows us to do virtually anything. In this source sample we will use the GetSystemMetrics API located in the user32 dll to find out how Windows was started. This is helpful if you want to do something different with your application based on if Windows started in Safe Mode, Safe Mode with Network Support, or Normal mode.
The easiest way to call Windows API's is to declared them in a module so to try this out create a new VB project. Then go to the Project Menu and click Add Module. Inside this module add the following code.
No go to your main form, add a command button, double click on the button to go to its click event handler, and add the following code.
Once you've added the source code run your application and click on the button. You should see a message box that corresponds to the way you started Windows.
Obviously this just barely scratches the surface on what you can do with the Windows API. Check out the links below to find out more.
SQL VB6
I WANT TO KNOW HOW I MAKE LOG IN FORM IN VB6 WITH SQL DATABASE?KINDLY SEND ME SMPLES CODE FOR THIS TOPIC
hi
but how to declare a function like (windows api)?
hi does any one knw to
hi
does any one knw to develop a windows application
from an already existing source code in vb.net
HI
Any one know, how can use flexgrid for maintanance the access database .
Thilanga...
ask
hi
any one
can any one have code how to save picture from scaner to data base and how can i serch and send it to imag1.picture from visual basic 6
hi
hi
any one know about how to link box to other box
Remo Rathna
Post new comment