Click here to Skip to main content
15,896,063 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: need help on FUnctions Pin
Anoop Brijmohun6-Oct-08 0:53
Anoop Brijmohun6-Oct-08 0:53 
GeneralRe: need help on FUnctions Pin
ay3ssah6-Oct-08 2:51
ay3ssah6-Oct-08 2:51 
QuestionWriting a catch error handing Pin
zo9005-Oct-08 2:06
zo9005-Oct-08 2:06 
QuestionRe: Writing a catch error handing Pin
jzonthemtn5-Oct-08 7:42
jzonthemtn5-Oct-08 7:42 
AnswerRe: Writing a catch error handing Pin
zo9005-Oct-08 8:19
zo9005-Oct-08 8:19 
GeneralRe: Writing a catch error handing Pin
jzonthemtn5-Oct-08 8:30
jzonthemtn5-Oct-08 8:30 
GeneralRe: Writing a catch error handing Pin
zo9005-Oct-08 8:40
zo9005-Oct-08 8:40 
QuestionHow do I show an uncommon image format? Pin
Sonhospa4-Oct-08 0:56
Sonhospa4-Oct-08 0:56 
Hello everybody,

having to work with an uncommon image format (dpx, a bitmap which is not supported by GDI+) I tried a few libraries which support the format as well as Visual basic. My knowledge of VB is still too little to implement the new image object successfully and show a dpx-picture in a picture box.

Maybe somebody can help me with the basics a bit? In the particular case, I'm using a free graphics Library used by the famous XnView. My following code throws an error saying that the COM-Object couldn't be converted:
Imports GflAx
Private MyImage As GflAx.GflAx

Public Class clsXn

    Public Sub ShowMyImage(ByVal fileToDisplay As String, ByVal xSize As Integer, _
                           ByVal ySize As Integer)
        ' Sets up an image object to be displayed.
        If (MyImage IsNot Nothing) Then
            MyImage.Dispose()
        End If

        ' Stretches the image to fit the pictureBox. 
        frmHead.pbox.SizeMode = PictureBoxSizeMode.StretchImage
        MyImage = New GflAx.GflAx
        MyImage.LoadBitmap(fileToDisplay)
        frmHead.pbox.ClientSize = New Size(xSize, ySize)
        frmHead.pbox.Image = MyImage             '<------- ERROR THROWN
    End Sub
end class


The function is called from the form with
Private Sub btnTestXn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTestXn.Click
    Dim Xn As New clsXn()
    Xn.ShowMyImage("D:\Test\pic1041.dpx", 192, 108)
End Sub


What did I forget or how can I solve the issue?
I'm a bit afraid that I ran into a GDI+ issue that only accepts certain formats, but I thought using the third party object this would have been solved.

Thanks for any advice,
Michael
AnswerRe: How do I show an uncommon image format? Pin
Dave Kreskowiak4-Oct-08 5:25
mveDave Kreskowiak4-Oct-08 5:25 
GeneralRe: How do I show an uncommon image format? Pin
Sonhospa4-Oct-08 8:42
Sonhospa4-Oct-08 8:42 
GeneralRe: How do I show an uncommon image format? Pin
Dave Kreskowiak4-Oct-08 13:18
mveDave Kreskowiak4-Oct-08 13:18 
QuestionVB.NET comboBox help !! Pin
Saam_cse4-Oct-08 0:55
Saam_cse4-Oct-08 0:55 
AnswerRe: VB.NET comboBox help !! Pin
Dave Kreskowiak4-Oct-08 5:19
mveDave Kreskowiak4-Oct-08 5:19 
AnswerRe: VB.NET comboBox help !! Pin
Vimalsoft(Pty) Ltd5-Oct-08 0:19
professionalVimalsoft(Pty) Ltd5-Oct-08 0:19 
AnswerRe: VB.NET comboBox help !! Pin
jzonthemtn5-Oct-08 7:43
jzonthemtn5-Oct-08 7:43 
QuestionVB.NET INTERESTING PROBLEM-- MOVING AVERAGE ,, NEED HELP !!!! Pin
adarshyam3-Oct-08 18:45
adarshyam3-Oct-08 18:45 
AnswerRe: VB.NET INTERESTING PROBLEM-- MOVING AVERAGE ,, NEED HELP !!!! Pin
Dave Kreskowiak4-Oct-08 5:17
mveDave Kreskowiak4-Oct-08 5:17 
GeneralRe: VB.NET INTERESTING PROBLEM-- MOVING AVERAGE ,, NEED HELP !!!! Pin
adarshyam6-Oct-08 7:22
adarshyam6-Oct-08 7:22 
QuestionHow to disable / hide Start Orb in Windows Vista using Visual Basic 6 (not VB.Net, VB2005 or VB2008 or C# or C++ !!!) Pin
Vladimir Nazarov3-Oct-08 15:18
Vladimir Nazarov3-Oct-08 15:18 
AnswerRe: How to disable / hide Start Orb in Windows Vista using Visual Basic 6 (not VB.Net, VB2005 or VB2008 or C# or C++ !!!) Pin
jzonthemtn3-Oct-08 15:43
jzonthemtn3-Oct-08 15:43 
QuestionFunction Delegate Pin
nlarson113-Oct-08 11:21
nlarson113-Oct-08 11:21 
AnswerRe: Function Delegate Pin
Dave Kreskowiak3-Oct-08 12:26
mveDave Kreskowiak3-Oct-08 12:26 
GeneralRe: Function Delegate Pin
nlarson113-Oct-08 13:46
nlarson113-Oct-08 13:46 
GeneralRe: Function Delegate Pin
Guffa4-Oct-08 1:06
Guffa4-Oct-08 1:06 
AnswerRe: Function Delegate Pin
John_Adams3-Oct-08 12:27
John_Adams3-Oct-08 12:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.