Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. A code in VB.NET.

A code in VB.NET.

Scheduled Pinned Locked Moved Visual Basic
questioncsharpgraphicshelp
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hansoctantan
    wrote on last edited by
    #1

    Hi guys, I have a question... I created an Image TIF Viewer and its working fine (Zooming, Move Up Down Left Right, Rotate, Next and Previous Page). This image viewer is not that high level app cause I just use Panel and Picturebox in it. The problem is I can't run this program to a lower version of windows so I decided to use Visual Basic 6. The problem is some of the datatypes is new to me, I just found them in the Internet. This is the part that I don't know how to convert it in VB6 I use this code to view the multi-tiff image

    Dim objGuid As Guid = (objImage.FrameDimensionsList(0))
    Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid)
    imgTotalPage = objImage.GetFrameCount(objDimension)
    objImage.SelectActiveFrame(objDimension, imgPage)

    the Guid and this System.Drawing.Imaging.FrameDimension, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D

    J S D B 4 Replies Last reply
    0
    • H hansoctantan

      Hi guys, I have a question... I created an Image TIF Viewer and its working fine (Zooming, Move Up Down Left Right, Rotate, Next and Previous Page). This image viewer is not that high level app cause I just use Panel and Picturebox in it. The problem is I can't run this program to a lower version of windows so I decided to use Visual Basic 6. The problem is some of the datatypes is new to me, I just found them in the Internet. This is the part that I don't know how to convert it in VB6 I use this code to view the multi-tiff image

      Dim objGuid As Guid = (objImage.FrameDimensionsList(0))
      Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid)
      imgTotalPage = objImage.GetFrameCount(objDimension)
      objImage.SelectActiveFrame(objDimension, imgPage)

      the Guid and this System.Drawing.Imaging.FrameDimension, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D

      J Offline
      J Offline
      JR212
      wrote on last edited by
      #2

      Easy. Don't VB6 to vb.net ==>logic vb.net to vb6 ==> very wrong choice there must be another reason why your program won't work. Is the framework that you use installed on that other computer. Jan

      1 Reply Last reply
      0
      • H hansoctantan

        Hi guys, I have a question... I created an Image TIF Viewer and its working fine (Zooming, Move Up Down Left Right, Rotate, Next and Previous Page). This image viewer is not that high level app cause I just use Panel and Picturebox in it. The problem is I can't run this program to a lower version of windows so I decided to use Visual Basic 6. The problem is some of the datatypes is new to me, I just found them in the Internet. This is the part that I don't know how to convert it in VB6 I use this code to view the multi-tiff image

        Dim objGuid As Guid = (objImage.FrameDimensionsList(0))
        Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid)
        imgTotalPage = objImage.GetFrameCount(objDimension)
        objImage.SelectActiveFrame(objDimension, imgPage)

        the Guid and this System.Drawing.Imaging.FrameDimension, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D

        S Offline
        S Offline
        Simon_Whale
        wrote on last edited by
        #3

        It will be Difficult to impossible to rollback code to previous versions of Visual basic especially from the .net framework to version 6. If you are adamant on using VB6 then I would look at 3rd party controls to do what you are after. Sorry but that is my 2 cents on the subject.

        Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

        1 Reply Last reply
        0
        • H hansoctantan

          Hi guys, I have a question... I created an Image TIF Viewer and its working fine (Zooming, Move Up Down Left Right, Rotate, Next and Previous Page). This image viewer is not that high level app cause I just use Panel and Picturebox in it. The problem is I can't run this program to a lower version of windows so I decided to use Visual Basic 6. The problem is some of the datatypes is new to me, I just found them in the Internet. This is the part that I don't know how to convert it in VB6 I use this code to view the multi-tiff image

          Dim objGuid As Guid = (objImage.FrameDimensionsList(0))
          Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid)
          imgTotalPage = objImage.GetFrameCount(objDimension)
          objImage.SelectActiveFrame(objDimension, imgPage)

          the Guid and this System.Drawing.Imaging.FrameDimension, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          There is no direct conversion for the code you posted. You'd have to write your own libraries to duplicate the functionality provided. Considering you want (for some very bad reason) to use VB6, I'd suggest using a 3rd party control for this, IF you can even find one any more. Windows 8 will NOT have VB6 runtime support, so I suggest you rethink what you want to support. in the way of Windows versions.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          H 1 Reply Last reply
          0
          • D Dave Kreskowiak

            There is no direct conversion for the code you posted. You'd have to write your own libraries to duplicate the functionality provided. Considering you want (for some very bad reason) to use VB6, I'd suggest using a 3rd party control for this, IF you can even find one any more. Windows 8 will NOT have VB6 runtime support, so I suggest you rethink what you want to support. in the way of Windows versions.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            H Offline
            H Offline
            hansoctantan
            wrote on last edited by
            #5

            Actually I created the program to remove the use of third party. The reason is, you must buy the license. If that's the case, I'll try to find an another way...

            1 Reply Last reply
            0
            • H hansoctantan

              Hi guys, I have a question... I created an Image TIF Viewer and its working fine (Zooming, Move Up Down Left Right, Rotate, Next and Previous Page). This image viewer is not that high level app cause I just use Panel and Picturebox in it. The problem is I can't run this program to a lower version of windows so I decided to use Visual Basic 6. The problem is some of the datatypes is new to me, I just found them in the Internet. This is the part that I don't know how to convert it in VB6 I use this code to view the multi-tiff image

              Dim objGuid As Guid = (objImage.FrameDimensionsList(0))
              Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid)
              imgTotalPage = objImage.GetFrameCount(objDimension)
              objImage.SelectActiveFrame(objDimension, imgPage)

              the Guid and this System.Drawing.Imaging.FrameDimension, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D

              B Offline
              B Offline
              Bernhard Hiller
              wrote on last edited by
              #6

              System.Drawing.Imaging.FrameDimension existed already in .NET 1.1 - hence you can use it from Windows 2000. But you will need a very old version of Visual Studio to create a program targeted to framework version 1.1.

              S 1 Reply Last reply
              0
              • B Bernhard Hiller

                System.Drawing.Imaging.FrameDimension existed already in .NET 1.1 - hence you can use it from Windows 2000. But you will need a very old version of Visual Studio to create a program targeted to framework version 1.1.

                S Offline
                S Offline
                Simon_Whale
                wrote on last edited by
                #7

                He's after earlier than that! VB6

                Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups