Advertisement

Results for "Category: Miscellaneous"

C_Volume2 #84883
Simple Multi Thread Example

I've had a few people come to me with how to do multi treading. I've looked around PSC and there are plenty of projects that have multi-threading but none solely for multi-threading. So I did up a simple multi-threading console application that passes data back to the parent thread via events. This is a very simple example and is designed to show how multi-threading can be used. The key to understanding what you would use multi-threading for is to keep one simple thing in mind. All UI (user interfaces) elements must be in the parent thread. You can not have anything that interacts direct with the UI in a seperate thread. For example if you are running a long business process and get an exception, then use a message box to show that exception then nothing will ever be shown to the user. It's in a background thread so the user never see's it. It can also lock the application up since the messagebox is waiting for the user to click ok. What you would do in such an example would be to pass the error message back to the parent thread and let the parent thread display the error message. This is also a good example to show how you could update a progress bar on the parent thread with the process of the thread (like how far along the process has gotten in getting or doing something). Hope this helps. Sometimes you just need to break something down to bare basics to get a good understanding of it. Though this is only one example of how to work with threads, there are many other ways.

C_Volume2 #84906
Plug-in Sample

First off, I am not the original author. I merely ported the C# sample to VB.NET. The purpose of this code is to help you implement a Plug-in framework for you applications. This will allow you, and others, to extend your original application without having to re-compile the main application. All credit goes to Roy Osherove for the original source, plus links to his homepage and 2 MSDN sample projects can be found in the readme.html file of the zip file. Enjoy.

C_Volume2 #84915
VB.NET Printing a Text File (Using System.Drawing.Printing Namespace)

The code demonstrates how to work with System.Drawing.Printing Namespace

C_Volume2 #85022
Read Array&Draw As Dots&Change Array

Ok guys , don't laugh at me please! :) This is my first on .net , this codes shown how to read from file , put to array , draw some things by values which returns of array , and change the array's values.. Hope you like it(note:sorry for my english if made any mistake :))

C_Volume2 #85030
alarm clock

This is my first complete VB .NET program. It lets you set a time for an alarm to go off. You can even save a preset of the alarm time and minimize the program to the tray to let it run in the background. Most of it is pretty simple. I took the time to comment it all, so please take advantage of it! If you have any questions or comments go ahead and e-mail me at [email protected] with something relavent to this project in the subject.

C_Volume2 #85046
CrystalReporter

A .Net Class that encapsulates displaying and exporting/printing (as PDF) a Crystal Report in ASP.Net.

C_Volume2 #85138
Report Generator

'This program will run a number of SQL Server stored procedures, run a number of Crystal Reports and export them to Excel, HTML, or PDF, and finally send the exported files via outlook email. 'This program will accomplish the following processes (planet source code keyword phrases) '01. display the Datalinks window and return a Database connection string (SQL Server only) '02. display a list of Stored Procedures in the selected database and table '03. display the parameters needed for each selected Stored Procedures '04. run each selected Stored Procedure in order '05. get and set setting to the registry (getsettings and savesettings commands only) '06. create an array of textboxes on the fly and in a groupbox instead of the form(easy enough to swtich to most controls) '07. add and delete file names to and from a list box (crystal tab) '08. use the OpenFileDialog and FolderBrowserDialog controls (crystal tab) '09. connect to outlook and open up the address book so recipients can be selected '10. connect to outlook, create an instance of an email, add the recipients, add the attachments, and send the email '11. all processes run on a schedule

C_Volume2 #85145
Simple XML Example

This is a Simple example showing how to create an XmlDocument and add/remove Elements with Attributes. I'm a little new to C# and XML, so after searching the internet for a few hours and playing with it, i read a lot of the Reference on XML and finally understood how to do it. I hope this helps anyone trying to learn XML. If anyone could leave comments that would be much appreciated. (I only ask cause this is my first submition)

C_Volume2 #85147
Xp Visual Styles the really easy way

This code will automatically set your app to use XP's visual style. It automatically creates the manifest file and then sets all compatible controls's flatstyle to system (as needed for XP visual styles).

C_Volume2 #85149
Microsoft .net insecurities

This article explains how easy it is to reverse engineer unprotected .net applications. ilasm's biggest problem is its ease of reading, making it very hard for crackers to crack your program. What im hoping you will get out of this article is to protect your applications from crackers by using .net protectors like Dotfuscator. As I am not cracking any commercial application (only my own one), I am pretty sure this is not breaking the planet source code rules. Please read the document and visit my website at www.donutsoft.net

C_Volume2 #85156
Auto Save Add-In

My pc shutdown after writting a long segment of code and I lost all of it. I should have saved, but I didn't. I couldn't believe that autosave wasn't built into VS.Net. I searched the net and managed to find this great add in autosave by Les Smith. Simple and works. I changed it very slightly.

C_Volume2 #85168
Auto-Typing in MS Word with .NET!

This code opens MS Word, creates a new document, and starts writing a text in it letter by letter.Just create a new proyect, a normal windows aplication, add a reference to Microsoft Word Object Library, and copy/paste this code. Then set form opacity to 0%. Easy to implement and Cool effect, isn't?

C_Volume2 #85183
Toolbar images and Visual Styles, WITHOUT MANIFEST!!!

This code gets your software ACTUALLY displaying those freekin images that you know you put there, but just dont appear after an Application.EnableVisualStyles. Very easy code, please provide some feedback, hopefully its not just my box that this code works on.

C_Volume2 #85267
Low Level Keyboard Hook

This program performs a low-level hook for the keyboard using the Windows API, and provides programmatic interaction with these keys. You can either allow or prevent keys to be processed. This application prevents Alt-Tab, Alt-Esc, Ctrl-Esc, and the Windows key. Ctrl-Alt-Del is still enabled. This is very similar to the "Disable Low Level Keys" provided by MSDN, originally in VC++ 6. This has only been tested on XP Pro.

C_Volume2 #85269
To run a program

To run a program and run files with their associated program

C_Volume2 #85270
Screen Resolution

'This code will tell you how to get our computer screen resolution 'just a few lines of codes..

C_Volume2 #85275
Convert C-Sharp to Vb .Net

This is the best C# Converter out there. It is a Visual Studio Add-in and its free. This converter will even convert whole projects. See review below for details.

C_Volume2 #85279
Automatic bot

Automatic shutdown,restart computer in several ways:Alarm/Web/Mobile phone with gprs access

C_Volume2 #85295
XML Encryptor - Decryptor (NSoft Utilities ) v1

Currently this is the start of my personal VB.NET general purpose utility library. Currently the only code in this release of the library is a class that does on-the-fly encryption of XML files and demonstrates the use of System.Security.Cryptography and System.XML and System.IO ! The code uses memory streams as buffers for the encryption and decryption processes thus reducing temp dir clutter. Very clean code, have not yet had a chance to document it though.

C_Volume2 #85296
SMS message sample code

Send an SMS message through SMSC service provider. There are hundreds of SMSC service providers all over the world

Languages
Top Categories
Global Discovery