简体   繁体   中英

HTML Tooltip not showing in CEFsharp

I have a chromium embedded framework c# in a Winforms application that does not have Microsoft.Windows.Common-Controls. I don't have app.manifest too. when I open a webpage containing tooltips (HTML title attribute) using the chromium browser, these tooltips are not shown.

Is this a bug? Is it possible to see these tooltips?

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 Explorer , select 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 if anyone gets this issue, this can help them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM