Navigation Home / Tags / .Net

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

10
Date Submitted Sat. Sep. 23rd, 2006 5:53 AM
Revision 1
Beginner vbdotnetboy
Tags "Random Generation" | .Net | VB.NET
Comments 1 comments
Description:
Call one of the overloaded functions and a you will have a randomly generated password.

Generate() - Will generate a password 13 or (more/less) characters in length ranging from A-Z a-z 0-9 and other characters such as @ # %... etc.

Generate(ByVal AsciiMin As Integer, ByVal AsciiMax As Integer)
Generate(ByVal AsciiMin As Char, ByVal AsciiMax As Char) - Allows you to set your ASCII range if you wish not to include number for example.

Generate(ByVal ExcludeValues As String()) - Works like Generate() buts characters passed in the array will not be used to generate the password.

Generate(ByVal AsciiMin As Integer, ByVal AsciiMax As Integer, ByVal ExcludeValues As String())
Generate(ByVal AsciiMin As Char, ByVal AsciiMax As Char, ByVal ExcludeValues As String()) - Works like Generate(ByVal AsciiMin As Integer, ByVal AsciiMax As Integer) & Generate(ByVal AsciiMin As Char, ByVal AsciiMax As Char), but allows you to also exclude characters that you do not wish the generator to use.



UPDATE
03/06/2006: Included use of Phill64's TrueRandom2 class for generating random numbers. Also overloaded the constructor so that a length can be set for the password, if the length is not set the default is set to 13.
9
Date Submitted Fri. Aug. 25th, 2006 7:46 PM
Revision 1
Helper psykoprogrammer
Tags .Net | C | drag | drop | treeview
Comments 2 comments
Below is a bit of code which sets up drag and drop in a treeview. This is handy for if you have a list of items that can be sorted by the user.

Here is a bit of code to demonstrate how to do this. First create a new Windows executable project. Drop a TreeView component on the form, and let's name it 'myTree' for this demonstration. Go ahead and populate it with some dummy data; enough data to see the dragging and dropping in action. You will need a variable global to the form's scope.

private TreeNode sourceNode;

This is used to track the item we are dragging in our TreeView. Then define the event handlers listed below.
-8
Date Submitted Sun. Jul. 16th, 2006 9:11 AM
Revision 1
Helper eriveraa
Tags .Net | VB.NET
Comments 0 comments
Util Class with methods for executing datasets, nonquerys, sending mails, etc.
-7
Date Submitted Sun. Jul. 16th, 2006 9:04 AM
Revision 1
Helper eriveraa
Tags .Net | VB.NET
Comments 1 comments
Simple Connection Class.
-15
Date Submitted Sat. Jul. 15th, 2006 10:32 PM
Revision 1
Helper eriveraa
Tags .Net | CSharp
Comments 3 comments
Simple loop through datatable
12
Date Submitted Sat. Jul. 15th, 2006 8:15 PM
Revision 1
Helper eriveraa
Tags .Net | CSharp
Comments 0 comments
Second example of reading an excel file. Reading with a SELECT syntax.
14
Date Submitted Fri. Jul. 14th, 2006 11:18 AM
Revision 1
Helper eriveraa
Tags .Net | CSharp
Comments 0 comments
First Example of reading an excel file. Just reading the file and loop throught 10 rows.

I will send the second example soon !!!
-11
Date Submitted Fri. Jul. 14th, 2006 11:11 AM
Revision 1
Helper eriveraa
Tags .Net | CSharp
Comments 1 comments
Example that shows how to populate a winforms combobox with csharp. It uses Data Access blocks (SqlHelper).