Onteora Software

Ken Tucker's Blog
posts - 145, comments - 629, trackbacks - 0

General

Welcome to BlogEngine.NET 1.3

The description is used as the meta description as well as shown in the related posts. It is recommended that you write a description, but not mandatory

posted @ Saturday, December 22, 2007 7:45 AM | Feedback (27) | Filed Under [ General ]

Dry Dock

The past few weeks the ship I work on has been in dry dock.  I hope to be home in about a week and start adding some new blog entries soon.

posted @ Thursday, October 11, 2007 12:00 AM | Feedback (2) | Filed Under [ General ]

GotDotNet Phase out

GotDotNet Phase out Since the GotDotNet website is being phased out I am placing my user samples here . Video Capture Box A inherted picturebox control which allows you to capture an image from a webcam. Also adds a ByteImage Property to make it easier to bind to an image from a database. Enum Windows A module you can add to your projects which contains an enum with all the WM_ messages. Good to use when overriding wndproc.

posted @ Sunday, September 16, 2007 3:38 PM | Feedback (0) | Filed Under [ General ]

Printer Compatibility Library 1.0

Printer Compatibility Library 1.0 Visual Basic 6.0 and earlier had a printer object which made it simple to print. The Printer Compatibility Library 1.0 makes it possible to use the same object with VB or C# 2005. After installing the Power Pack just add a reference to Microsoft.VisualBasic.PowerPacks.Printing.Printer   VB Sample Imports Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Public Class Form1     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load         Dim p As New Printer         p.Print("Page 1")         p.NewPage()         p.Print("Page 2")         p.EndDoc()     End Sub End Class   C# Sample using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6; namespace PrinterCS {     public partial class Form1 : Form     {         public Form1()         {            ...

posted @ Sunday, September 16, 2007 3:04 PM | Feedback (1) | Filed Under [ C# General VB ]

.Net Framework 3.0 Text to Speech

.Net Framework 3.0 Text to Speech The dot net framework 3.0 now has a managed provider for text to speech. I tested this app on a machine with windows xp service pack 2 and the Dot Net FrameWork 3.0 RC1. The link is to set up instructions for the .net framework 3.0   For this sample add a reference to system.speech, place a textbox named txtSay, a button named btnSay, and listbox named lstVoice. The application fills a list box with the installed voices on the system at startup. When you click on the button it says the text in the textbox...

posted @ Sunday, September 16, 2007 2:57 PM | Feedback (1) | Filed Under [ C# General VB ]

Beta Certification Exam

Beta Certification Exam I took the beta exam for Microsoft Windows Mobile 5.0 - Application Development (exam number 70-540) with the visual basic option. The exam had 81 questions with a 4 hour time limit. There was one c# question slipped in there. There were questions on the creating menus, smart phone connection status to the network, interacting with contact list, listing items in the task list, serial port, xml, and httpwebrequests. SQL Everywhere (formerly SQL Mobile) was a topic which had a few questions. You will need to know how to repair a database, and sync with a sql 2005 database....

posted @ Sunday, September 16, 2007 2:55 PM | Feedback (1) | Filed Under [ Archive General ]

Secure Strings

Secure Strings The SecureString is a new class that was added in the .Net framework 2.0 which allows you to store info in memory securely. The SecureString could be used to safely secure a password or credit number. The example shows how to add info to the string, prevent changes from being make to the data, and finally how to get the info back. I included c# and VB samples. C# sample using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Security; using System.Runtime.InteropServices; namespace SecureStringCS {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Form1_Load(object sender, EventArgs e)        ...

posted @ Sunday, September 16, 2007 2:54 PM | Feedback (1) | Filed Under [ C# General VB ]

Encrypting Data

Encrypting Data Here is a vb2005 example on how to encrypt and decrypt data. I am storing the encryption key as a base64 string in the programs settings. The settings name is Key and its starting string value was Unknown. In a production application I would store it in a more secure location. Imports System.Security.Cryptography Imports System.IO Imports System.Text Public Class Form1     Public Key() As Byte     Public IV() As Byte     Public Function Encrypt(ByVal strData As String) As Byte()         Dim data() As Byte = ASCIIEncoding.ASCII.GetBytes(strData)         Dim tdes As TripleDESCryptoServiceProvider = _                 New TripleDESCryptoServiceProvider         If Key Is Nothing Then             tdes.GenerateKey()             tdes.GenerateIV()             Key = tdes.Key             IV =...

posted @ Sunday, September 16, 2007 2:39 PM | Feedback (1) | Filed Under [ General VB ]

DXCore

DXCore Developers express has a free product DX Core. It is a framework to develop add ins for visual studio. With it you can paint on the ide, work with the text, etc. I answer alot of questions in the newsgroups and forums. From time to time I copy code from the ide and when it pasted it looses the format. To overcome this limitation I usually paste the text in notepad. I then recopy the text and paste it in the question I am answering to preseve the format. Today I used the dxcore to add the copy as text...

posted @ Sunday, September 16, 2007 2:34 PM | Feedback (2) | Filed Under [ DXCore General ]

Virtual Server 2005 R2 Now free

Virtual Server 2005 R2 Now free Microsoft has now made Virtual server 2005 R2 a free product. You can download Virtual Server 2005 R2 here.

posted @ Sunday, September 16, 2007 2:30 PM | Feedback (1) | Filed Under [ General ]

Full General Archive

Powered by: