Messagebox.Show

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

    #1

    Messagebox.Show

    How do I use Messagebox.Show in a dll.
    It doesn't seem to work since i have no form?
    -Lou


  • Tom Shelton

    #2
    Re: Messagebox.Show

    On 2007-01-18, Lou <lou.garvin@com cast.netwrote:
    How do I use Messagebox.Show in a dll.
    It doesn't seem to work since i have no form?
    -Lou
    >
    >
    You need to add a reference to System.Windows. Forms.dll.

    --
    Tom Shelton

    Comment

    • Phill W.

      #3
      Re: Messagebox.Show

      Lou wrote:
      How do I use Messagebox.Show in a dll.
      It doesn't seem to work since i have no form?
      From where are you calling the Dll method that displays the MessageBox?

      Console application?
      Forms App?
      ASP.Net web page?

      Regards,
      Phill W.

      Comment

      • Lou

        #4
        Re: Messagebox.Show

        Can't do that, it won't let me. I am trying to issue it from a COMCLASS

        "Tom Shelton" <tom_shelton@co mcastXXXXXXX.ne twrote in message
        news:1tadnVDx_t 4sFzLYnZ2dnUVZ_ vfinZ2d@comcast .com...
        On 2007-01-18, Lou <lou.garvin@com cast.netwrote:
        >How do I use Messagebox.Show in a dll.
        >It doesn't seem to work since i have no form?
        >-Lou
        >>
        >>
        >
        You need to add a reference to System.Windows. Forms.dll.
        >
        --
        Tom Shelton

        Comment

        • Lou

          #5
          Re: Messagebox.Show

          From a vb class COMCLASS
          If I try to do System.Windows; it won't let me!
          the "Windows" doesn't enumerate in the intellisense?

          "Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
          news:eoo1rj$rn1 $2@south.jnrs.j a.net...
          Lou wrote:
          >How do I use Messagebox.Show in a dll.
          >It doesn't seem to work since i have no form?
          >
          From where are you calling the Dll method that displays the MessageBox?
          >
          Console application?
          Forms App?
          ASP.Net web page?
          >
          Regards,
          Phill W.

          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Messagebox.Show

            "Lou" <lou.garvin@com cast.netschrieb :
            How do I use Messagebox.Show in a dll.
            It doesn't seem to work since i have no form?
            In addition to the other replies, why not just use 'MsgBox'?

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

            Comment

            • RobinS

              #7
              Re: Messagebox.Show

              What do you mean, it won't let you? How did you add the reference
              to your project?

              Robin S.
              ------------------------------
              "Lou" <lou.garvin@com cast.netwrote in message
              news:umKqcGyOHH A.4940@TK2MSFTN GP03.phx.gbl...
              Can't do that, it won't let me. I am trying to issue it from a
              COMCLASS
              >
              "Tom Shelton" <tom_shelton@co mcastXXXXXXX.ne twrote in message
              news:1tadnVDx_t 4sFzLYnZ2dnUVZ_ vfinZ2d@comcast .com...
              >On 2007-01-18, Lou <lou.garvin@com cast.netwrote:
              >>How do I use Messagebox.Show in a dll.
              >>It doesn't seem to work since i have no form?
              >>-Lou
              >>>
              >>>
              >>
              >You need to add a reference to System.Windows. Forms.dll.
              >>
              >--
              >Tom Shelton
              >
              >

              Comment

              • Lou

                #8
                Re: Messagebox.Show

                That's what I ended up doing.

                "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
                news:uEMyne3OHH A.4172@TK2MSFTN GP03.phx.gbl...
                "Lou" <lou.garvin@com cast.netschrieb :
                >How do I use Messagebox.Show in a dll.
                >It doesn't seem to work since i have no form?
                >
                In addition to the other replies, why not just use 'MsgBox'?
                >
                --
                M S Herfried K. Wagner
                M V P <URL:http://dotnet.mvps.org/>
                V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                Comment

                Working...