Reading and Writing Settings.ini files in Vb.NET

Probably the easiest way to read and write settings.ini files in VB.NET is with a little bit of code from NuGET from MarioZ called https://github.com/MarioZ/MadMilkman.Ini This is a section that I wrote using the examples to check and see if values exist, before writing a default settings file. Imports MadMilkman.Ini Public Class Form1 Private Sub... Continue Reading →

Converting DOS Date/Time in C# stored as HEX

Here's some crazy programming that will do your head in, for it's storage efficiency. public void Main { DateTime now = DateTime.Now; int yearnowfix = (now.Year + 20); string[] theArray = { yearnowfix.ToString().Substring(2), now.Month.ToString(), now.Day.ToString(), now.Hour.ToString(), now.Minute.ToString(), now.Second.ToString() }; Console.WriteLine(PlayDateConversion_ToHex(theArray)); } public string PlayDateConversion_ToHex(String[] HumanDate) { String DateHEX = ""; // Convert the array to... Continue Reading →

Text to Speech WAV

To make this work properly, you need to make sure you have the right speech pack installed: https://support.microsoft.com/en-us/office/download-voices-for-immersive-reader-read-mode-and-read-aloud-4c83a8d8-7486-42f7-8e46-2b0fdf753130?ui=en-us&rs=en-us&ad=us The other thing, is to make sure the voices you want to use are enabled correctly. On Windows 10 - and I have not tested this on anything else, so use it at your own risk! You... Continue Reading →

Blog at WordPress.com.

Up ↑

%d bloggers like this: