You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See answers below. If you tell me what you need to do I may be able to give more accurate answers.
The HtmlPanel is sized as any other panel. The html is sized depending on the content in order to be able to scroll the overflow. I tried the follow code and it works well. However, you cannot fill the part below the task bar by design, since the workspace is on top of the taskbar, otherwise windows would maximize below. The Desktop already has a Wallpaper property to change the wallpaper, which is also themeable, and it has an extension with source code able to pull in images from Bing.
Application.Desktop.Controls.Add(new HtmlPanel()
{
Dock = DockStyle.Fill,
Html = "<div style='background-color:yellow'>Hello</div>",
BackColor = Color.White
});
There is a whole object model and large methods to use. The code you posted is trying to alter an html element, not a javascript control. When you use Call() or Eval() the JavaScript code is executed in context so you can do Call("hide") or Eval("this.hide()"). However, there is no reason to do that since the control already has Hide() and Show() and if you call the methods on the client, Wisej will update the server back.
Activity
itg-assistant commentedon Jun 12, 2026
Luca answered 2016-11-08 19:44:36 UTC
Hi Michael,
See answers below. If you tell me what you need to do I may be able to give more accurate answers.
There is a whole object model and large methods to use. The code you posted is trying to alter an html element, not a javascript control. When you use Call() or Eval() the JavaScript code is executed in context so you can do Call("hide") or Eval("this.hide()"). However, there is no reason to do that since the control already has Hide() and Show() and if you call the methods on the client, Wisej will update the server back.
Best,
Luca