Resize Iframe based on loaded page.

5 replies. Last post: May 12, 2016 9:40 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I have a WebDesktop project and I am trying to figure out how to programmatically set the size of the Ifram that loads the aspx page.

I want to change the wnd.resize to something that will look at the size of the page it is loading and resize the iframe to that size

Her is my code to create and load the window:

       if (wnd == null && shortcut.Name == "ClaimSearch") {

            wnd = new WebDesktopWindow();

            wnd.Text = "Claim Search";

            wnd.Name = "wndClaimSearch";

            wnd.TaskBarImage = "is_webdesktop-16.gif";

            wnd.ControlBoxImage = "is_webdesktop-16.gif";

            wnd.ContentURL = "ClaimSearch.aspx";

            wnd.ContentMode = "UseIFrame";

            wnd.AllowMinimize = "Yes";

            wnd.AllowMaximize = "No";

            dm.Windows.Add(wnd);

            wnd.ResizeTo(830, 840);

            wnd.Show();

            wnd.MoveToCenterDesktop();

        }


Thanks.

All times are GMT -5. The time now is 8:29 PM.
Previous Next