C#-GUI doesn't refresh even though using delegate the invoke on Main

M

Microsoft

I am having a problem where the gui is not refreshing. I have an ActiveX
control that displays output from a ccd camera on the main gui. The control
is embedded in a usercontrol. The usercontrol has a public method that will
allow a reference it itself to be passed back so that other classes can
invoke methods and change properties on the AX control. This is important,
since other classes may be responsible for doing things like adjusting
shutter speed in response to changes in lighting levels, etc. SO...the main
symptom is that if I create a button on the same user control as the AX
control (main thread), then everything works fine. If I do the exact same
thing by calling a public method on the AX's usercontrol, the gui does not
update at all. I have used beginInvoke(), Invoke() using delegates, and
neither seems to work. I verified that these calls were occuring on the
main thread using thread debug window. Help?
 
T

TC

And this would be what to do with programming forms in Microsoft Access, the
database product; the subject of this newsgroup?

TC
 
A

Alick [MSFT]

Hi,

I am afraid you have posted the questions to the wrong newsgroup; it seems
you ask questions about using Active X control in C# (VS.Net), it is better
if you can post the questions to vs.net newsgroup
Microsoft.public.dotnet.*, such as
Microsoft.public.dotnet.languages.csharp; peoples here focus on Microsoft
Access products.

Please feel free to reply to the threads if you have any questions or
concerns.


Sincerely,

Alick Ye, MCSD
Product Support Services
Microsoft Corporation
Get Secure! - <www.microsoft.com/security>

This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
| From: "Microsoft" <[email protected]>
| Subject: C#-GUI doesn't refresh even though using delegate the invoke on
Main
|
| I am having a problem where the gui is not refreshing. I have an ActiveX
| control that displays output from a ccd camera on the main gui. The
control
| is embedded in a usercontrol. The usercontrol has a public method that
will
| allow a reference it itself to be passed back so that other classes can
| invoke methods and change properties on the AX control. This is
important,
| since other classes may be responsible for doing things like adjusting
| shutter speed in response to changes in lighting levels, etc. SO...the
main
| symptom is that if I create a button on the same user control as the AX
| control (main thread), then everything works fine. If I do the exact same
| thing by calling a public method on the AX's usercontrol, the gui does not
| update at all. I have used beginInvoke(), Invoke() using delegates, and
| neither seems to work. I verified that these calls were occuring on the
| main thread using thread debug window. Help?
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top