Click here to Skip to main content
15,905,419 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Application.LocalUserAppDataPath Pin
Jon_Boy20-Oct-08 3:26
Jon_Boy20-Oct-08 3:26 
GeneralRe: Application.LocalUserAppDataPath Pin
JR21220-Oct-08 3:39
JR21220-Oct-08 3:39 
GeneralRe: Application.LocalUserAppDataPath Pin
Dave Kreskowiak20-Oct-08 4:40
mveDave Kreskowiak20-Oct-08 4:40 
GeneralRe: Application.LocalUserAppDataPath Pin
JR21221-Oct-08 3:23
JR21221-Oct-08 3:23 
GeneralRe: Application.LocalUserAppDataPath Pin
Jon_Boy20-Oct-08 4:42
Jon_Boy20-Oct-08 4:42 
QuestionLinking C source code to Visual Basic source code Pin
ajorge200819-Oct-08 22:18
ajorge200819-Oct-08 22:18 
AnswerRe: Linking C source code to Visual Basic source code Pin
N a v a n e e t h20-Oct-08 1:42
N a v a n e e t h20-Oct-08 1:42 
QuestionFormal trap with inherited class Pin
Sonhospa19-Oct-08 20:40
Sonhospa19-Oct-08 20:40 
Hello guys,

in my search for a solution integrating an ActiveX Object I received a code snippet for a class to convert the IPicture format first:
Private NotInheritable Class myClass
        Inherits System.Windows.Forms.AxHost
        Public Shared Shadows Function GetPictureFromIPicture(ByVal picture As Object) As Image
            Return AxHost.GetPictureFromIPicture(picture)
        End Function
    End Class 
and I should use it like
Dim pic As Bitmap = MyClass.GetPictureFromIPicture(GflAxObj.GetPicture)
The first trap I run into is that obviously VB requires "a private type to be within another type" (hope it's translated good enough from my german version that you understand what I mean). I have no idea what's meant and can't find any hints in the help files and internet...

Trying to make the class public VB tells me it would require a "sub...new" with reference to mybase.new and it's parameters. But this fails because I don't even know which parameters I might have to use.

One more: The last line in the code snippet "Dim pic as ..." refers to the ActiveXObject as "GflAxObj", but I can't see where it is defined. I'm afraid this would be one of the next traps.

Could someone please give me some guidance through this?

Thank you very much
Michael
QuestionAnd or combined statement in VB.NET? Pin
User 540919019-Oct-08 13:03
User 540919019-Oct-08 13:03 
AnswerRe: And or combined statement in VB.NET? Pin
Eslam Afifi19-Oct-08 13:52
Eslam Afifi19-Oct-08 13:52 
AnswerRe: And or combined statement in VB.NET? Pin
Anubhava Dimri19-Oct-08 23:28
Anubhava Dimri19-Oct-08 23:28 
AnswerRe: And or combined statement in VB.NET? Pin
Jon_Boy20-Oct-08 3:42
Jon_Boy20-Oct-08 3:42 
QuestionTextBox Scrollbar Pin
Crolus19-Oct-08 8:06
Crolus19-Oct-08 8:06 
AnswerRe: TextBox Scrollbar Pin
Thomas Stockwell20-Oct-08 2:15
professionalThomas Stockwell20-Oct-08 2:15 
QuestionPls help to find the problem Pin
afridy18-Oct-08 9:36
afridy18-Oct-08 9:36 
AnswerRe: Pls help to find the problem Pin
Mycroft Holmes18-Oct-08 17:31
professionalMycroft Holmes18-Oct-08 17:31 
AnswerRe: Pls help to find the problem Pin
EliottA19-Oct-08 5:04
EliottA19-Oct-08 5:04 
GeneralRe: Pls help to find the problem Pin
afridy19-Oct-08 5:16
afridy19-Oct-08 5:16 
GeneralRe: Pls help to find the problem Pin
EliottA19-Oct-08 5:20
EliottA19-Oct-08 5:20 
GeneralRe: Pls help to find the problem Pin
afridy19-Oct-08 5:35
afridy19-Oct-08 5:35 
GeneralRe: Pls help to find the problem Pin
afridy19-Oct-08 5:20
afridy19-Oct-08 5:20 
QuestionDid Charset.Auto use a unicode or ansi string version of the dll? Pin
Duncan Edwards Jones18-Oct-08 7:48
professionalDuncan Edwards Jones18-Oct-08 7:48 
AnswerRe: Did Charset.Auto use a unicode or ansi string version of the dll? Pin
Dave Kreskowiak19-Oct-08 5:42
mveDave Kreskowiak19-Oct-08 5:42 
QuestionVB.NET Pin
onlyehtisham18-Oct-08 7:23
onlyehtisham18-Oct-08 7:23 
AnswerRe: VB.NET PinPopular
Paul Conrad18-Oct-08 7:41
professionalPaul Conrad18-Oct-08 7:41 

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.