Tooltips are not displaying in Windows Forms example of CefSharp

335 views
Skip to first unread message

ken.fl...@datasplice.com

unread,
Jul 31, 2013, 2:30:47 PM7/31/13
to cefs...@googlegroups.com
Hello,
I am developing a Windows Forms application using CefSharp and don't get any tool tips displayed in the browser window.
Going back to the example apps I noticed that tool tips will display in the WPF example program, but not in the Windows Forms example.

I found a similar post about this in CEF itself 

I have tried to add an assembly manifest that lists Windows Common Controls as a dependency and can pinvoke InitCommonControlsEx which is returning true (success).  But that didn't seem to help.

Any ideas on what I can try next?
Thanks for you time
Ken




Sayani Halder

unread,
Mar 12, 2020, 8:12:23 AM3/12/20
to CefSharp

So in this case, we need to generate an app.manifest for the project. The way:

In Visual Studio 2010, 2012, 2013, 2015 and 2017 you can add the manifest file to your project. Right-click your project file on the Solution Explorerselect Add, then New item (or CTRL+SHIFT+A). There you can find Application Manifest File. The file name is app.manifest.

after app.manifest is generated uncomment this part:

 <dependency>
        <dependentAssembly>
          <assemblyIdentity
              type="win32"
              name="Microsoft.Windows.Common-Controls"
              version="6.0.0.0"
              processorArchitecture="*"
              publicKeyToken="6595b64144ccf1df"
              language="*"
            />
    </dependentAssembly>
  </dependency>

once done, build the project, you can see the HTML tooltips in your chromium embedded framework c# in a Winforms application.

I hope this solves your issue.

Reply all
Reply to author
Forward
0 new messages