Click here to Skip to main content
15,847,902 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan1-Dec-23 23:18
mveRichard MacCutchan1-Dec-23 23:18 
GeneralRe: How to "update" old .NET code to current versions Pin
Andre Oosthuizen1-Dec-23 23:59
mveAndre Oosthuizen1-Dec-23 23:59 
GeneralRe: How to "update" old .NET code to current versions Pin
Dave Kreskowiak1-Dec-23 6:18
mveDave Kreskowiak1-Dec-23 6:18 
GeneralRe: How to "update" old .NET code to current versions Pin
jschell1-Dec-23 7:09
jschell1-Dec-23 7:09 
GeneralRe: How to "update" old .NET code to current versions Pin
Gerry Schmitz1-Dec-23 7:57
mveGerry Schmitz1-Dec-23 7:57 
AnswerRe: How to "update" old .NET code to current versions Pin
jschell1-Dec-23 7:23
jschell1-Dec-23 7:23 
GeneralRe: How to "update" old .NET code to current versions Pin
lewist572-Dec-23 4:27
lewist572-Dec-23 4:27 
QuestionWorking with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx24-Oct-23 12:34
professionaljkirkerx24-Oct-23 12:34 
I wrote an app in Win Forms, and I'm using a circle in ListView, as a pleasant indicator. On my rigs, running Win 10 at home and 11 at the office, the ⬤ char works no problem. But on the customers computers running Win 7, I get the tall square symbol.

So I changed the Font in my Win Forms App to Segoe UI, which looks nice, but I still get the tall rectangle. I checked the customers computers to see what fonts are loaded, and Segoe UI is there.

Then I did research, and a few online posts talk about font searching by the OS, which dates back to Windows XP. If the Char ⬤ doesn't exists in the Font file, the OS will search for that char in other font files, such as webdings.ttf. Found a post about using the RegEdit /LocalMachine/Software/WindowsNt/Fonts and having to edit font mappings, which looked complicated.

ChatGpt says that I can MeasureText, to see if a char exists, and if not choose another char sysmbol.But the char always exists.
Dim font As New Font("Segoe UI", 9, FontStyle.Regular)

' The character you want to check (e.g., the copyright symbol ©)
Dim specialChar As Char = "⬤"

' Check if the font can display the character
Dim canDisplayChar As Boolean = TextRenderer.MeasureText(specialChar, font).Width > 0
If canDisplayChar Then
    Return "⬤"
Else
    Return "X"
End If

I'm just wondering if someone here has figured this out, and can share what they did. The customer really wants the ⬤.

On a side note or question, I can set a color for the circle in ListView on .Net Core 7, but can't set the color of the circle in .Net Framework 4.6.1.
If it ain't broke don't fix it
Discover my world at jkirkerx.com

AnswerRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz24-Oct-23 20:32
mveGerry Schmitz24-Oct-23 20:32 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx24-Oct-23 21:48
professionaljkirkerx24-Oct-23 21:48 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx26-Oct-23 10:30
professionaljkirkerx26-Oct-23 10:30 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz27-Oct-23 7:45
mveGerry Schmitz27-Oct-23 7:45 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx27-Oct-23 10:05
professionaljkirkerx27-Oct-23 10:05 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz28-Oct-23 6:37
mveGerry Schmitz28-Oct-23 6:37 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx28-Oct-23 18:28
professionaljkirkerx28-Oct-23 18:28 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz29-Oct-23 7:04
mveGerry Schmitz29-Oct-23 7:04 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx29-Oct-23 12:46
professionaljkirkerx29-Oct-23 12:46 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz29-Oct-23 18:24
mveGerry Schmitz29-Oct-23 18:24 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx29-Oct-23 18:50
professionaljkirkerx29-Oct-23 18:50 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx30-Oct-23 11:30
professionaljkirkerx30-Oct-23 11:30 
QuestionCapturing a still from a RTSP stream Pin
Member 1499589619-Sep-23 0:43
Member 1499589619-Sep-23 0:43 
AnswerRe: Capturing a still from a RTSP stream Pin
Richard Deeming19-Sep-23 1:17
mveRichard Deeming19-Sep-23 1:17 
AnswerRe: Capturing a still from a RTSP stream Pin
Richard MacCutchan19-Sep-23 2:52
mveRichard MacCutchan19-Sep-23 2:52 
AnswerRe: Capturing a still from a RTSP stream Pin
jschell19-Sep-23 6:43
jschell19-Sep-23 6:43 
QuestionVB.NET Framework 7, how to multithread on existing user control? Pin
Member 1415594910-Sep-23 8:06
Member 1415594910-Sep-23 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.