473,378 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

MessageBox font not displaying

I have a strange situation. A simple call to MessageBox.Show("XXX", "YYY")
does not display the message in the messagebox with a visible font. Based on
the content of the messagebox, the box sizes properly so I know there is a
message in there. I also found a keyboard shortcut where <ctrl>+<insert>
will copy the contents of the messagebox to the clipboard in plain text. I
see my messagebox text in the clipboard contents but not in the messagebox.

The best background that I can give in this situation is that is that I
believe I was working on printing documents when this stopped working. I
think this might somehow be interrelated because I found that if I display a
print preview dialog, then after that I can see the text in the messagebox
within the scope of that debugging session.

This is as bizarre as it sounds.

To recap:
1. create a new project, add a button with a
MessageBox.Show("XXX","YYY"). MessageBox text does not show.

2. create a new project, add a PrintPreviewDialog, a print document, and
a button. Assign the print document to the print preview dialog. on the
button: MessageBox.Show("XXX", "YYY"); , printPreviewDialog1.Show();
MessageBox.Show("XXX", "YYY");. The message displays in the second message
box.

I have tried the first test in both VB.NET 2003 and C#.NET 2003 with a
number of different message box styles.
Nov 22 '05 #1
11 3639
Hi,

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 when you're working on a print document. If there is any
misunderstanding, please feel free to let me know.

Thanks for your repro steps. I have tried it on my computer. However, it
doesn't reproduce. Could you try it again on another machine? I think this
might be a machine specific issue.

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

Nov 22 '05 #2
Hi Kevin,
I applogize for any confusion. The text in the messagebox is not displaying
until I go through a print preview cycle. Prior to bringing up the print
preview dialog, I see no text in the body of the messagebox. I only
mentioned the print preview dialog because it made the problem more curious
because I could see the messagebox after bringing up the print preview dialog.

I understand that this is most likely something machine specific. Any
advice on how to find the root of the issue would be appreciated.

Thanks
Rich
"Kevin Yu [MSFT]" wrote:
Hi,

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 when you're working on a print document. If there is any
misunderstanding, please feel free to let me know.

Thanks for your repro steps. I have tried it on my computer. However, it
doesn't reproduce. Could you try it again on another machine? I think this
might be a machine specific issue.

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

Nov 22 '05 #3
Hi Rich,

You can try to branch to a small and simple project to see if it is still
happening. If it still occurs, when you copy that project to another
machine with the same environment, will it happen again? If a repro can be
made, could you package it and send to me? Remove 'online' from the nospam
alias is my real email.

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

Nov 22 '05 #4
I did try this project on another machine and it worked fine.

As another experiment, I built my messagebox project to a release exe and it
still had the same issue as an executable as it did in the debugger.

Also, I did one other test. I remembered that I still had visual studio
2000 on my machine. I tried the same simple messagebox project in c# with
VS2000 and I had the same behavior.

I know this is machine specific. Is it possible to remove the framework and
reinstall it? Would this make sense?

Thanks
Rich

"Kevin Yu [MSFT]" wrote:
Hi Rich,

You can try to branch to a small and simple project to see if it is still
happening. If it still occurs, when you copy that project to another
machine with the same environment, will it happen again? If a repro can be
made, could you package it and send to me? Remove 'online' from the nospam
alias is my real email.

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

Nov 22 '05 #5
Hi Rich,

I'm not quite sure if re-installing .NET framework will fix the problem.
But I think you can try to install .NET framework 1.1 sp1 on you machine if
you haven't applied it yet. It can be installed from either Windows Update
site or to be downloaded from the following link:

http://www.microsoft.com/downloads/d...54f-088e-40b2-
bbdb-a83353618b38&DisplayLang=en

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

Nov 22 '05 #6
I tried reinstalling the service pack. It did not make a difference. I
uninstalled and reinstalled the framework and it did not make a difference
either.

Do you have any other ideas?

Thanks
Rich
Nov 22 '05 #7
Hi Rich,

Since I cannot repro it on my computer and installing the sp also doesn't
help. I think it's hard for me to continue troubleshooting in the
newsgroup.

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.

HTH.

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

Nov 22 '05 #8
Guys,
any progress on this issue? I am having a very similar problem with
..NET1.1 sp1. Apps build with VB6 display messagesboxes just fine.
Andrei

