When I try to Messagebox.Show () a string that is 197680 or more chars long,
my call is simply ignored, no error is thrown, the call is simply ignored.
197679 chars or shorter is shown correctly. Is it a XP or dotNet bug?
Kind Regards,
Allan Ebdrup 4 1379
Hi,
Upon a string class lenght is set to UInt32, actually is not real, it has a
much limited number, I found a very interesting page about strings. http://www.codeproject.com/dotnet/strings.asp
Anyway, back to your case, it seems that the message box has a limit on the
amount of data that can show, this seems to be normal, otherwise imaging a
hugh message box with 2Mb of string data!
Best regards
Salva
"Allan Ebdrup" wrote: When I try to Messagebox.Show () a string that is 197680 or more chars long, my call is simply ignored, no error is thrown, the call is simply ignored. 197679 chars or shorter is shown correctly. Is it a XP or dotNet bug? Kind Regards, Allan Ebdrup
"Salvador" <Sa******@discu ssions.microsof t.com> wrote in message
news:80******** *************** ***********@mic rosoft.com... Hi,
Upon a string class lenght is set to UInt32, actually is not real, it has a much limited number, I found a very interesting page about strings.
http://www.codeproject.com/dotnet/strings.asp
Anyway, back to your case, it seems that the message box has a limit on the amount of data that can show, this seems to be normal, otherwise imaging a hugh message box with 2Mb of string data!
Well it shouldn't just ignore the call, it could show only a substring or
throw an error. Just ignoring the call must be a bug.
Kind Regards,
Allan Ebdrup
Hi,
I guess it should be a winapi error, in any case that huge amount of text
is not practical to show in a messagebox dialog, I even can bet you that
they do not fit in the screen
Why you need to show that many characters in the first place?
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Allan Ebdrup" <co****@ofir.co m> wrote in message
news:u5******** ******@TK2MSFTN GP14.phx.gbl... When I try to Messagebox.Show () a string that is 197680 or more chars long, my call is simply ignored, no error is thrown, the call is simply ignored. 197679 chars or shorter is shown correctly. Is it a XP or dotNet bug? Kind Regards, Allan Ebdrup
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:OH******** ******@TK2MSFTN GP09.phx.gbl... I guess it should be a winapi error, in any case that huge amount of text is not practical to show in a messagebox dialog, I even can bet you that they do not fit in the screen
Why you need to show that many characters in the first place? cheers,
I simply wanted to show some XML that a methodcall returned, and all of a
sudden the messagebox didn't appear, but the code was running without
errors, naturally I was confused so I examined the problem and found what I
wrote in my original mail.
I would expect an error to be thrown in case of some kind of overflow.
Kind Regards,
Allan Ebdrup This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Drew Lettington |
last post by:
I'm making a simple call to display error messages in a
MessageBox from a Windows form and the MessageBox is not
behaving in a modal fashion. My modal form displays, the
user clicks a button and error handling code calls
MessageBox.Show. The user is then allowed to click the
button on my form again before clicking OK on the
MessageBox.
...
|
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 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...
|
by: Dennis C. Drumm |
last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am
building a custom MessageBox dialog that has, among other things, a few new
button options (yes to all, no to all, etc.) and would like to make the
dialog look and act like the standard MessageBox. Therefore, I would like to
put in the message section the same type of...
|
by: Saso Zagoranski |
last post by:
Hi!
I'm trying to make my own MessageBox... What I would like to know is, how
the MessageBox class is implemented?
I could have something like:
new MyMessageBox().ShowDialog();
but I would like the solution used by MessageBox, where you call the static
Show() method, which
returns a DialogResult value...
|
by: Tressa |
last post by:
I have a messagebox that I only want to pop up only if it is not already
being displayed on the screen.
My code is still poping up the messagebox even though it is on the screen.
What am I doing wrong here. Any suggestions on how to fix this
using System;
using System.Collections;
using System.ComponentModel;
| |
by: Robert Heuvel |
last post by:
Hi,
this is what I did:
public struct SWaitCursor:IDisposable {
public SWaitCursor (int i) {
Cursor.Current = Cursors.WaitCursor;
}
void System.IDisposable.Dispose() {
Cursor.Current = Cursors.Default;
|
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 works just
fine.
If I put the call in the .cpp file, I get the following two errors:
error C2653: 'MessageBoxA': is not a class or namespace...
|
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...
|
by: Nuno Magalhaes |
last post by:
Why does the MessageBox.Show function in the thread below changes the
program behaviour, in other words, the APListView becomes filled with
values with a call to RefreshAPListView. Without the MessageBox.Show
function, in my laptop, the code doesn't get past the inner loop where
there is a Thread.Sleep(10).
Here is the code. Does anyone...
|
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...
|
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...
| |
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. ...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |