View Single Post
Old 04-29-08, 07:08 PM   #15 (permalink)
oughtsix
Aximsite Prospect
 
Join Date: Apr 2008
Posts: 1
Thanked 0 Times in 0 Posts
VB is easy. .Net is huge and takes a while to learn. At the top of your code page add the line "Imports System.IO.File". Then you can call all the file system objects without having to put system.io.file in front of all of them. "Imports system...." works for any branch of the .NET tree that you are using in your project and make a lot of object calls from.


Imports System.IO.File

Public Class PocketTune


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.IO.File.Open("c:\tesst", IO.FileMode.Create)
Open("c:\tesst", IO.FileMode.Create)
SerialPort1.Open()
oughtsix is offline   Reply With Quote