Using Embedded Fonts for ComboBox and TextBox in Visual Basic - vb.net

This question helped me learn how to embed fonts in my VB 2010 application -> How to embed fonts for Use in a Visual Basic Project?
There is no UseCompatibleTextRendering property, however, for a ComboBox or a TextBox.
Is it possible to use an embedded font for a ComboBox or a TextBox?

While I was not able to use Fonts embedded as resources for a ComboBox and a TextBox, I was able to use fonts installed in the same directory as my application.
When I added the fonts (installed in the directory of my application by the installer) using this code, the UseCompatibleTextRendering property did not seem to matter:
If _pfc Is Nothing Then
_pfc = New PrivateFontCollection
End If
For Each fontfile As String In System.IO.Directory.GetFiles(filepath & "\Fonts", "*.ttf")
_pfc.AddFontFile(fontfile)
Next fontfile

Related

VB.NET - Adding a custom font and selecting from properties

Does anyone know how I can add a new custom font into visual studio and then be able to select it from the properties menu?
Example I add Poppins font, install into OS. I want to be able to edit a labels font to that new font in the properties screen. I do not want to do it programmably.
Thanks

How to set html like syntax highlight for .tag (Riot.js) file and add icon for .tag file extension in vscode

How can I add the syntax highlight of a .tag(RIOT.JS) extension to use HTML syntax highlight mechanism and I would also like add an Icon for the .tag file extension in VisualStudioCode.
Thanks in advance
You can either download existing icon themes from the Visual Studio Code Marketplace or you can build your own icon theme. The extension vscode-icons exposes an api which allows you to add custom icons.
I think visual studio code itself does not support adding a custom icon for a file extension by providing a path in the settings.json so far.

vb.net vs2010 project deployment problem: eula.rtf is not displayed during application deployment. Any ideas?

I've created a setup and deployment project for my vb.net application using the Visual Studio 2010 wizard. I also added the eula.rtf file to the setup project and set it to install to the user's application folder. I then added a license agreement UI dialog in the setup project and pointed the licenseFile to eula.rtf. However, when testing the resulting setup.msi, the UI License Agreement dialog appears but no text is displayed inside the box where the eula should appear. I tried re-naming the eula and tried to change the encoding of the file but without success. Am I missing something? What should I do to make it work?
Many thanks.
Did you actually create a .rtf in the proper format or did you just rename a text file? You'll need either Wordpad or Microsoft Word to create one. Wordpad is the better choice, it is likelier to create RTF in a format that the rich text box fully supports.

control to display docx (word files) and xls (excel files ) inside vb.net form

which are the control used to display word files and excel sheets inside vb.net forms ?
(i have already added reference lib.)
Platform: Vb.net (framework : 3.5)
language : visual basic
You should be able to display word and excel files in Visual Basic using Microsoft's WebBrowser control. You can find more information and example code here:
http://support.microsoft.com/kb/243058
Jeff

VB.NET localization

In my winform app in VB.NET I want to use the localization option.
But i have a few questions/problems.
I'm using a menu strip to select an other language.
But it seems that is doesn't change my menustip text to my selected language. It does change my labels, buttons, and textboxes but menu strips don't seem to change when I choose another language.
Also is it possible to get those resx files such as MyForm.fr-FR.resx compiled so it isn't an external file outside my app? Or to get those files in an Language folder at the same location of my app, so i don't have all those fr-FR & nl-Nl folders in the same location as my program?
http://www.vb-helper.com/howto_net_localize_at_runtime.html
Got it solved with this example.