Format DataGrid Columns - WinForms / VB.Net





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

« Previous 1 2 3 Next »
8
Date Submitted Thu. Jan. 11th, 2007 9:47 AM
Revision 1
Scripter Casper42
Tags ASPX | SQL | VB.NET
Comments 2 comments
This routine will get an image stored in a SQL database (IBM Informix shown here) as a BLOB and return it to the screen.

To place this on an HTML page simply add

I have an MD5 hashed version as well, but can't share that...(So you can have encrypted id's passed)

Have fun,
Jeremy
6
Date Submitted Sat. Nov. 18th, 2006 5:40 AM
Revision 1
Scripter Pio
Tags Serialization | VB.NET | XML
Comments 0 comments
I use something similar to this in an application named Shock 3. It provides you with your own Custom settings that can handle your own Custom types as well.
6
Date Submitted Thu. Oct. 26th, 2006 6:59 PM
Revision 1
Helper brendo
Tags forms | JavaScript | message | textarea
Comments 3 comments
This snippet also you to limit the input in a form field to a specified number of characters. It displays a counter so users can see how many characters they have left, and once they reach the limit the field just trims the length to your limit.

The following is a snippet from what I used when I implemented a tagboard to my site. Further revisions could/should read the LIMIT from the maxlength attribute
6
Date Submitted Fri. Oct. 13th, 2006 10:01 AM
Revision 1
Beginner nothingHappens
Tags ActionScript | DataGrid | Flash | sorting
Comments 0 comments
I think that the problem comes when you populate a DataGrid's dataProvider with data from a a remoting call, such as a RecordSet returned from AMFPHP. The remoting protocol doesn't remember the datatype of each database column, so once you get the RecordSet back to ActionScript everything has become a String. You could go to the trouble of casting every numeric column's contents in the RecordSet to a Number so that the DataGrid will sort those columns numerically (1, 2, 3, ...) rather than lexicographically (1, 10, 11, ..., 2, 20, ...)... or you could throw this quick little function in and tell it which columns you consider numeric. It will replace the default sorting behavior with one that casts to numbers before comparing, when dealing in the columns you specify. Pass it an array of the columns' indices and the DataGrid in question. Non-numeric strings in the columns you specify will get treated as 0 and left unsorted at the top.
-7
Date Submitted Wed. Oct. 11th, 2006 12:21 AM
Revision 1
Beginner dean
Tags 64 | Bits | C | openssl | windows
Comments 2 comments
It’s difficult to find OpenSSL for windows, especially for 64 bit Windows.

after doing some googling, I decideded to providing a simple installation of OpenSSL for windows by myself. It’s easy to use . No need to compile anything....

read more....
9
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.
8
Date Submitted Sat. Sep. 23rd, 2006 5:06 AM
Revision 1
Scripter Pio
Tags MD5 | Security | VB.NET
Comments 1 comments
This could be used for any type of simple hash checking. It could also be used to store a "password" that had to be verified. This code is completely managed.
5
Date Submitted Thu. Sep. 21st, 2006 7:48 AM
Revision 1
Scripter Pio
Tags math | Percent | VB.NET
Comments 2 comments
Returns a percentage. There are 3 arguments.

1. complete - How much is done?
2. total - How much is there?
3. maxPercentage - Total percentage possible, usually 100.

Simple, yep.
4
Date Submitted Thu. Sep. 21st, 2006 7:30 AM
Revision 1
Scripter Pio
Tags ArrayList | System.IO | VB.NET
Comments 3 comments
Loading and Saving an ArrayList to/from any given path.
6
Date Submitted Thu. Sep. 21st, 2006 7:07 AM
Revision 1
Scripter Pio
Tags filesize | System.IO | VB.NET
Comments 1 comments
An all in one function that formats a given file's Size from bytes to gB.
« Previous 1 2 3 Next »