473,748 Members | 10,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What have I done?

My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word "text"
is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the items
in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl
Nov 21 '05 #1
8 1940
Ron,

In your situation I would start with trying naming the messagebox
System.Windows. Forms.Messagebo x.show(....)

To be shure you have the right messagebox

Cor
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word "text" is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the items in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Nov 21 '05 #2
VJ
Did you recently change from Win2000 to XP or that is the first time you are
running the project on XP?... if so try changing your Control's ForeColor to
see difference. I have had this problem from moving from Win2k to XP

VJ

"Ron Dahl" <rd***@ghp.co m> wrote in message
news:eN******** ******@TK2MSFTN GP15.phx.gbl...
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word "text" is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the items in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl

Nov 21 '05 #3
I tried your suggestion, but putting the full path didn't make any
difference.
Thanks, Ron
"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Ron,

In your situation I would start with trying naming the messagebox
System.Windows. Forms.Messagebo x.show(....)

To be shure you have the right messagebox

Cor
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word

"text"
is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the

items
in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.


Nov 21 '05 #4
Changing the forecolor of the button that calls the messagebox didn't make
any difference. About two weeks ago I upgraded to SP2 of Windows XP, but
I've been using Windows XP for quite awhile. It seems like if it were a SP2
problem, it would have showed up before now.

I had also downloaded Visual Basic 2005 Express Edition Beta about two weeks
ago. I can convert a project to 2005 Express Edition and they work fine. I
can also create a new project in 2005 Express Edition and it works fine.
Also seems to work fine in Excel VBA. It's just Visual Studio that is
messed up.

I guess I'll look for the Visual Studio disk tomorrow and try to reinstall
the product.

I really don't want to move my projects to 2005 Express Edition Beta, (since
it's still a Beta) but if a new install of Visual Studio doesn't work, I may
have to.

Ron

"VJ" <vi********@yah oo.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Did you recently change from Win2000 to XP or that is the first time you
are
running the project on XP?... if so try changing your Control's ForeColor
to
see difference. I have had this problem from moving from Win2k to XP

VJ

"Ron Dahl" <rd***@ghp.co m> wrote in message
news:eN******** ******@TK2MSFTN GP15.phx.gbl...
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word

"text"
is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the

items
in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl


Nov 21 '05 #5
Have you tried changing stuff in the Display Properties->Appearance tab in
your control panel?

Rgds,
Anand
http://www.dotnetindia.com

"Ron Dahl" wrote:
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word "text"
is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the items
in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl

Nov 21 '05 #6
I think you're on the right track.

The words "text", "OK", and "Cancel" are visible if I use Default
DesktopOnly or ServiceNotifica tion as in:

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.DefaultDeskt opOnly)

Or

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.ServiceNotif ication)

The words "text", "OK", and "Cancel" are visible are not visible if I use
RightAlign or RtlReading as in:

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.RightAlign)

Or

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.RtlReading)

Could you explain further how I should change stuff in Display
Properties->Appearance tab in my control panel? I'm not sure exactly how to
get to these properties.

I'll keep looking but more help would sure be appreciated.

Thanks, Ron


"Anand[MVP]" <An******@discu ssions.microsof t.com> wrote in message
news:28******** *************** ***********@mic rosoft.com...
Have you tried changing stuff in the Display Properties->Appearance tab in
your control panel?

Rgds,
Anand
http://www.dotnetindia.com

"Ron Dahl" wrote:
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word
"text"
is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the
items
in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl

Nov 21 '05 #7
Well I dont have SP2 on my machine and am not sure if that has changed
something. But you can always set the default theme and hope it resets
everything back to normal.

Rgds,
Anand
http://www.dotnetindia.com

"Ron Dahl" wrote:
I think you're on the right track.

The words "text", "OK", and "Cancel" are visible if I use Default
DesktopOnly or ServiceNotifica tion as in:

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.DefaultDeskt opOnly)

