Advertisement

Results for "Category: Miscellaneous"

ASP_Volume2 #43819
Load and unload Assemblies

Ok what this example does is load a DLL that has a form called Form1 (yea I know that isn't creative) and show it to the user. Then you can unload the DLL and it unlocks the DLL. You see when using the createinstance of an assembly it will load that instance into the current appdomain. Once it's loaded and created it then locks the assembly (the dll or exe). You have to completly quite the application in order to delete the DLL. This project allows you to load an assembly and use a class then unload it without ending the entire application. I needed this in order for my dynamicly compiled forms to work, you see if I compiled at runtime a form and viewed it it would lock the DLL, then when I recompiled it I would get a lock error. Even though I closed the form I pulled from the DLL. So this method allows me to view then unload then recomile then view to my hearts desire. Hope this is useful to others. Please Vote I looked everywhere for an answer to this problem and they where slim to none, not one example in VB.net and the ones in C# where really bad most of the time.

ASP_Volume2 #43821
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.

ASP_Volume2 #43844
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.

ASP_Volume2 #43853
VB.NET Printing a Text File (Using System.Drawing.Printing Namespace)

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

ASP_Volume2 #43960
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 :))

ASP_Volume2 #43968
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.

ASP_Volume2 #43984
CrystalReporter

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

ASP_Volume2 #44076
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

ASP_Volume2 #44083
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)

ASP_Volume2 #44085
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).

ASP_Volume2 #44087
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

ASP_Volume2 #44094
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.

ASP_Volume2 #44106
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?

ASP_Volume2 #44121
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.

ASP_Volume2 #44205
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.

ASP_Volume2 #44207
To run a program

To run a program and run files with their associated program

ASP_Volume2 #44208
Screen Resolution

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

ASP_Volume2 #44213
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.

ASP_Volume2 #44217
Automatic bot

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

ASP_Volume2 #44233
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.

Languages
Top Categories
Global Discovery