Sven's profileWebSmitSpacePhotosBlogListsMore ![]() | Help |
WebSmitSpaceNovember 20 Newline and RichTextBox in VB.NETProblem Today, I had several problems while using a RichTextBox for Application Logging with EntLib and the new Custom TextBoxListener capabilities. (Output is logging to a TextBox of my main form.) But the problem was that I just replaced TextBox with RichTextBox and the formatting didn't display properly. Solution Just replace the .Text Property with the .AppendText method of RichtTextBox, found here. Julian Day Format in VB.NETIt's just that simple: Private Function GetJulianDay() As String Return Now.ToString("yy") & Now.DayOfYear.ToString("000")
End Function Vista Blue Screen: “Your BIOS is not fully ACPI compliant“Today I found this very strange error message while booting my system. I already installed the actual BIOS for my motherboard, a Gigabyte GA-M55-S3 v2.0. I remembered that Vista installed several updates (46) when I left the office yesterday. That must be the cause of the problem! While talking to my colleague we found the solution, it has something to do with DMI. I never thought about what DMI is and what it does. Nevertheless the Gigabyte BIOS has a tiny tool called "Flash utility" (or similar), you can reach while pressing the "End" key when the system boots. There is an option for "Keep DMI Data", this was set to "Enable" – I turned it to "Disable" and then the system booted fine. Regards Sven September 29 Siemens protocol 3964R in C#HOWTO: Did you ever look for a free implementation of the serial communications protocol 3964R? I found a solution. There is a free project called "rkjava" available on the web. Please have a look at www.rkjava.de. I tried converting this Java solution to C# and – surprise – it was successful. Communication now works very well and imagine – you saved several hundred Euros. The best feature: it's completely implemented in managed code – no P/Invoke and no ActiveX. By now I only know of the Adontec package based on ActiveX.
Tags: PLC-access via serial interface, Siemens Moby-I, VB.NET, C#, 3964 R |
|
||||
|
|