473,473 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

messagebox, showdialog and threads error

3 New Member
Hi,

I'm having a weird problem.
I use a thread to generate a lot of data in c#, and at the end of the thread I sould have a messagebox that show. If I execute the code two time, everything work great, but if I execute it a third time, the messagebox doesn't appeir.

I check in the debug and the line is executed but nothing is show.

Then I try to change the messagebox to a custom form with a showdialog. The two first time, everything work fine, exept that showdialog is executed like a simple show. But the third time, the debug stop at the line where I create the form (frmTest t = new frmTest();) and make a infinit loop at t.showDialog(); without never giving error...

I try a lot of stuff like abord the thread at the last line of the thread, or use a delegate, and nothing work...

By the way, sorry for my english.
Jul 10 '08 #1
0 1126

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Harry_Crow | last post by:
Hi all, I want to create a customized MessageBox. In .net the MessageBox class will wrap the SDK MessageBox. And it has a private constructor. So surely I cant derive from the MessageBox class....
8
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...
2
by: Cantekin Guneser | last post by:
in my program when a button clicked , a process starts, but i need to take two value, becouse of this, i use a new windows form, to make my program more userfriendly, i was thinking is it possible...
2
by: Du Dang | last post by:
I want to simulate the behavior of the messagebox; I show the messagebox, and when it finished it return to where I called the "MessageBox.Show()" Form A: showFormB(){ Show form B // when...
1
by: NanoWizard | last post by:
Enclosed below is a class that contains one member item called _frm. It is just a standard System.Windows.Forms.Form class defined elsewhere (just disregard the definition of the object). My...
2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! Is it possible to modify the text in the MessageBox class? There are a couple of buttons with a standard text. What i want is to set a text of my own. I have inherited the class, but...
4
by: Bry | last post by:
Is it possible to produce a Windows Dialog form that can be used like MessageBox.ShowDialog(), but returns a custom object type e.g. myObject = MyForm.ShowDialog(); rather than // This...
2
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...
14
by: shark | last post by:
Hi, Does Form.ShowDialog() start new thread ? If yes how is solved cross-thread operations? Thx
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
1
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...
0
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...
0
agi2029
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.