kblogs-LifeChecker.com | bloghome | subscribe | contact | admin | MainPage
Wednesday, March 10th  
 | shuffle | list | rss | 
Save Button Dialog Box
The main thing about the folling code is that is used a dialog box to save a file. This is an essential element for most applications.

Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
'Bring up file save dialog
Dim dlgSave As New SaveFileDialog
dlgSave.Filter = 'Image files (*.bmp)|*.bmp|All files (*.*)|*.*'
If dlgSave.ShowDialog() = DialogResult.OK Then
'makebitmap and save it
Dim bmpArea As Bitmap = bitmap.Clone(New Rectangle
(0, 0, Me.Width, Me.Height), bitmap.PixelFormat)
bmpArea.Save(dlgSave.FileName, ImageFormat.Bmp)
End If
End Sub

January 6th, 2007 - 11:59 pm | permalink | comments (668)

Patterns
It may be an outmoded form of document validation, however, the DOCTYPE definition for an XML document permits almost pivot table like analysis of data.

Defining the Elements and Attributes using the

January 20th, 2006 - 12:16 am | permalink | comments (347)

Blooming Database Features
SQL Server 2005 New Features

Ranking Functions:

Rank()
Dense_Rank()
NTile()
Row_Number()

Each of these uses the OVER Clause to set up the query.

The coolest of these in my opinion is the NTILE function as it
will divide up a result set into value bands producing an auto-
matic set of categories. In the sample below 4 price ranges would
be created.

SELECT NTILE(4) OVER(Partition BY PRODUCT.NAME ORDER BY PRICE) as
PRICERANGE, PRODUCT.NAME, PRICE
FROM PRODUCT

November 20th, 2005 - 08:02 pm | permalink | comments (325)

WSH - Add Users Script
Option Explicit
Dim objou, objUser
Set objOU = GetObject('LDAP://ou=Marketing,dc=mydomain,dc=com')
Set objUser = objOU.Create('User', 'cn=EOsterman')
objUser.Put 'sAMAccountName', 'Eosterman'
objUser.SetInfo


This adds a user to AD. The account is created with a blank password and disabled.

November 14th, 2005 - 01:33 pm | permalink | comments (5)

Take Off - The Blog for Little Guys Reaching Up
This is the starting place, the launching place of the LifeChecker Tech Blog. We will look at code, at group policy, at some Linux and at some trends in technology. Hopefully you will get some ADO.NET connection strings, some Timer code as well as some guidelines on how to implement security in your organization. I am sure we will do some router configs as well. Hold onto your seat for a first class flight. So ---- Welcome.


October 12th, 2005 - 12:21 am | permalink | comments (88)

 
 | shuffle | list | rss |