A code in VB.NET.
-
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 thisSystem.Drawing.Imaging.FrameDimension
, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D -
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 thisSystem.Drawing.Imaging.FrameDimension
, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-D -
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 thisSystem.Drawing.Imaging.FrameDimension
, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-DIt 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
-
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 thisSystem.Drawing.Imaging.FrameDimension
, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-DThere 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 -
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 KreskowiakActually 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...
-
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 thisSystem.Drawing.Imaging.FrameDimension
, is there a same type of this in VB6? Any answer/reply/comment is appreciated.:thumbsup: Thanks in advance... :-DSystem.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. -
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.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