Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No one knows why msgbox doesn't work?

Status
Not open for further replies.

jinglin

MIS
May 4, 2004
72
0
0
US
Every computer in our computer encounters this problem, when we want to show a message box to the users. We’d write a line like this:
Messagebox.show (“User name has to be entered.”)
All we got is a blank message box without anything on it.

Besides, the combobox and listbox won’t show any list items even though we write something in their items property.

Can anyone help us out?? Thanks!
 
I can't see any problem here at messagebox.show("..."). It works fine even writing: msgbox("..."). Try this in bold instead.

As for the items added by default (not in runtime) Do these:

1. expand the Region " Windows Form Designer generated code "
2. Goto find this: Me.ListBox1.Items.AddRange(New Object() {"item1", "item2", "item3", ....etc})

This should exist in the region.


Quite strange these you both are talking about.
Hope helped a little

 
If you are running McAffee antivirus, go download the patch.
There is a known problem w/ the current unpatched version that messes up messageboxes and other .Net controls causing the text to not display.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Yep Rick's right! Had forgotten this issue
 
It just won't work no matter how I tried.
I think Rick is right. Our company does use McAffee antivirus for our computer.

Thank you all for your help

Jinglin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top