Working with DLLs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • victorsk

    #1

    Working with DLLs

    Hello,

    With the help from people here, I've managed to make VB export functions and
    make my DLL app work from within another application. Now I am required to
    implement a functionality that when a user minimizes the main application,
    the VB DLL application will get minimized also. So, if the VB DLL B works
    inside application A, when A gets minimized, B gets minimized too. So far,
    when I run application B inside A, I am only allowed to work within B until
    it is closed. Is there a VB form property that modifies a state of a form?
    If not, is there anything else I should do? Sorry, I am quite new to VB
    environment and its functionalities .

    Thank you,
    Victor.
  • Herfried K. Wagner [MVP]

    #2
    Re: Working with DLLs

    "victorsk" <victorsk@discu ssions.microsof t.com> schrieb:[color=blue]
    > Is there a VB form property that modifies a state of a form?
    > If not, is there anything else I should do?[/color]

    \\\
    Me.WindowState = vbMinimized
    ///

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • victorsk

      #3
      Re: Working with DLLs

      Hi,

      Thanks for the reply. I put this code inside Form_Load() method but what it
      does is to start DLL application in a minimized state. There is an
      equivalent in form1 -> properties -> windowState options. But, I think it
      does have to do something with Window state and "Me" data member so I
      appreciate the idea.

      Thank you,
      Victor.


      "Herfried K. Wagner [MVP]" wrote:
      [color=blue]
      > "victorsk" <victorsk@discu ssions.microsof t.com> schrieb:[color=green]
      > > Is there a VB form property that modifies a state of a form?
      > > If not, is there anything else I should do?[/color]
      >
      > \\\
      > Me.WindowState = vbMinimized
      > ///
      >
      > --
      > M S Herfried K. Wagner
      > M V P <URL:http://dotnet.mvps.org/>
      > V B <URL:http://classicvb.org/petition/>
      >[/color]

      Comment

      • victorsk

        #4
        Re: Working with DLLs

        Hi,

        Sorry, I probably have the weirdest questions here. What basically happens
        is when I run my custom DLL app inside a main application, all the
        functionalities of main application are disabled while the DLL app is open.
        What I need to implement is the enabling of both DLL app and main
        (container?) app functionalities which includes minimizing the main app
        together with DLL app - such are my bosses' specifications.

        Victor.

        "victorsk" wrote:
        [color=blue]
        > Hi,
        >
        > Thanks for the reply. I put this code inside Form_Load() method but what it
        > does is to start DLL application in a minimized state. There is an
        > equivalent in form1 -> properties -> windowState options. But, I think it
        > does have to do something with Window state and "Me" data member so I
        > appreciate the idea.
        >
        > Thank you,
        > Victor.
        >
        >
        > "Herfried K. Wagner [MVP]" wrote:
        >[color=green]
        > > "victorsk" <victorsk@discu ssions.microsof t.com> schrieb:[color=darkred]
        > > > Is there a VB form property that modifies a state of a form?
        > > > If not, is there anything else I should do?[/color]
        > >
        > > \\\
        > > Me.WindowState = vbMinimized
        > > ///
        > >
        > > --
        > > M S Herfried K. Wagner
        > > M V P <URL:http://dotnet.mvps.org/>
        > > V B <URL:http://classicvb.org/petition/>
        > >[/color][/color]

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Working with DLLs

          "victorsk" <victorsk@discu ssions.microsof t.com> schrieb:[color=blue]
          > Sorry, I probably have the weirdest questions here. What basically
          > happens
          > is when I run my custom DLL app inside a main application, all the
          > functionalities of main application are disabled while the DLL app is
          > open.
          > What I need to implement is the enabling of both DLL app and main
          > (container?) app functionalities which includes minimizing the main app
          > together with DLL app - such are my bosses' specifications.[/color]

          Notice that the scenario of exporting functions from VB6 DLLs is in no way
          supported, although it is possible. There are certain things you'll have to
          keep in mind, like potential threading issues. I don't recommend exporting
          functionality that deals with VB6 UIs at all, and I would not take a project
          with such a requirement.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          Working...