Results 1 to 3 of 3

Thread: Copy/Paste code posted here...

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    6

    Question Copy/Paste code posted here...

    Hi,

    Maybe I'm just sloooowwww but how do I copy and paste the code when the poster used the Code Wrapper like here:

    http://www.vbforums.com/showthread.php?t=469562

    If I copy and paste it, it all ends up on one line:

    Dim connection As New SqlConnection("connection string here")Dim command As New SqlCommand("SELECT Picture FROM MyTable WHERE ID = 1", connection) connection.Open() Dim pictureData As Byte() = DirectCast(command.ExecuteScalar(), Byte()) connection.Close() Dim picture As Image = Nothing Using stream As New IO.MemoryStream(pictureData) picture = Image.FromStream(stream)End Using

    tnx
    ~j

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Copy/Paste code posted here...

    It's a problem with our recent upgrade that unfortunately hasn't been fixed yet... there are a few of methods of correcting it, see this thread for a program which does it.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    6

    Re: Copy/Paste code posted here...

    Ahhh, I see... the Wordpad solution is fine for me... thank you for the quick Reply...

    tnx
    ~j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width