I want to be able to open a web link within a LightSwitch screen...but how?


All replies

  • Hi Mark,

    There's some VB code which shows how to use the Webbrowser control in an OOB app.


    • Marked as answer by MarkA Howell Monday, August 29, 2011 2:41 AM
    Sunday, August 28, 2011 10:17 PM
  • Hi Tim,

    Thanks for the link.

    I tried to follow your clear step-by-step instructions, but when I got to step 2. I was unable to

    Change the control from a TextBox into a Custom Control. On the properties pane, click the ‘change’ hyperlink and select ‘System.Windows.Controls.WebBrowser’ 

    because System.Windows.Controls.WebBrowser doesn't exist on my system.

    Bummer!  another roadblock



    Sunday, August 28, 2011 11:09 PM
  • May not be looking on right node. Top node after opening Change...


    However as a personal preference I would not do it. It never feels right in apps like VS or QB.  I would rather have the open browser with normal forward/back, etc.  Unless it is just a fixed page with no other links.
    • Marked as answer by MarkA Howell Monday, August 29, 2011 1:27 AM
    Monday, August 29, 2011 12:53 AM
  • Thanks William,

    I did find the control right where you suggested.

    I have not been able to get Tim's code to open any page however so I'm setting aside for now and chalking it up as something else that LightSwitch can't reasonably do.


    Monday, August 29, 2011 1:27 AM
  • It seems to work fine here using Tim's code.  I did it for this thread to see where you may be stuck.  Make sure control is Stretched both ways, so you can see it. 
    Monday, August 29, 2011 1:48 AM
  • I worked with it a bit more and got it working.

    Thanks William for your help and thank you Tim for your code.

    Monday, August 29, 2011 2:40 AM