⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/tags/example $

#example

8 posts

8 total

Bootstrap DateTimePicker - Selecting Only Month from Dropdown Menu.

In this example, we will demonstrate how to make a dropdown menu select only the month, without the day, using bootstrap-datetimepicker. To implement this, we will need the following components: bootstrap - the bootstrap library jquery - the jQuery library moment - the moment library for working with time, in this example we will use moment-with-locales bootstrap-datetimepicker - the datetimepicker library for selecting dates. In addition, we will use the respond.js and html5shiv.min.js libraries to ensure that our example works correctly in IE.

130 views 0 comments 0 likes ./Read →

OpenXML - Пример создания Excel файла на C#

В данной публикации приведен пример генерации Excel файла при помощи библиотеки OpenXML. Отличие этой библиотеки OpenXML от Microsoft.Office.Interop.Excel в быстродействии которое на порядок выше. Для работы с Excel документами необходимо у…

1921 views 0 comments 0 likes ./Read →

Using Crystal Report in C#

In this article, I will provide an example of creating and using a Crystal Report in Visual Studio. The provided example is a real working project for preparing tickets for printing on a standard laser printer. Let's start with what we need, which is a data source, so first create a project where we will use our report and create a data source that we will export to an XML file, for a more simple and intuitive creation of a new report and its settings.

350 views 0 comments 0 likes ./Read →

Programmatic Adding Events to Controls in C#

There are often cases when creating an event for controls programmatically is necessary, for example, when we need to perform certain manipulations with elements and data they contain before events are processed. This can be on change of selected value, mouse click, change of content, and many other events. It is advisable to create events programmatically rather than in the designer. I will show how to do this in an example.

104 views 0 comments 0 likes ./Read →

How to Open Images in C#

From the archive - might come in handy... It seems there's nothing simpler than opening an image from disk in C#. But, there are some pitfalls! Here are two examples. The first method (incorrect): if (openFileDialog1.ShowDialog() == DialogResult.OK) {…

95 views 0 comments 0 likes ./Read →