MessageBox quirk - msgbox.jpg (0/1)

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

    MessageBox quirk - msgbox.jpg (0/1)

    Hi,

    I have a problem with the message text and button text not showing up
    in a messagebox. (See attachment)

    The code I used to call this example was[color=blue]
    > MessageBox.Show (this,"Hello"," nothing shown",MessageB oxButtons.OK,Me ssageBoxIcon.In formation);[/color]

    I had this problem a couple of weeks ago when I was running Windows
    2003 Server on my dev machine, and I put it down to an OS / Framework
    problem. I have since rebuilt the dev machine with XP SP1 (SP2 has
    never been near this build), and the problem is still here.

    Immediate thoughts would be a graphiocs card driver problem, but
    messageboxes from other commercial apps work fine.

    I am confused. Can anyone help?
  • Marc Jennings

    #2
    Re: MessageBox quirk - msgbox.jpg (0/1)

    My newsreader software seems to have posted the image as a separate
    post. Sorry about that.

    I have just tried the windows standard drivers for the display in the
    dev amchine and there was no improvement (I had done this bofore, but
    I wanted to double check the result). Drivers don't seem to be the
    issue, then.

    (The compiled app runs fine on another machine, so it must be
    something specific to my dev box.)

    Comment

    • Kevin Yu [MSFT]

      #3
      Re: MessageBox quirk - msgbox.jpg (0/1)

      Hi Marc,

      First of all, I would like to confirm my understanding of your issue. From
      your description, I understand that the text in the MessageBox is not
      showing properly on your dev box. If there is any misunderstandin g, please
      feel free to let me know.

      This problem seems to be machine specific. Could you try to reproduce it
      with some simple steps?

      1. Using the app wizard, create a new C# app. (Select "Windows Application"
      in the New Project diailog.)
      2. Drag and drop a button on the form.
      3. Double-click on the button to generate an event handler for the button.
      4. Enter the following line of code to the event handler:
      MessageBox.Show ("Hello!");
      5. Run the application, and click the button which was added to the form.

      If so, I think there might be something wrong with the .NET framework
      installation. Could you try to re-install the .NET framework?

      Kevin Yu
      =======
      "This posting is provided "AS IS" with no warranties, and confers no
      rights."

      Comment

      • Marc Jennings

        #4
        Re: MessageBox quirk - msgbox.jpg (0/1)

        That is eactly what happens. Any time I call a message box (I can do
        it on Form_Load, from a button, at startup, anywhere...) I get the
        same result. The title of the messagebox is fine, the icon (if
        specified) is ok, the outline of the button(s) is ok, but the text,
        and button text do not show up.

        I will try to re-install the framework, but this has happened on two
        installations on the same box, from different media.

        I'll keep trying, though.

        On Sat, 13 Nov 2004 05:08:49 GMT, v-kevy@online.mic rosoft.com (Kevin
        Yu [MSFT]) wrote:
        [color=blue]
        >Hi Marc,
        >
        >First of all, I would like to confirm my understanding of your issue. From
        >your description, I understand that the text in the MessageBox is not
        >showing properly on your dev box. If there is any misunderstandin g, please
        >feel free to let me know.
        >
        >This problem seems to be machine specific. Could you try to reproduce it
        >with some simple steps?
        >
        >1. Using the app wizard, create a new C# app. (Select "Windows Application"
        >in the New Project diailog.)
        >2. Drag and drop a button on the form.
        >3. Double-click on the button to generate an event handler for the button.
        >4. Enter the following line of code to the event handler:
        >MessageBox.Sho w("Hello!");
        >5. Run the application, and click the button which was added to the form.
        >
        >If so, I think there might be something wrong with the .NET framework
        >installation . Could you try to re-install the .NET framework?
        >
        >Kevin Yu
        >=======
        >"This posting is provided "AS IS" with no warranties, and confers no
        >rights."[/color]

        Comment

        • Marc Jennings

          #5
          Re: MessageBox quirk - msgbox.jpg (0/1)

          Reinstalled the framework - no difference.
          Reinstalled the framework from a different source - no change
          removed video drivers to use windows default - no change
          tried different version of the video driver - no change

          Also, any items in a listbox control do not show up either. I am most
          perplexed.

          On Mon, 15 Nov 2004 09:46:16 +0000, Marc Jennings
          <MarcJennings@c ommunity.nospam > wrote:
          [color=blue]
          >That is eactly what happens. Any time I call a message box (I can do
          >it on Form_Load, from a button, at startup, anywhere...) I get the
          >same result. The title of the messagebox is fine, the icon (if
          >specified) is ok, the outline of the button(s) is ok, but the text,
          >and button text do not show up.
          >
          >I will try to re-install the framework, but this has happened on two
          >installation s on the same box, from different media.
          >
          >I'll keep trying, though.
          >
          >On Sat, 13 Nov 2004 05:08:49 GMT, v-kevy@online.mic rosoft.com (Kevin
          >Yu [MSFT]) wrote:
          >[color=green]
          >>Hi Marc,
          >>
          >>First of all, I would like to confirm my understanding of your issue. From
          >>your description, I understand that the text in the MessageBox is not
          >>showing properly on your dev box. If there is any misunderstandin g, please
          >>feel free to let me know.
          >>
          >>This problem seems to be machine specific. Could you try to reproduce it
          >>with some simple steps?
          >>
          >>1. Using the app wizard, create a new C# app. (Select "Windows Application"
          >>in the New Project diailog.)
          >>2. Drag and drop a button on the form.
          >>3. Double-click on the button to generate an event handler for the button.
          >>4. Enter the following line of code to the event handler:
          >>MessageBox.Sh ow("Hello!");
          >>5. Run the application, and click the button which was added to the form.
          >>
          >>If so, I think there might be something wrong with the .NET framework
          >>installatio n. Could you try to re-install the .NET framework?
          >>
          >>Kevin Yu
          >>=======
          >>"This posting is provided "AS IS" with no warranties, and confers no
          >>rights."[/color][/color]

          Comment

          • Martin Dechev

            #6
            Re: MessageBox quirk - msgbox.jpg (0/1)

            Hi,

            Looks like the font used to display these texts (usually Tahoma) is messed
            up, or the color for the text is set to the value of the background color.
            Check it in the Appearance settings for your desktop. If the color is ok try
            setting different font for the messageboxes. If this helps with the
            messageboxes - try to replace the problematic (previous) font with the
            original one in the Windows installation CD.

            Hope this helps
            Martin Dechev
            ASP.NET MVP
            "Marc Jennings" <MarcJennings@c ommunity.nospam > wrote in message
            news:7ubhp09rb3 ffpthmnht8gsql6 2vk39rknh@4ax.c om...[color=blue]
            > Reinstalled the framework - no difference.
            > Reinstalled the framework from a different source - no change
            > removed video drivers to use windows default - no change
            > tried different version of the video driver - no change
            >
            > Also, any items in a listbox control do not show up either. I am most
            > perplexed.
            >
            > On Mon, 15 Nov 2004 09:46:16 +0000, Marc Jennings
            > <MarcJennings@c ommunity.nospam > wrote:
            >[color=green]
            > >That is eactly what happens. Any time I call a message box (I can do
            > >it on Form_Load, from a button, at startup, anywhere...) I get the
            > >same result. The title of the messagebox is fine, the icon (if
            > >specified) is ok, the outline of the button(s) is ok, but the text,
            > >and button text do not show up.
            > >
            > >I will try to re-install the framework, but this has happened on two
            > >installation s on the same box, from different media.
            > >
            > >I'll keep trying, though.
            > >
            > >On Sat, 13 Nov 2004 05:08:49 GMT, v-kevy@online.mic rosoft.com (Kevin
            > >Yu [MSFT]) wrote:
            > >[color=darkred]
            > >>Hi Marc,
            > >>
            > >>First of all, I would like to confirm my understanding of your issue.[/color][/color][/color]
            From[color=blue][color=green][color=darkred]
            > >>your description, I understand that the text in the MessageBox is not
            > >>showing properly on your dev box. If there is any misunderstandin g,[/color][/color][/color]
            please[color=blue][color=green][color=darkred]
            > >>feel free to let me know.
            > >>
            > >>This problem seems to be machine specific. Could you try to reproduce it
            > >>with some simple steps?
            > >>
            > >>1. Using the app wizard, create a new C# app. (Select "Windows[/color][/color][/color]
            Application"[color=blue][color=green][color=darkred]
            > >>in the New Project diailog.)
            > >>2. Drag and drop a button on the form.
            > >>3. Double-click on the button to generate an event handler for the[/color][/color][/color]
            button.[color=blue][color=green][color=darkred]
            > >>4. Enter the following line of code to the event handler:
            > >>MessageBox.Sh ow("Hello!");
            > >>5. Run the application, and click the button which was added to the[/color][/color][/color]
            form.[color=blue][color=green][color=darkred]
            > >>
            > >>If so, I think there might be something wrong with the .NET framework
            > >>installatio n. Could you try to re-install the .NET framework?
            > >>
            > >>Kevin Yu
            > >>=======
            > >>"This posting is provided "AS IS" with no warranties, and confers no
            > >>rights."[/color][/color]
            >[/color]


            Comment

            • Marc Jennings

              #7
              Re: MessageBox quirk - msgbox.jpg (0/1)

              Thanks. I tried, but there was no difference. I also checked the
              exact size of the font file against a known good one, and it was the
              same (message boxes from non-dotnet apps seem to work fine with Tahoma
              as the default font)



              On Mon, 15 Nov 2004 16:55:34 +0100, "Martin Dechev"
              <detcheff_@hotm ail.com> wrote:
              [color=blue]
              >Hi,
              >
              >Looks like the font used to display these texts (usually Tahoma) is messed
              >up, or the color for the text is set to the value of the background color.
              >Check it in the Appearance settings for your desktop. If the color is ok try
              >setting different font for the messageboxes. If this helps with the
              >messageboxes - try to replace the problematic (previous) font with the
              >original one in the Windows installation CD.
              >
              >Hope this helps
              >Martin Dechev
              >ASP.NET MVP[/color]

              Comment

              • Kevin Yu [MSFT]

                #8
                Re: MessageBox quirk - msgbox.jpg (0/1)

                Hi Marc,

                Looking at the nature of this issue, it would require intensive
                troubleshooting which would be done quickly and effectively with direct
                assistance from a Microsoft Support Professional through Microsoft Product
                Support Services. You can contact Microsoft Product Support directly to
                discuss additional support options you may have available, by contacting us
                at 1-(800)936-5800 or by choosing one of the options listed at
                http://support.microsoft.com/default...d=sz;en-us;top. If this is not
                an urgent issue and you would like us to create an incident for you and
                have Microsoft Customer Service Representative contact you directly, please
                send email to (remove "online." from this no Spam email address):
                mailto:dscommhf @online.microso ft.com with the following information,

                * Include "Followup: <Tomcat IssueID>" in the email Subject.
                *Location of the post
                *Subject Line
                * First Name, Last Name
                *MSDN Subscriber ID
                *Company name (if any)
                *Phone number
                *e-mail address

                Kevin Yu
                =======
                "This posting is provided "AS IS" with no warranties, and confers no
                rights."

                Comment

                • Sami Vaaraniemi

                  #9
                  Re: MessageBox quirk - msgbox.jpg (0/1)

                  Just a wild guess, but you do have the STAThread attribute attached to the
                  Main method, do you? Some system dialogs require the calling thread to be in
                  STA and it is known to cause odd behavior if you leave the attribute out.

                  Regards,
                  Sami

                  "Marc Jennings" <MarcJennings@c ommunity.nospam > wrote in message
                  news:tm99p0pe95 o92ef3m197tt949 crg3grp67@4ax.c om...[color=blue]
                  > Hi,
                  >
                  > I have a problem with the message text and button text not showing up
                  > in a messagebox. (See attachment)
                  >
                  > The code I used to call this example was[color=green]
                  >> MessageBox.Show (this,"Hello"," nothing
                  >> shown",MessageB oxButtons.OK,Me ssageBoxIcon.In formation);[/color]
                  >
                  > I had this problem a couple of weeks ago when I was running Windows
                  > 2003 Server on my dev machine, and I put it down to an OS / Framework
                  > problem. I have since rebuilt the dev machine with XP SP1 (SP2 has
                  > never been near this build), and the problem is still here.
                  >
                  > Immediate thoughts would be a graphiocs card driver problem, but
                  > messageboxes from other commercial apps work fine.
                  >
                  > I am confused. Can anyone help?[/color]


                  Comment

                  • Marc Jennings

                    #10
                    Re: MessageBox quirk - msgbox.jpg (0/1)

                    I am not 100% sure what you mean, to be honest. I assume you mean having
                    [STAThread] immediately prior to the Main method? if so, then yes, I do.

                    "Sami Vaaraniemi" wrote:
                    [color=blue]
                    > Just a wild guess, but you do have the STAThread attribute attached to the
                    > Main method, do you? Some system dialogs require the calling thread to be in
                    > STA and it is known to cause odd behavior if you leave the attribute out.
                    >
                    > Regards,
                    > Sami
                    >
                    > "Marc Jennings" <MarcJennings@c ommunity.nospam > wrote in message
                    > news:tm99p0pe95 o92ef3m197tt949 crg3grp67@4ax.c om...[color=green]
                    > > Hi,
                    > >
                    > > I have a problem with the message text and button text not showing up
                    > > in a messagebox. (See attachment)
                    > >
                    > > The code I used to call this example was[color=darkred]
                    > >> MessageBox.Show (this,"Hello"," nothing
                    > >> shown",MessageB oxButtons.OK,Me ssageBoxIcon.In formation);[/color]
                    > >
                    > > I had this problem a couple of weeks ago when I was running Windows
                    > > 2003 Server on my dev machine, and I put it down to an OS / Framework
                    > > problem. I have since rebuilt the dev machine with XP SP1 (SP2 has
                    > > never been near this build), and the problem is still here.
                    > >
                    > > Immediate thoughts would be a graphiocs card driver problem, but
                    > > messageboxes from other commercial apps work fine.
                    > >
                    > > I am confused. Can anyone help?[/color]
                    >
                    >
                    >[/color]

                    Comment

                    • Marc Jennings

                      #11
                      Re: MessageBox quirk - msgbox.jpg (0/1)

                      Ianhoc found the solution to this problem and posted it in a thread
                      entitled "MessageBox blank"
                      [color=blue]
                      >It seems McAfee Version 8 is the culprit - disable buffer overrun and all is
                      >okay again.
                      >
                      >Go figure!![/color]

                      Fantastic. Thanks Ianhoc. (I only wish I could put back all the hair
                      I have torn out over this problem. :( )

                      Comment

                      • Marc Jennings

                        #12
                        Re: MessageBox quirk - msgbox.jpg (0/1)

                        There is a hotfix available from McAfee, and it fixes the problem.

                        I found it referenced at
                        PGBET APK 2.4.1 untuk Android: slot online resmi, panel RTP live, transaksi QRIS, dan unduh file 45 MB dari portal resmi.


                        HTH

                        On Tue, 16 Nov 2004 10:42:32 +0000, Marc Jennings
                        <MarcJennings@c ommunity.nospam > wrote:
                        [color=blue]
                        >Ianhoc found the solution to this problem and posted it in a thread
                        >entitled "MessageBox blank"
                        >[color=green]
                        >>It seems McAfee Version 8 is the culprit - disable buffer overrun and all is
                        >>okay again.
                        >>
                        >>Go figure!![/color]
                        >
                        >Fantastic. Thanks Ianhoc. (I only wish I could put back all the hair
                        >I have torn out over this problem. :( )[/color]

                        Comment

                        • Kevin Yu [MSFT]

                          #13
                          Re: MessageBox quirk - msgbox.jpg (0/1)

                          Hi Marc,

                          Thanks for sharing your experience with all the people here. If you have
                          any questions, please feel free to post them in the community.

                          Kevin Yu
                          =======
                          "This posting is provided "AS IS" with no warranties, and confers no
                          rights."

                          Comment

                          Working...