mongol-it.blogspot.com
Mongol IT: November 2008
http://mongol-it.blogspot.com/2008_11_01_archive.html
Let's make sense. Boldbayar.S. Saturday, November 1, 2008. Setting up Red Hat Linux as a Router. There are several different ways to set up routing from your LAN to the Internet. You can have a dedicated router or you can have a computer already connected to your LAN that will act as a router. This section describes how to use your Red Hat Linux computer as a router. Here's an example of Red Hat Linux being used as a router between a LAN and the Internet:. The Red Hat Linux "router" firewall is set up to...
mongol-it.blogspot.com
Mongol IT: July 2008
http://mongol-it.blogspot.com/2008_07_01_archive.html
Let's make sense. Boldbayar.S. Wednesday, July 16, 2008. How to use Crystal Report in your project? It was a problem to know how we can print our reports, but I tell you how. Studio .NET support crystal report and you can use it easily. 1 Create a new C#.NET or VB.NET windows application project. 2 With using .NET toolbox, design your project as such as this figure. 3 You need a TextBox, a Button and a CrystalReportViewer objects in your project. 5 Now generate your dataset object. Setting dataset tables...
mongol-it.blogspot.com
Mongol IT: December 2010
http://mongol-it.blogspot.com/2010_12_01_archive.html
Let's make sense. Boldbayar.S. Monday, December 6, 2010. C# Winform DatagridView Numeric Column Sorting. Private void dataGridView1 SortCompare(object sender, DataGridViewSortCompareEventArgs e). If (eColumn.Index = 0). If (double.Parse(e.CellValue1.ToString() double.Parse(e.CellValue2.ToString() ). ESortResult = 1;. Else if (double.Parse(e.CellValue1.ToString(). ESortResult = -1;. ESortResult = 0;. EHandled = true;. Labels: Examples - C# WinForm. Subscribe to: Posts (Atom). Search and get the result.
mongol-it.blogspot.com
Mongol IT: Get file names from FTP site
http://mongol-it.blogspot.com/2013/08/get-file-names-from-ftp-site.html
Let's make sense. Boldbayar.S. Wednesday, August 14, 2013. Get file names from FTP site. This example is how to get list of file names on specific ftp site and bind the result to RadListView with two column. I used RadListView of Telerik. You can use standard ListView or ASP. Labels: Examples - C# WinForm. Lessons - C# basics. Subscribe to: Post Comments (Atom). Search and get the result. Upload file into FTP. Function for Resize Image. Connection strings for MS Access and MS Excel in C.
mongol-it.blogspot.com
Mongol IT: August 2009
http://mongol-it.blogspot.com/2009_08_01_archive.html
Let's make sense. Boldbayar.S. Thursday, August 27, 2009. Set color of rows in XtraDatagrid in C#. Sometimes we need to set backcolor of row of XtraDatagrid. I have found the solution of this problem. We should use RowStyle event of XtraDatagrid. Sender, DevExpress.XtraGrid.Views.Grid. RowStyleEventArgs. DR = gridView1.GetDataRow(e.RowHandle);. EAppearance.BackColor = System.Drawing. Color. EAppearance.BackColor = System.Drawing. Color. EAppearance.BackColor = System.Drawing. Color. Examples - C# WinForm.
mongol-it.blogspot.com
Mongol IT: February 2010
http://mongol-it.blogspot.com/2010_02_01_archive.html
Let's make sense. Boldbayar.S. Tuesday, February 23, 2010. Print a Text File in C#. In this article, you will learn how to print a text file in C#. Create a Windows Forms application using Visual Studio and add two Button and one TextBox controls to the Form. Change names for the Buttons to Browse and Print respectively. Write the following code on the Browse button click event handler. OpenFileDialog fdlg = new OpenFileDialog();. FdlgTitle = "C# Corner Open File Dialog";. FdlgInitialDirectory = @"C: ";.
mongol-it.blogspot.com
Mongol IT: September 2010
http://mongol-it.blogspot.com/2010_09_01_archive.html
Let's make sense. Boldbayar.S. Friday, September 17, 2010. Using binding context with 2 tables in C#. DataTable dt = new DataTable("One");. DataTable dt1 = new DataTable("Two");. DataSet ds = new DataSet();. Private void Form1 Load(object sender, EventArgs e). DtPrimaryKey = new DataColumn[] {dt.Columns[0] };. DtRows.Add("1", "A");. DtRows.Add("2", "B");. Dt1Rows.Add("1", "Local address");. Dt1Rows.Add("2", "Postal address");. Dt1Rows.Add("2", "Local address");. BindingSource1.DataSource = ds;. Bmb = thi...
mongol-it.blogspot.com
Mongol IT: Connection strings for MS Access and MS Excel in C#
http://mongol-it.blogspot.com/2013/08/connection-strings-for-ms-access-and-ms.html
Let's make sense. Boldbayar.S. Wednesday, August 14, 2013. Connection strings for MS Access and MS Excel in C#. OleDbConnection connection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=electiondb.accdb;Persist Security Info=False;");. OleDbConnection connection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=election.xlsx;Extended Properties='Excel 8.0;HDR=NO;IMEX=1';");. Labels: Database - C#. Examples - C# WinForm. Lessons - C# basics. Upload file into FTP.
mongol-it.blogspot.com
Mongol IT: Function for Resize Image
http://mongol-it.blogspot.com/2013/08/function-for-resize-image.html
Let's make sense. Boldbayar.S. Wednesday, August 14, 2013. Function for Resize Image. This is a function that resizes the image into given size. Labels: Examples - C# WinForm. Lessons - C# basics. Subscribe to: Post Comments (Atom). Search and get the result. Upload file into FTP. Function for Resize Image. Connection strings for MS Access and MS Excel in C. Get file names from FTP site. Examples - C# WinForm. Lessons - C# basics.
mongol-it.blogspot.com
Mongol IT: Upload file into FTP
http://mongol-it.blogspot.com/2013/08/upload-file-into-ftp.html
Let's make sense. Boldbayar.S. Wednesday, August 14, 2013. Upload file into FTP. This is example code for upload file into FTP site. Using (WebClient client = new WebClient() { byte[] ByteStream = ConvertFileIntoBtes("c: test.jpg"); if (ByteStream! Null) { client.Credentials = new System.Net.NetworkCredential(USERNAME, PASSWORD); client.UploadData(FTPSERVER "/test.jpg", "STOR", ByteStream); } }. Labels: Examples - C# WinForm. Lessons - C# basics. Subscribe to: Post Comments (Atom). Upload file into FTP.