v-****@online.microsoft.com (Kevin Yu [MSFT]) wrote in message news:<ma*************@cpmsftngxa10.phx.gbl>...
Hi,

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 when you're working on a print document. If there is any
misunderstanding, please feel free to let me know.

Thanks for your repro steps. I have tried it on my computer. However, it
doesn't reproduce. Could you try it again on another machine? I think this
might be a machine specific issue.

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

Nov 22 '05 #9
Hi Andrei,

I have given up trying to figure this one out. My approach is going to be
to reinstall the os at the beginning of the year.

Rich

"Andrei" wrote:
Guys,
any progress on this issue? I am having a very similar problem with
..NET1.1 sp1. Apps build with VB6 display messagesboxes just fine.
Andrei

v-****@online.microsoft.com (Kevin Yu [MSFT]) wrote in message news:<ma*************@cpmsftngxa10.phx.gbl>...
Hi,

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 when you're working on a print document. If there is any
misunderstanding, please feel free to let me know.

Thanks for your repro steps. I have tried it on my computer. However, it
doesn't reproduce. Could you try it again on another machine? I think this
might be a machine specific issue.

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

Nov 22 '05 #10
Andrei, I hope you are still monitoring this thread. :)

The problem on my machine was because of an incompatibility with Visual
Studio 2000/2003 and VirusScan Enterprise 8.0. When the "Buffer Overflow
Protection" in VirusScan Enterprise 8.0 is disabled, the text displays
properly.

Hope it helps!
Rich

"Andrei" wrote:
Guys,
any progress on this issue? I am having a very similar problem with
..NET1.1 sp1. Apps build with VB6 display messagesboxes just fine.
Andrei

v-****@online.microsoft.com (Kevin Yu [MSFT]) wrote in message news:<ma*************@cpmsftngxa10.phx.gbl>...
Hi,

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 when you're working on a print document. If there is any
misunderstanding, please feel free to let me know.

Thanks for your repro steps. I have tried it on my computer. However, it
doesn't reproduce. Could you try it again on another machine? I think this
might be a machine specific issue.

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

Nov 22 '05 #11
Finally a resolution!!
The problem on my machine was because of an incompatibility with Visual
Studio 2000/2003 and VirusScan Enterprise 8.0. When the "Buffer Overflow
Protection" in VirusScan Enterprise 8.0 is disabled, the text displays
properly.

FYI - Also, the same issue was noticed with text in list boxes.

"Kevin Yu [MSFT]" wrote:
Hi Rich,

Since I cannot repro it on my computer and installing the sp also doesn't
help. I think it's hard for me to continue troubleshooting in the
newsgroup.

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.

HTH.

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

Nov 22 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Rich Tasker | last post by:
I have a strange situation. A simple call to MessageBox.Show("XXX", "YYY") does not display the message in the messagebox with a visible font. Based on the content of the messagebox, the box...
7
by: Bill | last post by:
For some reason, I have an errormessage popup that "blinks", but pops up BEHIND the applications, which is confusing to users. Is there any way to force it to the top?
2
by: Marc Jennings | last post by:
Apologies if this is not the right group to ask this in, but I cannot think where else it might fit! I have a strange problem when I create an app that uses the a message box. When the box...
1
by: kannan | last post by:
hi, It might be the simple question. I am concatinating two string and displaying in messagebox. Ex: MessageBox.show(string.Concat("The following validation(s) failed:\n", arg.DisplayMessage))...
12
by: Marc Jennings | last post by:
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 > MessageBox.Show(this,"Hello","nothing...
20
by: Peter E. Granger | last post by:
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it...
4
by: Larry Woods | last post by:
I have a Messagebox that looks like: MessageBox.Show("There are pending changes for this patient. Do you want to continue to close?", "Pending Changes", MessageBoxButtons.YesNo,...
10
by: Ed Bitzer | last post by:
One option of the messagebox object indicates it can be placed over a selected window rather than just appearing centered on the desktop. The function is "Overloads Public Shared Function...
6
by: garyusenet | last post by:
Hi i have a messagebox like so. MessageBox.Show(mystring); I would like to highlight each occurance of the word "and" in the messagebox. How do I tell the messagebox to highlight each...
3
by: Tim Hunter | last post by:
Hi, I am running WinXP Pro with Access 2003. I would like to have a window or an Alert Message that displays and stops processing without continuing out of the routine that called it. Like a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.