Hi,
I created a child dialog to tell the user that there is a loading of
data from the database. When the loading is done, the child dialog will
close. The child dialog contains a custom control and the child dialog
with the custom control show up fine if the dialog is called as a modal
state
dlgLoading.Show Dialog();
However, the process will stop unless the dialog is closed. I tried
using the modeless state
dlgLoading = new LoadingUI(); // in the class constructor
dlgLoading.Show (); // in another method
When the loading data is done, this is called
dlgLoading.Hide ();
However the child dialog is not painted correctly. It is all black. I
can't see the custom control.
What call is missing. Any help is appreciated.
Thanks 3 3622
Should you use dlgLoading.Clos e() instead of dlgLoading.Hide ()?
chanmm
<Ab******@gmail .comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hi,
I created a child dialog to tell the user that there is a loading of
data from the database. When the loading is done, the child dialog will
close. The child dialog contains a custom control and the child dialog
with the custom control show up fine if the dialog is called as a modal
state
dlgLoading.Show Dialog();
However, the process will stop unless the dialog is closed. I tried
using the modeless state
dlgLoading = new LoadingUI(); // in the class constructor
dlgLoading.Show (); // in another method
When the loading data is done, this is called
dlgLoading.Hide ();
However the child dialog is not painted correctly. It is all black. I
can't see the custom control.
What call is missing. Any help is appreciated.
Thanks
Hi,
are you using .Net 1.1 or 2.0, are you utilizing threading in your
application?
Mark.
-- http://www.markdawson.org
"Ab******@gmail .com" wrote:
Hi,
I created a child dialog to tell the user that there is a loading of
data from the database. When the loading is done, the child dialog will
close. The child dialog contains a custom control and the child dialog
with the custom control show up fine if the dialog is called as a modal
state
dlgLoading.Show Dialog();
However, the process will stop unless the dialog is closed. I tried
using the modeless state
dlgLoading = new LoadingUI(); // in the class constructor
dlgLoading.Show (); // in another method
When the loading data is done, this is called
dlgLoading.Hide ();
However the child dialog is not painted correctly. It is all black. I
can't see the custom control.
What call is missing. Any help is appreciated.
Thanks
My first guess would be that while loading your data, the process never
returns to handle its events, so your parent form won't get the chance
to properly redraw itself or its children.
If you use a loop to load your data you could try calling
Application.DoE vents() on each iteration. Depending on how fast your
loop runs, this might already be enough to make the application seem
responsive to the user.
Otherwise you might consider moving your loading functionality into its
own thread, so it won't lock up your form. This would of course require
some way to assure that your application doesn't try to work with data
that is not yet loaded.
Sincerely,
Kevin Wienhold Ab******@gmail. com schrieb:
Hi,
I created a child dialog to tell the user that there is a loading of
data from the database. When the loading is done, the child dialog will
close. The child dialog contains a custom control and the child dialog
with the custom control show up fine if the dialog is called as a modal
state
dlgLoading.Show Dialog();
However, the process will stop unless the dialog is closed. I tried
using the modeless state
dlgLoading = new LoadingUI(); // in the class constructor
dlgLoading.Show (); // in another method
When the loading data is done, this is called
dlgLoading.Hide ();
However the child dialog is not painted correctly. It is all black. I
can't see the custom control.
What call is missing. Any help is appreciated.
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: vince |
last post by:
I have a windows app whose main dialog contains a button
that launches a form. I've tried using Form.Show() to
have it launch as a modeless form, but it behaves as if
it's modal (i.e. parent form can't receive focus)...
Can someone tell me what I need to do to make the child
form modeless..??? I want to be able to alternate focus
between both dialogs...
thanks,
|
by: Carmine |
last post by:
I'm currently writing a small program that churns on a repetitive task
while displaying a progress & cancel modeless dialog. I've been having
problems due to threadlocking, and I was wondering if anyone could
give me some advice.
Basically when I create the modeless dialog, I'm assuming that C#
under the covers will be implicitly creating a new thread for the
modeless dialog's message pump. Thus I protect the state determiners
with a...
|
by: Andrew |
last post by:
I get a Null Reference Exception if I close a modeless form (that is, a form
displayed using Show()) when a selection is made from a ComboxBox. If the
form is modal (displayed using ShowDialog()) or the selection is made from,
say, a ListBox, no exception is thrown.
I have included a simple example below. The error message refers to Unsafe
Native Methods, but the code is 100% managed. What is going on ?
I am using C#.NET 2003, Standard...
|
by: Gary Miller |
last post by:
Does anyone know how to detect a modeless form on closing by the form that
invoked the modeless form?
form.Show();
|
by: Legendary Pansy |
last post by:
Hello, I'm trying to accomplish the impossible by trying to do something equivalent of this example found here
http://www.c-sharpcorner.com/Code/2003/Dec/DialogTutorial.as
Starting with "Listing 2 - Changing the constructor of the modeless dialog to accept the parent object:" line and go onwards is what I'm trying to do
Basically, there is the main form, and then there's the modeless form. I want the modeless form act like a modal form,...
| |
by: proit_123 |
last post by:
I am working on a windows forms application and have the following
requirement.
· I need to display a modeless dialog from the main form.
o This allows user to continue to work with the application.
o For the sake of example, the user could launch the modeless dialog
from Form A and navigate to a Form B in the main window.
· When the modeless dialog is closed, I need to perform certain logic
in the main form based on the form that is...
|
by: proit_123 |
last post by:
I am working on a windows forms application and have the following
requirement.
I have two projects in my application Project A and Project B. And
Project A has the reference of Project B. I need to display a modeless
dialog from the main form which is in Project A and the modeless dialog
to be raised is in Project B. After closing the modeless dialog i need
to pass a value from modeless dialog to the main form of Project A and
also i...
|
by: Ralstoj |
last post by:
Hi
I am programing in Autocad with VB
Autodesk have not given users access to new note function in Autocad CIVIL3d API. I am trying to work round this by creating notes using the sendkey command in Vb. I can get the add note dialog box to come up ok but it does not have focus as I believe it is a modeless dialog box as it gets focus when you move the mouse cursor over it.
What I am after is a VB eample on how to send key strokes to the...
|
by: Sin Jeong-hun |
last post by:
I've found that if a MessageBox (called by alert/confirm from
Javascript) or a web page modeless dialog is popped up, I cannot call
Navigate of the WebBrowser control. If I do, a COM exception occures.
How can I disable javascript MessageBoxes or modeless dialogs? I
disabled normal popup windows by adding e.Cancel=true at the browsers
newwindow event. But I couldn't disable modeless dialog or javascript
MessageBox. I tried to remove some...
|
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...
|
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,...
| |
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...
|
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,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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...
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |