Skip Navigation LinksHome > Blog > 2003 > November

November, 2003

Read and write XML to-and-from a dataset

This article, obtained from CodeNotes, illustrates the use of the DataSet's WriteXML() and ReadXML() methods to read and write XML to a DataSet.=== READ XML DATA TO DATASET =======using System;using System.Data;using System.Data.SQL;using System.IO;public class ReadXML{ public static void Main() { // Instantiate a new DataSet object DataSet ds = new DataSet(); ...

50 essential Excel tips

I found this article to be an invaluable resource, especially "How to repair file associations". Working at the helpdesk, I have had to this more often than anything.Tom at All American Auctions also setup a great troubleshooting page, with information collected from CNet, ZDNET and Tech Republic

HOW TO: create a slide show of websites

I am designing an application that shows several websites in the form of a slide show. I have come up with a starting point for my app1. I use a web browser control 2. I load URLs into a collection from an xml file3. I use two timers, one to load the next url and the other to do the animationhere is where I am at so far:===========================================Public Class frmSlide Inherits...

Very Interesting websites

I find it interesting how powerful the blogging service is becoming. Each time I browse a blog, I come across a very informative reference wich leads to another and the chain goes on. I turned my laptop on just now and came across these interesting sites.Mathhew Reynold's .NET 247Chris "chornbe" Hornberger's websiteChris also has designed an invaluable backup application that does the job while...

Reading Text Files in Visual C# .NET

To load and read a text file from Visual Basic .NET, follow these steps: 1. Open Visual Studio .NET. Create a new Console Application in Visual Basic .NET. Visual Studio creates a Module for you, along with an empty Main() procedure.2. Make sure that the project references at least the System namespace. Use the Imports statement on the System, System.IO, and System.Collections namespaces...

Awesome developer tools list

Scott Hanslemen's blog has a great list of developer tools.Matthew Reynolds also has an entry in his blog on an application called QuickCode.NET. found by Russel Pooley.

Writing to a File using System.IO

Author : Pallavi ChandLevel : BeginnerIn this article we will see how we can write data to a file from another file.Codeusing System;using System.IO;class AppendText { public static void Main(String[] args) {//Append the text from InputFile.txt to this file.TextWriter outfile= File.AppendText("c:/CopytoFile.txt");//Append text from this file to CopytoFile.txt.TextReader infile = File.OpenText("c:/InFile.txt");String...

Printing in VB.NET

By Mike Gold 06/25/2003 Download Using components is the difference between writing an application in one week vs. an application in a few hours. Printing is all carried out through components included in the toolbox. The main component that talks to the printer is the PrintDocument component. To use this component, just call the Print function and intercept the PrintPage event. Below...

Print directly to printer

' PrintDirect.vb' Shows how to write data directly to the printer using Win32 API's' Written 17th October 2002 By J O'Donnell - csharpconsulting@hotmail.com 'Adapted from Microsoft Support article Q298141 'This code assumes you have a printer at share file://192.168.1.101/hpl 'This code sends Hewlett Packard PCL5 codes to the printer to print' out a rectangle in the middle of the page. Imports...

Tipue Data Manger

I found a free javascript search engine to use on a small site (typically less than 100 pages) at tipue.com. This is a very straightforward search engine and very simple to use. The only problem is that is does not come with a program to manage the data file which contains the search indices, keywords and document paths. So, I created a small VB program to manage the data in the text file (not...

Preserving Properties in New instance of class

Great post by Edneeis on Gotdotnet VB.NET forum------------------------------------------------------------------The question was: how do I initialize an instance of a class and have all the values and properties from the old class in the new classA: You can implement ICloneable and give your object its own MemberwiseClone implemention which is generally protected in scope. You could also use...

3 Ways of Passing Data Between Forms in VB.NET

This project by drewman48 gives a simple example of one-way passing of data from one form to another. This project takes advantage of shadowing the Show() and ShowDialog() methods as well as an Overload of New().the sample project can be downloaded here.

GotDotNet Samples feed

Good for including on my site.http://www.gotdotnet.com/community/resources/rss.aspx?feed=Sample

Great information here

Some good information for VB programmershttp://www.panopticoncentral.net/

Build your own RSS Aggregator

This application was designed in C#.I'll check if there is a VB.NET version. I understand it uses a rssreader class which should be usable in VBI'll look more into thishttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml02172003.asp

Using the Ukoln RSS Express Lite for MSDN RSS feeds

http://rssxpress.ukoln.ac.uk/lite/viewer/-------------------------------------------------------------------------<script src="http://rssxpress.ukoln.ac.uk/lite/viewer/?rss=http%3A%2F%2Fmsdn.microsoft.com%2Fvbasic%2Frss.xml"></script> <noscript><a href="http://rssxpress.ukoln.ac.uk/lite/viewer/?rss=http%3A%2F%2Fmsdn.microsoft.com%2Fvbasic%2Frss.xml">View </a> </noscript>...

How to read MP3 files

I came across this post in microsoft.public.dotnet.languages.vb(I removed the extra information including the names of the participants------------------------------> Hi guys, I want to make a personal program, simple, that just works and> won't tie up resources. I want to be able to make a mp3 player (kind of> like Winamp) and yes I do own the music :)>> I am familiar with...

Secure Environment

These guys are working on a project I tried to do do like two years ago. Of course it was on a much lighter basis and was not going to be as complex. I managed to achieve some of the tasks such as disabling Ctrl+Alt+Del and in win95, the app would hide away from the task manager. I wam very interested in finding out how they are implementing this in VB.It seems to me that Vb is a language that...

error provider i found out there is

Error ProviderI found out there is something called error provider in a VB book but forgot to write down the code snippets. This is supposed to help you validate all controls at the same time e.g. use it to display a message box with information on every textbox that contains invalid information.

redesign i spent more than two hours

RedesignI spent more than two hours multitasking between doing my job and manually redesigning this page. i didn't know I know so much HTML {well there isnt much in th page anyway} :)

rss feed project in vb

RSS Feed Project in VB.NET By Patrick Wright Hmmmm. very interesting article. I'm sure I could put this to great use since I'm a big fan of RSS myself. The project I'm working on currently involves sending data from a server to multiple clients. I could implement something of this sort.Link to sample project

creating instance of internet explorer

Creating an instance of Internet ExplorerI stumbled upon this entry by By Gregory Correll on VB.NET heaven. Sounds like something I'm trying to doImports SHDocVwSub OpenBrowser(url As String) 'Dim o As Object = NothingDim ie As New SHDocVw.InternetExplorerClass()Dim wb As IWebBrowserApp = CType(ie, IWebBrowserApp)wb.Visible = True'Do anything else with the window here that you wishwb.Navigate(url,...

gotdotnetthe link to gotdotnet message

GotDotNetThe link to GotDotNet message forums. For my own quick access

scooblog has great software testing

Scooblog has GREAT software testing tips on the Nov 03 entry. I think these are invaluable

started my new blog

started my new blog