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 shown",MessageB oxButtons.OK,Me ssageBoxIcon.In formation);
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? 12 1456
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.)
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."
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-****@online.mic rosoft.com (Kevin
Yu [MSFT]) wrote: 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."
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
<Ma**********@c ommunity.nospam > wrote: 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-****@online.mic rosoft.com (Kevin Yu [MSFT]) wrote:
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."
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" <Ma**********@c ommunity.nospam > wrote in message
news:7u******** *************** *********@4ax.c om... 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 <Ma**********@c ommunity.nospam > wrote:
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-****@online.mic rosoft.com (Kevin Yu [MSFT]) wrote:
Hi Marc,
First of all, I would like to confirm my understanding of your issue.
Fromyour description, I understand that the text in the MessageBox is not showing properly on your dev box. If there is any misunderstandin g,
pleasefeel 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."
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"
<de*******@hotm ail.com> wrote: 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
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:ds****** @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."
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" <Ma**********@c ommunity.nospam > wrote in message
news:tm******** *************** *********@4ax.c om... 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 shown",MessageB oxButtons.OK,Me ssageBoxIcon.In formation);
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?
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: 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" <Ma**********@c ommunity.nospam > wrote in message news:tm******** *************** *********@4ax.c om... 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 shown",MessageB oxButtons.OK,Me ssageBoxIcon.In formation);
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Larry Pits |
last post by:
Hi All,
I just want to display a message using msgbox() and I keep on getting this
error message.
It is invalid to show a modal dialog or form when the application is not
running in UserInteractive mode. Specify the ServiceNotification or
DefaultDesktopOnly style to display a notification from a service
application.
|
by: Steve |
last post by:
Does anyone know of a way to open a messagebox over a popup form opened in
acDialog mode?
Thanks for any ideas!
Steve
|
by: Hans Kamp |
last post by:
How do I use an MsgBox in C#Builder?
The following code:
private void button1_Click(object sender, System.EventArgs e)
{
MsgBox("Blablabla");
}
causes the message (translated from Dutch):
|
by: Russ |
last post by:
I've been trying to figure out how to show a simple messagebox with an
OK button in my web client program (C#). I have looked at every
reference to JScript and MessageBox that seemed even remotely like it
could help, both in the VS help and in this NG. I found lots of
examples of people saying how easy it is and showing examples, and
examples in the help. But I have two problems:
1. All the examples show all the code in HTML, usually...
|
by: MadCrazyNewbie |
last post by:
Hey Group,
Sorry to be a pain again but i have the following code:
If MessageBox.Show("Are Your Sure You Want To Send This Email?", "Are Your
Sure You Want To Send This Email?", MessageBoxButtons.OKCancel) Then
Try
SmtpMail.SmtpServer = txtSMTP.Text
Dim Message As MailMessage
Message = New MailMessage()
| |
by: roberto |
last post by:
Hi at all
i have a web application (in vb.net), and i want to use a message box
control like System.Windows.Forms.MessageBox control, to show simple
messages . I used this but vb.net said
me an exception:
Imports System.Windows.Forms
'Dim msgBox As MessageBox
'msgBox.Show("User updating successful.", MessageBoxButtons.OK,
MessageBoxIcon.Information)
|
by: Richard |
last post by:
Hi,
Both does the same thing(atleast for me).
Which is preffered to use in vb.net and why.
RC
|
by: Prabhudhas Peter |
last post by:
Can Any one explain me what is the Difference between MsgBox and
MessageBox.Show... In VB6 i used MsgBox, So Can I Say "MessageBox.Show" is
the new version of MsgBoz which belongs to C# or VB
--
Peter...
|
by: Luis Alvarado |
last post by:
Hello everybody,
I am new programming in asp.net, recently I have been hired in a company
and they were creating a simple application, this application is developed
in asp.net 2 visual Studio 2005 and is tested in a Windows 2003 standard.
My problem is that when I check some buttons events, they are calling a
Msgbox function, I have read that that is incorrect, but I have tried to
change it for a java Script messagebox and even though I...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |