Home    
Log In    
Share Code    
Join    

Navigation
 Skip Navigation Links.

Forums
Skip Navigation Links.

Search

 

Advertisement
 
VB.NET Source Code View RSS Feeds


Making a Property part public and part protected
Details
Author: ptaylor
Views: 261
This is how to write a property that is partly Public and Partly Protected/Private In the example the Read/Get property is Public and the Write/Set property is Protected/Private
Print RAW data to Network Printers
Details
Author: ptaylor
Views: 875
Send prints to a Network printer Originally designed to send ZPL commands to Zebra S4M using an HP Jet Direct this code will send RAW print jobs to and network printer, Including Dot-Matrix and Thermal Transfer Printers
Custom Text in a Crystal Report
Details
Author: ptaylor
Views: 1895
A Crystal Report shows all the data from a criteria and allows you to print or save the report But if you look at the report a few weeks later, you will not know what criteria was used to generate the report, making the data worthless. This is how to show custom text in a Crystal Report (i.e. Report Date not Printed Date)
Get Alphabet Letter from Number
Details
Author: ptaylor
Views: 3262
How to get a Letter of the alphabet from a number and increment. It will Loop and get each number between 0 and 25 with the associated letter then the Message Box will show the FULL Alphabet
Add Combo to Datagird
Details
Author: ptaylor
Views: 1184
Programmatically add a combo to a Datagird In this example the database has a column called "StartDay" set as an Int32
Desctiptions to subs/functions
Details
Author: ptaylor
Views: 596
Adding desctiptions to subs/functions and parameters
Write to the Event Log
Details
Author: ptaylor
Views: 1449
How to write events to the Event Log i.e. Error Messages
How to Multi-Thread
Details
Author: ptaylor
Views: 3225
Multi-Threading allows you to have multiple runs of code at the same time. i.e. Run a long calculation and allow for it to be aborted. Thread 1: Handles form Controls (Abort button) and abort code Thread 2: Handles the calculation run
Accessing Form Controls from another Thread
Details
Author: ptaylor
Views: 8078
Accessing Form Controls from another Thread (Multi-Thread) This example has: 1 Progress Bar = ProgressBar 1 Command Button = cmdAbort Error: Cross-thread operation not valid: Control 'ProgressBar' accessed from a thread other than the thread it was created on.
Try Error Handle
Details
Author: ptaylor
Views: 661
Try ... Catch ... Error
How to use SQL
Details
Author: ptaylor
Views: 3414
How to use SQL statments in Visual Basic.NET Read (SELECT) Write (INSERT, UPDATE, DELETE)
Control Arrays
Details
Author: ptaylor
Views: 710
Control Arrays were removed from VB.NET This is how to simulate them.
Using Classes
Details
Author: ptaylor
Views: 1938
Classes can be used as a method of removing large amounts of code from the form Code that normally would be in modules Except this code can only be accessed by required forms not all form like modules The advantage is you can use the same Function/Variable/Sub names for different Jobs in different classes where as in a module the same names cannot be used in Another module
Send SMTP E-Mail
Details
Author: ptaylor
Views: 4215
Send an E-Mail using an SMTP Server No E-Mail client required
Boolean Like Variables
Details
Author: ptaylor
Views: 790
When you type a Boolean you get a selection of Answers This is how to create your own Multi-Choice Variable like a Boolean Example: Dim Boo as Boolean Boo = True False
 
 
Welcome Guest
 
  Log In Name
 
  Password
 
 
Statistics
Your Details: Not Logged In
  Join Date: N/A
  Last Logon: N/A
  Code Snippets: N/A
  Code Comments: N/A
  Forum Posts: N/A
  Forum Subjects: N/A

Site Wide
  Code Snippets: 32
  Code Comments: 2
  Forum Posts: 52
  Forum Subjects: 24
 
Random Code
Send SMTP E-Mail
Send an E-Mail using an SMTP Server No E-Mail c....

Language: VB.NET

 
Advertisement


All the Source Code and Tutorials on this site are free for you to use as you require.