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 1374
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******@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.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.com> wrote in message
news:u5**************@TK2MSFTNGP14.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.machin AT dot.state.fl.us> wrote
in message news:OH**************@TK2MSFTNGP09.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...
|
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...
|
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.)...
|
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...
|
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...
| |
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 =...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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,...
|
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...
|
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.
| |