Category - VB.Net
Results 1 - 20 of 149
14 Jun 2022 14 Jun 2022 0 Comments  9899 Views
Here Mudassar Khan has explained with an example, how to convert LINQ query result to DataTable using C# and VB.Net.
01 Jun 2022 01 Jun 2022 3 Comments  19101 Views
Here Mudassar Khan has explained how to resolve the error: The server did not respond with a +OK response. The response was: "-ERR [AUTH] Username and password not accepted." in ASP.Net Application when trying to access Gmail Mailbox using POP3.
01 Jun 2022 01 Jun 2022 0 Comments  2990 Views
Here Mudassar Khan has explained how to resolve the error: The server did not respond with a +OK response. The response was: "-ERR [AUTH] Application-specific password required" in ASP.Net Application when trying to access Gmail Mailbox using POP3.
08 Feb 2021 08 Feb 2021 1 Comments  55631 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class along with SSL3 Security Protocol in C# and VB.Net.

Error: The client and server cannot communicate, because they do not possess a common algorithm

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service and hence there is mismatch in the cryptographic algorithm.
08 Feb 2021 08 Feb 2021 0 Comments  43543 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class in C# and VB.Net.
Error: Could not create SSL/TLS secure channel

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service which uses TLS 1.2 protocol for establishing secure channel for communication.
05 Feb 2021 05 Feb 2021 1 Comments  20259 Views
Here Mudassar Ahmed Khan has explained with an example, how to use TLS1.2 in projects using .Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 with C# and VB.Net.

But, the support for TLS 1.2 is available in .Net 4.5 onwards and hence this article will demonstrate how to use it in projects other Frameworks such as Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 without upgrading them.
02 Feb 2021 02 Feb 2021 0 Comments  57832 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Newtonsoft.Json.JsonConvert library for Serializing and Deserializing JSON using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be deserialized to JSON object using the Deserialize function of the JSON.Net library.

Finally, the JSON object will be again serialized to JSON string using the Serialize function of the JSON.Net library in ASP.Net using C# and VB.Net.
23 Nov 2020 23 Nov 2020 0 Comments  16377 Views
Here Mudassar Ahmed Khan has explained with an example, how to create Connection String in C# and VB.Net.

This article will illustrate how to create connection string for Windows and SQL Server based authentication for Windows Forms and Console Applications in C# and VB.Net.
19 Nov 2020 19 Nov 2020 0 Comments  5556 Views
Here Mudassar Ahmed Khan has explained with an example, how to reverse a String without using in-built String function in C# and VB.Net.

This article will illustrate how to reverse a String using a simple FOR LOOP in C# and VB.Net.
12 Nov 2020 13 Nov 2020 0 Comments  18894 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement reverse FOR LOOP in C# and VB.Net.

A FOR LOOP iterates from START to END while the reverse FOR LOOP as the name suggests will do REVERSE i.e. from end to start.

This article will explain a simple reverse FOR LOOP by reversing a string in C# and VB.Net.
12 Nov 2020 12 Nov 2020 0 Comments  11854 Views
Here Mudassar Ahmed Khan has explained with an example, how to reverse a String using C# and VB.Net.

This article will illustrate how to create a simple STATIC function which can be used in ASP.Net Web Forms, ASP.Net MVC, ASP.Net Core, Windows Applications and also Console Applications built in C# or VB.Net.
18 Sep 2020 18 Sep 2020 0 Comments  18265 Views
Here Mudassar Ahmed Khan has explained with an example, how to select all Nodes (Elements) in XML without specifying (particular) Node Name (Tag Name) using XPath Query (Expression) with C# and VB.Net.

The XML file will be loaded into an XmlDocument and then using XPath Query (Expression), all the Nodes (Elements) in the XML will be selected.
19 Mar 2020 19 Mar 2020 0 Comments  35035 Views
Here Mudassar Ahmed Khan has explained with an example, how to add new Row to existing DataTable using C# and VB.Net.
09 May 2019 09 May 2019 1 Comments  36665 Views
Here Mudassar Ahmed Khan has explained with an example, how to create HTML File in Console (Command) Application using C# and VB.Net.

First, an HTML Table will be generated in the form of an HTML string and then the HTML string will be written to an HTML File and saved in Folder (Directory) using C# and VB.Net.
08 Mar 2019 08 Mar 2019 0 Comments  34554 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) ListView from Database in Windows Forms Application (WinForms) using C# and VB.Net.

This article will illustrate how to populate data from SQL Server Database in DataTable and then use DataTable to populate ListView control in Windows Forms (WinForms) Application using C# and VB.Net.
13 Feb 2019 14 Feb 2019 0 Comments  20715 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML to PDF in Windows Forms Application using iTextSharp, C# and VB.Net.

First a DataGridView will be populated with some data and then an HTML Table will be generated using the values from the DataGridView.

Finally, the HTML Table will be exported and saved as PDF file using iTextSharp and XMLWorkerHelper class in Windows Forms Application with C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  23687 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Search function in Windows Forms Application using C# and VB.Net.

By default the DataGridView will show all records. As soon as user starts to type in the TextBox, the records will be searched in Database and the DataGridView rows will be filtered in Windows Forms (WinForms) Application using C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  36905 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch (retrieve) data from Database using DataTable with C# and VB.Net.

This article will illustrate how to populate DataGridView with data from SQL Server Database using SqlDataAdapter and DataTable in Windows Forms (WinForms) Application with C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  14912 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch (retrieve) data from Database using DataReader with C# and VB.Net.

This article will illustrate how to populate DataGridView with data from SQL Server Database using SqlDataReader and DataTable in Windows Forms (WinForms) Application with C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  58706 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch data from Database and store into DataTable using C# and VB.Net.

This article will illustrate how to populate DataTable with data from SQL Server Database using SqlDataAdapter in Windows Forms (WinForms) Application with C# and VB.Net.
Results 1 - 20 of 149