com >> beginning programmer

by skids89 » Thu, 20 Apr 2006 00:50:36 GMT

i just downloaded the visual basic express 2005 every vb tutorial i
found is for older versions and some parts are not compatable can any
one direct me to a good website to learn this program i just started so
the simpler the better



com >> beginning programmer

by skids89 » Thu, 20 Apr 2006 00:52:09 GMT


i just downloaded the visual basic express 2005 every vb tutorial i
found is for older versions and some parts are not compatable can any
one direct me to a good website to learn this program i just started so
the simpler the better




com >> beginning programmer

by Karl E. Peterson » Thu, 20 Apr 2006 00:59:06 GMT




Well, you're asking this in a newsgroup dedicated to those "older
versions" -- would strongly recommend you ask in a group that has ".dotnet."
in its name. The people here, mostly, don't care about/for the "newer
versions" as they are, as you've found, not compatable. (Are you sure who
it is you're getting in bed with?)
--
Working without a .NET?
http://classicvb.org/




beginning programmer

by Dick Grier » Thu, 20 Apr 2006 02:35:47 GMT

Hi,

Have you tried this:

http://msdn.microsoft.com/vbrun/staythepath/additionalresources/IntroTo2005/default.aspx

It is free.

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.




beginning programmer

by skids89 » Thu, 20 Apr 2006 05:36:40 GMT

where would i get an older copy of this then



beginning programmer

by argusy » Thu, 20 Apr 2006 05:52:19 GMT

'morning Karl

After your "<spit>/8</spit>" (ROTFLOL) comment in another post, I wondered if
your tag would change, to reflect how you feel about .net products

Graham







beginning programmer

by Karl E. Peterson » Thu, 20 Apr 2006 05:59:44 GMT




Were there a way... <sigh>

Supposedly, there are copies floating around eBay. Otherwise, you're left
with less-than-desirable "alternative acquisition" methods, since Microsoft
has decidedly discontinued not only sales but even support of it. :-(
--
[.NET: It's About Trust!]




beginning programmer

by Karl E. Peterson » Thu, 20 Apr 2006 06:00:36 GMT




Not sure I can be _that_ subtle and still get past the censors...
--
[.NET: It's About Trust!]




beginning programmer

by argusy » Thu, 20 Apr 2006 06:53:21 GMT

Of course!!

This is a microsoft supported newsgroup!!

Err ... get tongue out of cheek, Graham







Similar Threads

1. Beginning Access 2003 VBA

3. Prove position of quotation mark at beginning of string - VB.Net

4. Resetting IO.StreamReader to beginning of file

I am using an IO.StreamReader to read the contents of a text file. It
all works just fine. However, I do not know of a way to move back to
the beginning of a file. For example, let's say that I read in five
lines from the file, or all of them for that matter. How do I then
point the IO.StreamReader back to the beginning of the file? I would
imagine that I could use "New IO.StreamReader(sFileName)" to create a
new IO.StreamReader pointing to the file, and starting back from the
beginning. I am just wondering if there is another way to do this
(i.e. some method or something).

5. Wierd issue with listbox and Begin...Endupdate - VB.Net

6. Inserting text at the beginning of an existing text file

Hi,
I'm using Visual Studio 2005. I am developing a web application that uses 
the FileUpload control to upload text files to a directory on a webserver. 
This works fine.

However, for me to be able to further process the files, I need to insert 
some data at the BEGINNING of the text file. All the solutions I've seen 
either append the text to the end of the file, or overwrite the data at the 
start of the file, or read the entire file into a string 
("StreamReader.ReadToEnd"), concatenate, then write the string back to the 
file (innefficient).

Please note:
The text files in question could be up to 5000 lines long with each line 
being up to 200 characters long (+- 1 million chars), and storing all that in 
a string may be a strain on resources, so the solution must be efficient.

Isn't there a way to directly access the file to do the insert?? Something 
like:
1. Convert text file to a "direct access file"
2. Insert data at the begining
3. Convert "direct access file" back to a text file

So far my code is as follows for the submit button on the page (see my 
commented lines):

Imports System
Imports System.IO

...

Protected Sub butSubmit_Click(ByVal sender As Object, ByVal e As 
System.EventArgs) Handles butSubmit.Click

... (working code)

    If FileOK Then
        Try
            Dim strNewFileName As String = path & Now().Ticks.ToString & 
"NewFileName.txt"
            Dim strRefNo As String = "1234567890"

            Me.FileUpload1.PostedFile.SaveAs(strNewFileName)

'The text file now contains:
'XXXXXXXXX, "qwerty...."
'YYYYYYYYYY, "asdfgh ..."
'etc.

'this is where I need a code snippet .....
'----
'---- INSERT strRefNo at the BEGINNING of the text file represented by 
strNewFileName ----
'----

'After the insert, the text file must be on the webserver and now contain:
'1234567890
'XXXXXXXXX, "qwerty...."
'YYYYYYYYYY, "asdfgh ..."
'etc.

            Me.lblResult.ForeColor = Drawing.Color.Black
            Me.lblResult.Text = "File successfully uploaded!"
        Catch ex As Exception
            Me.lblResult.ForeColor = Drawing.Color.Red
            Me.lblResult.Text = "File could not be uploaded."
        End Try
    Else
        'display error message
        Me.lblResult.ForeColor = Drawing.Color.Red
        Me.lblResult.Text = "Cannot accept files of this type."
    End If 'FileOK

... (working code)

End Sub

Any help will be appreciated.

7. the beginning of the end for VB? - VB.Net

8. append to the beginning of a text file

I want to add a new line to the begining of a text file.  I dont want to
write over existing data.  How do I do this?  the file is about 7 mb.