473,796 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

strange behavior in .Net/C# ??

Hi,
I just noticed that while trying to run this code :

MessageBox.Show ("Hello");

the message box pops up but shows no string/message in it. (expecting the
"Hello" string). Even the "OK" string in the button itself in dialog box
doesn't show.

I tried to write "Hello" string in the caption/text of the button or the
form text itslef

this.text = "hello"

but nothing changes.

I ran it from "outsite" (not from MS Studio IDE) and it does the same thing.
I unistalled and installed the .Net 1.1 Framework but the problem appears
and disappears randomly.......

It may be others thing they may not work properly, I just can't notice all
of them but this was obvious.

Any idea ?
Nov 16 '05
18 1620
Just MessageBox.Show ("Hello"); will work. It does not require any
additional parameters.

If there is no virus etc., check by reinstalling the framework.

with regards,
J.V.Ravichandra n
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandra n+J.V.&cob=aspn etpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID= P3966388&BN=999 &PN=2
- Or, just search on "J.V.Ravichandr an"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #11
genc ymeri wrote:
hmmmm fair question but no, I haven't. Also now randomly,
(specially when I change the focus from onether app to my sample app)
the text sometimes shows up ,,,,,,)

thnx


If you use a long text in your messagebox, is the box wider?
(or to put it in different words: is it trying to display an empty string or
an invisible string?)

Hans Kesting
Nov 16 '05 #12
Hi, well don't be alone with your pain...I've the same strange
behavior...

And I've all the os patchs and updates...nothi ng works!.

The most strange is that the rest of the environment work well...

Somebody help us...please!.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #13
Hi...me again!.

I find the solution...Desi nstall the McAffe Enterprise 8...
go back to the 7.1 version.

The files instaled by the Mc 8, corrupt some common dlls...

I did it and works OK!.

Damian.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #14
Oh man,,,,

Thank you very much for figuring out that MC Afee causes the problems. I
asked my company a brand new PC and they gave it to me. No more than 2-3
days ago the problems started to appear again. I really had no
explanation, neither the force to complain again about it.

What I did I installed the latest updates of .Net framework and the
problem seemed to appear somehow less than usually, but once it started
I had to reboot my PC.

Once again, thanks a lot for sharing your experience.

Ghenz
Software Engineer
QuadraMed Corp.
Reston.VA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #15
Jim
Tks a lot. I Just try to repair VS.NET 2003 and didnt work. So I came
here and see the answer and Yes i have updated McAfee from 7 to 8 too.

Tks a lot.

Jim

Damian Fernandez <df********@ane ctis.com.ar> wrote in message news:<O1******* *******@TK2MSFT NGP14.phx.gbl>. ..
Hi...me again!.

I find the solution...Desi nstall the McAffe Enterprise 8...
go back to the 7.1 version.

The files instaled by the Mc 8, corrupt some common dlls...

I did it and works OK!.

Damian.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #16
I ran into the same problem. At the start of the program, all
messageboxes were empty, but at some point they started showing just
fine. Doing a little debug, I noticed that just after the following
lines the problem disappeared:

ManagementClass Network = new
ManagementClass ("Win32_Network AdapterConfigur ation");
ManagementObjec tCollection Interfaces = Network.GetInst ances();
// You must add a reference to System.Managmen t in order to make this
work
// It might work as well with any other kind of management class

So I just put these lines at the start of the application, and
everything works fine. By the way, does this make any sense to anybody?
If someone knows why, please let me know.

Uninstaling McAfee seems to solves the problem, but those that use your
program might not know or want to uninstal McAfee.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #17


Software Engineer
QuadraMed Corp.
Reston.VA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #18
You are right about that, some user might don’t want to uninstall the
McAfee, that’s why I report the incident to Microsoft and McAfee
DevTeam. Boot compromise to resolve the problem right away.

Regards,

Damian.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #19

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

Similar topics

2
3462
by: Marcus | last post by:
Hello, I recently converted all my existing MyISAM tables to InnoDB tables through phpmyadmin. I noticed some strange behavior whenever I would refresh the screen, as phpmyadmin would report different numbers for the cardinality of the primary key (i.e. one minute it would say cardinality 388, then 244 on refresh, then something else), and it would report different values for the number of rows when mousing over the table names on the...
36
3460
by: Dmitriy Iassenev | last post by:
hi, I found an interesting thing in operator behaviour in C++ : int i=1; printf("%d",i++ + i++); I think the value of the expression "i++ + i++" _must_ be 3, but all the compilers I tested print 2.
0
1709
by: thulsey | last post by:
Hi all, I've got some strange behavior happening in Firefox and Safari (Khtml and Gecko) that displays *almost* fine in IE6.0 (still trying to get pixels to line up, anal anal anal...) To speed things up, and to avoid any problems with looking through the css file, I'll say first that I based the navigation menu on the "Suckerfish Dropdown menu" online demo over at htmldog. (http://www.htmldog.com/articles/suckerfish/dropdowns/). In...
1
1508
by: Alexander Inochkin | last post by:
Hi! I found same strange behavior of ASP.NET. It is possible this is the bug. Follow the steps:
0
3574
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage requests database, and query execution time exceeds 30 seconds, the following error reported: ===
6
2276
by: Joseph Geretz | last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to the same method (aka delegate?). I use the Tag property within this method to determine what user action is taking place. Very simple: When adding toolbar button: tbButton.Click += new...
3
1518
by: sara | last post by:
Very strange behavior, but I suspect some is A2K and some might be for me to correct. Just trying to see if anyone can help and advise. We have a database that's been running for a few years with no problems. We continuously add queries and reports. We're up to about 700 queries (no, not all are used and most are parameter queries - the business asks a LOT of questions!), and under 250 reports and fewer than 15 forms. Data is...
1
2978
by: Nicholas Palmer | last post by:
Hi all, Got a question about the AspCompat=true page property. First a little background. We have an ASP.NET app that uses two COM components. The first is the Microsoft OWC 11 components and the second is a custom VB6 COM component. So I was reading about AspCompat=true and it seemed like it would be a good fit for our app. From what I can tell both of the COM components that we are using are STA and we are creating the components in...
19
1759
by: david | last post by:
I took old code and decided to modify it a bit, and I just noticed that it does not compile at all and before server one of severs (main) crashed in the system it was working fine (I am really sure that I remember that). Now I am getting this error: $ make g++ -Wall -ansi -pedantic -c pirma_lib.cpp g++ -Wall -ansi -pedantic -c pirma.cpp In file included from pirma.cpp:2:
20
2245
by: Pilcrow | last post by:
This behavior seems very strange to me, but I imagine that someone will be able to 'explain' it in terms of the famous C standard. -------------------- code ----------------------------------- #include <stdio.h> int main (void) { char xx="abcd"; char * p1 = xx;
0
9529
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
10457
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
10231
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
10176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10013
tracyyun
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...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
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.