
- #VISUAL BASIC CODING EXAMPLES HOW TO#
- #VISUAL BASIC CODING EXAMPLES CODE#
- #VISUAL BASIC CODING EXAMPLES PASSWORD#
- #VISUAL BASIC CODING EXAMPLES DOWNLOAD#
#VISUAL BASIC CODING EXAMPLES PASSWORD#
This small utility reveals the database password of Microsoft Access files.
#VISUAL BASIC CODING EXAMPLES CODE#
This code snippet scans all opened windows, and reveals the passwords It's possible to do it with a simple trick. This small utility reveals the passwords stored behind the asterisks in the web pages of Internet Explorer 5.0 and above.Ĭreating a real console application in Visual Basic !Īlthough the Visual Basic compiler doesn't allow officially to create console applications, Revealing the passwords behind asterisks in Internet Explorer

#VISUAL BASIC CODING EXAMPLES DOWNLOAD#
In the following section, you can find a variety of Visual Basic code samples.įor every sample, you can download the entire project for opening in Visual Basic 6.0. Some properties, like Caption and Visible/Enable. Like handle, class name, caption, size, position and more. WinExplorer is a utility that shows all system's windows in hierarchicalįor every window in the hierarchy, you can view its properties, The ExeInfo utility shows general information about executable files (*.exe), dynamic-link libraries (*.dll),ĪtNow is a command-line utility that schedules programs and commands to run in the near future. This code sample enumerates all credentials of the current logged on user, It's possible to display this properties window programmatically, by using the ShellExecuteEx API function.Įnumerating Windows credentials with CredEnumerate function When you select a file or folder in Explorer window, and choose 'Properties' from the menu, you get the properties window that contains some essential information about the file: The size of file, created date, modified date, attributes, and so on.
#VISUAL BASIC CODING EXAMPLES HOW TO#
This code snippet demonstrate how to display this dialog-box.ĭisplaying the 'Properties' of a file or folder. The 'Browse For Folder' dialog allows the user to select a folder from all available local drives and network resources. The only way to do that, is by manually swapping all data of the items, including the lParam value and all columns !ĭisplaying 'Browse Folders' dialog with the default folder selected. In the API of ListView control, there is no support for swapping between 2 items. In some occasions, you might want to allow the user the change the order of items in the ListView, by moving the selected items up and down. Moving items up and down in a ListView control. This kind of crashes, display your own exception information window,Īnd allow the user to continue running the application after the exception occurred. This sample project demonstrates how to avoid The operating system displays a "crash" window with information about the problem that caused the exception,Īnd terminates the application. When a program does something wrong, for example, reading from invalid memory address, Preventing application crash by using exception handling mechanism You can use this feature to change the brightness of the entire screen. Some video cards allows you to programmingly modify the Gamma Ramp values. NET embedded resources (Bitmaps, Gifs, HTML files, and so on) stored in them into the folder that you specify.Ĭhanging the screen brightness programmingly - By using the Gamma Ramp API 'Dim count as Integer = command.Visual C++, C# and Visual Basic Code SamplesĭotNetResourcesExtract is a small utility that scan dll/exe files of. 'Dim count as Integer = command.ExecuteNonQuery() 'For SQL Authentication Dim strCon As String = "Data Source=SERVERNAME\SQLEXPRESS Initial Catalog=DATABASENAME User ID=USERNAME Password=PASSWORD Connection Timeout=50 "ĭim strCommand As String = "SELECT * FROM TABLE"Ĭommand = New SqlCommand(strCommand, con) You can connect to SQL Server and query the database with the code below 'Imports ĭim strCon As String = "Data Source=SERVERNAME\SQLEXPRESS Initial Catalog=SQLEXPRESS Integrated Security=SSPI Connection Timeout=10 " 'NT Authentication