Or

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.ServiceNotif ication)

The words "text", "OK", and "Cancel" are visible are not visible if I use
RightAlign or RtlReading as in:

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.RightAlign)

Or

MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel,
MessageBoxIcon. Exclamation, MessageBoxDefau ltButton.Button 1,
MessageBoxOptio ns.RtlReading)

Could you explain further how I should change stuff in Display
Properties->Appearance tab in my control panel? I'm not sure exactly how to
get to these properties.

I'll keep looking but more help would sure be appreciated.

Thanks, Ron


"Anand[MVP]" <An******@discu ssions.microsof t.com> wrote in message
news:28******** *************** ***********@mic rosoft.com...
Have you tried changing stuff in the Display Properties->Appearance tab in
your control panel?

Rgds,
Anand
http://www.dotnetindia.com

"Ron Dahl" wrote:
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word
"text"
is not visible and the words "OK" and "Cancel" are also not visible. The
buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the
items
in a listbox. I can add three items to a listbox, scroll up and down and
see that the three items are there, but they are invisible. I have tried
changing backcolor, forecolor and font, but the text is still invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl


Nov 21 '05 #8
For anyone following this thread, it was McAfee Version 8 that caused the
problem. I went back to Version 7, and now everything is working as before.
I believe our IT Department reported it to McAfee, so I assume they'll issue
a patch soon.
Ron Dahl
"Ron Dahl" <rd***@ghp.co m> wrote in message
news:eN******** ******@TK2MSFTN GP15.phx.gbl...
My visual studio has been working fine for vb.net for months.
Now when I add a button with the following code:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
MessageBox.Show ("text", "caption", MessageBoxButto ns.OKCancel)
End Sub

The word "caption" appears at the top of the messagebox, but the word
"text" is not visible and the words "OK" and "Cancel" are also not
visible. The buttons are there, but I can't see the words.

I first noticed the problem because I now can no longer see any of the
items in a listbox. I can add three items to a listbox, scroll up and
down and see that the three items are there, but they are invisible. I
have tried changing backcolor, forecolor and font, but the text is still
invisible.

I also can't view the text in a listbox I created months ago in previous
vb.net projects.

Where should I start looking to solve this?

Thanks in advance for any help.
Ron Dahl

Nov 21 '05 #9

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

Similar topics

92
6509
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption? cheers, reed
125
14807
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
145
8842
by: Mark Johnson | last post by:
Oddly enough, I found it difficult, using Google, to find a list of best-of sites based on the quality of their css packages. So I'd ask. Does anyone know of particularly good sites which are in good measure because of their creative and useful css designs? I'm aware of Zen Garden and a few others. So don't bother with those. And I hope I don't get replies from people with a 'tin ear' and no design sense. Good sites. Good pages. That's...
5
2254
by: Jerzy Karczmarczuk | last post by:
I thought that the following sequence gl=0 def gen(x): global gl gl=x yield x s=gen(1)
121
10130
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
27
7794
by: Servé Lau | last post by:
in what fields of computing is C used the most nowadays? embedded, scientific, applications? What?
34
2812
by: Ross Reyes | last post by:
HI - Sorry for maybe a too simple a question but I googled and also checked my reference O'Reilly Learning Python book and I did not find a satisfactory answer. When I use readlines, what happens if the number of lines is huge? I have a very big file (4GB) I want to read in, but I'm sure there must be some limitation to readlines and I'd like to know how it is handled by python. I am using it like this:
669
26101
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Languageâ€, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
53
3185
by: jaso | last post by:
Can you give any comments on this code? I used one goto, is it bad? #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <assert.h> #define NOT_NULL 1
3
2256
dfound
by: dfound | last post by:
#include<windows.h> #include<dos.h> #include<dir.h> #include<fstream.h> #include<stdio.h> #include<process.h> #include"resource.h" //resource header file
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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,...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
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...
1
6796
isladogs
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...
0
4602
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...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
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
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.