Active Directory Time Synchronization with multiple domain controllers on different Hyper-V hosts

| |

By default, when virtual machine is created on Hyper-V host, its clock is "bound" to the virtualization host operating system clock via Hyper-V integration services. If there are two or more virtualization hosts in the same network, it may happen the operating system time on one of the hosts to be different comparing to another host.

Introduction to .NET Framework, C# (C Sharp) and Windows Forms

| | | | |

Microsoft .NET Framework

Microsoft .NET Framework is technology for building and running .NET applications. It provides a standard library of classes and a run-time environment called Common Language Runtime (CLR).CLR is the foundation of the .NET Framework.

PDMS to Tribon modeling comparison

| |

1. Scope

The scope of this document is a simplified model comparison based on PDMS Structural Design and TRIBON Hull Design.

2. Purpose

The purpose of this document is to give an overview of two 3D- modeling systems and underline the differences between them.


Sysprep quick fix

| |

Sometime, sysprep operation may fail with the following error message:
System Preparation Tool 3.14A fatal error occurred while trying to sysprep the machineDetails can be found on Microsoft web site 

The quick fix is available here

c# Get selected item text from combobox


C# Combobox defined with name my_combobox

private System.Windows.Forms.ComboBox my_combobox;
Read the text of the selected combobox item and assign it to string variable, then show it in message box.
string selected_item_text = my_combobox.GetItemText(my_combobox.SelectedItem);MessageBox.Show(selected_item_text);

Deploy ASP .NET MVC application using LocalDB to local IIS


When ASP application is published to IIS using LocalDB accessing the database may result in the following error:
Server Error in '/Application_Name' Application.A network-related or instance-specific error occurred while establishing a connection to SQL Server.

Introduction to Widows Forms and Visual Studio IDE

| | | | |

Visual Studio .NET provides a user-friendly graphic designer for building user interfaces. With it, within a few minutes, a user interface design can be built, whether it's a Windows Forms window, a Web page, or a mobile application interface
CompilationWhen compiling, VS.NET automatically creates the required assemblies and resource files.

c# combobox fill from database


To get only the unique /distinct/ data table records from any database connected to DataSet in C# project and to put them inside combobox.Fill the table adapter with the records from database.

Create a view containing the database table
DataView view = new DataView(this.myDB_DataSet.myDBTable);
Copy only the distinct records to new data table.

Get latest date record - SQL query


To return the latest record (one record only) from data base table where one of the fields is in Date/Time format:

SELECT TOP 1 * FROM table_name ORDER BY date_time_column_name DESC
  • for ORACLE instead of TOP 1,  ROWNUM shall be used
  • the query may return NULL value - suitable exception handling must be provided