It is being done in a background thread. I am not able to make the first form model because I am not doing a showdialog on the first form, I am doing it from my class that inherits form. So the model is really only on the thread. Lawrence
lgelliott
Posts
-
ShowDialog from seperate thread -
ShowDialog from seperate threadJudah, it doesn't have much controls but it's doing a webrequest POST which takes some time. I think I found a solution; the thread that starts the second form is being launched from a dummy class that inherits from Form. This allows the form to pop up; the only catch is I will have to do some manual work if I want to make it model. Lawrence
-
ShowDialog from seperate threadTried option 1 and the Main Form will not render the progress bar while it’s trying to load form 2. After form 2 is loaded then I see the progress bar update. I am now back to square 1. Any other ideas? Lawrence
-
ShowDialog from seperate threadThanks for all your help. I will try to force the updates on to the main form from the second form because I can't lazy initialize this time. Thanks again. Lawrence
-
ShowDialog from seperate threadInstance() returns static instance of the main form in my project.. Ok, I have a thread doing this work because I have a progress bar (marquee) on the main form that displays when potentially time consuming activities are happening. When I Show my new form it holds up the thread and I don’t see my progress bar being updated until after the form comes up. So I decided to kick off that work in its own thread so I can see my progress bar being updated. If you need anymore info please don’t hesitate to ask. Thanks, Lawrence
-
ShowDialog from seperate threadThanks for your response!! Ok, so I have moved my functionality to a thread instead of a background worker but I still get the error when I try to ShowDialog(Instance()) with-in my thread where the instance is the Main GUI. How do I invoke the whole form or Instance? By the way, I did set the SetApartmentState to STA. Lawrence.
-
ShowDialog from seperate threadAll, I have a main GUI that is a singleton and I am trying to use it in a Background Worker that performs a ShowDialog on a newly created form. The ShowDialog needs and IWin32Window to properly render the new form, how do I "safely" use the main form instance in the ShowDialog? I keep getting [InvalidOperationException] and I am not sure how to use delegates on the entire form rather than a control. Thanks, Lawrence :confused:
-
Security certificateHello, I embedded a C# applet in my ASP.Net webpage. The applet needs access to the clients resources to perform some tasks (save a file & listen to sound card for speech buffer). Is there anyway for me to allow the applet to run on the client machine without the user on the client’s end doing too much work. I guess I am looking for something like a security certificate or something along those lines. Thanks Lawrence
-
capture audio in Web AppDTrent, thanks for the response. I will give it a shot.
-
capture audio in Web AppI am extremely new to the ASP.NET arena and I am trying to write a web app that allows the user to capture audio from the client machines microphone. I wrote the code that captures the audio and now I am trying to incorporate it into my ASP.NET app. The issue I am having is trying to find a way to run the server code (to capture audio) on the local machine without being too invasive or without fully downloading an .exe on the client machine. Is this possible? Lawrence.
-
Microphone Audio Capture DirectxHi all, I am trying to capture sound from the microphone and send it over the network as a PDU to an ASTi radio. I can capture the sound once and when I send it over the network it sounds horrible. I think the problem could be because I am capturing the audio as a wave formatted audio. Is there anyway to capture audio from a microphone using say ULaw encoding or some raw buffer like that? Thanks