[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

calling methods (which appears to execute ok) -- is not updating display

Posted on 2008-10-06
3
Medium Priority
?
143 Views
Last Modified: 2013-12-17
calling methods (which appears to execute ok) -- is not updating display

Form #1 (which opened Form #2)

public bool SetWebPane(string webURL)
        {
            try
            {
                webBrowserIncompleteDIPs.Navigate(webURL);
                documentPane_IncompleteDIPs.Activate();

                radLabel1.Text = "I should be working OK !";
                return true;
            }
            catch (COMException ex)
            {
                showError(ex);
                return false;
            }
        }

____________________

Form #2

private void radButton1_Click(object sender, EventArgs e)
        {
            FormCentral openForm = new FormCentral();
            openForm.SetWebPane("http://www.123.com");
        }  

problem is that Form #1 does not appear to be updating the screen with visual upates / or processing any of the methods commands such as navigate etc. -- yet in debug I can see the url value being passed across the 2 winforms ok and those lines of code being called ... but nothing on-screen (winform #1) is updating.

what could this? and how fixable?
0
Comment
Question by:amillyard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22658058
try to spawn a thread for updating UI..
0
 

Author Comment

by:amillyard
ID: 22674288
SameerJagdale:  apologies -- could you explain a little further, an example to assist my understanding if possible?
0
 
LVL 13

Accepted Solution

by:
SameerJagdale earned 1500 total points
ID: 22677703
well, I initially thought of it but don't think it will work !
the reason is you are trying to update controls on another form from one form. The best would be pass the object of Form1 to Form2 in contructor and then try calling the methods on this object.
Further, WebBrowser may have issue since, it is an wrapper to a com component..
let me know if i can help you with more...
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question