| Submitted By: TEH |
|
||||||||
Rating:
![]() ![]()
|
|||||||||
| Views: 5,870 | |||||||||
Language: VB.NET |
|||||||||
| Last Modified: March 27, 2009 | |||||||||
| Instructions: Save this snippet as a class (for example crypting.vb).
Now you can use that class in any of your projects just add it in. Now you can start using it: TEST PROJECT Make a new Windows Forms Project. Add 2 textboxes and 1 button to your form. add just created class to your project (Project-add existing item-browse and select just created class). double click your button-component and add next code CODE Public Class Form1 'Declare class for use Dim crypto As New Crypting Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' now you can use it like crypto.Start() 'starts encrypting/decrypting TextBox1.Text = crypto.encrypting.ToString() ' shows encrypted text. TextBox2.Text = crypto.decrypting.ToString() ' shows original/decrypted text End Sub End Class Next time you start this application it will find encrypted date from registry and show it to you. |
|||||||||
Snippet
Copy & Paste |
|||||||||
|
|||||||||
Programming Help
- C and C++
- VB6
- Java
- VB.NET
- C#
- ASP.NET
- PHP
- ColdFusion
- Perl and Python
- Ruby
- Databases
- Other Languages
- Game Programming
- Mobile Development
- Software Development
- Computer Science
- Industry News
- 52 Weeks Of Code
Web Development
- Web Development
- HTML & CSS
- JavaScript
- Graphic Design
- Flash & ActionScript
- Blogging
- SEO & Advertising
- Web Servers & Hosting
- Site Check
What's Here?
- Members: 404,898
- Replies: 1,079,203
- Topics: 183,829
- Snippets: 5,418
- Tutorials: 1,583
- Total Online: 2,822
- Members: 82
- Guests: 2,740
Live VB.NET Help!
Be Social
VB.NET Tutorials
- Serial Port Communication in VB.Net
- Basic Calculator in VB.Net
- VB.NET Basics Quick Reference (Cheat Sheet)
- Working with the Active Directory in VB.Net
- SQL Basics In VB.Net
- OleDb Basics in VB.Net
- Introduction to Graphs in VB.NET
- Creating a fully-functional pong game.
- Working with the Windows Registry in VB.Net
- Printing in VB.Net
- 168 More VB.NET Tutorials...
Reference Sheets
VB.NET Snippets
- Open a Folder Browse Dialog window
- Running an external executable file
- Get connection string from app.config
- Resize Image
- Load bitmap into PictureBox using OpenFileDialog
- Multi-threading with background worker
- Use KeyChar to limit the characters that can be entered into a Text Box
- Create Control Arrays at runtime in VB 2005 with Events
- Create an application desktop toolbar
- Computer beep using API
- 362 More VB.NET Snippets...
DIC Chatroom
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month- Elcric (200)
- Crunch (150)
- m-e-g-a-z (150)
- pdkharkar (100)
- sarmanu (100)
- alias120 (100)
- danielair (75)
- insertAlias (75)
- Dogstopper (75)
- Luckless (75)




|