Click here to Skip to main content
15,892,768 members
Everything / .NET / .NET 2.0

.NET 2.0

.NET2.0

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR
by dotnetdan
VS 2005 debug visualizers for DataSet, DataTable, DataView, DataRow and DataColumn objects.

Latest Articles

by Shivprasad koirala
6 steps to enable transactions in WCF
by Shivprasad koirala
This article explains plug and play architecture using policy application blocks.
by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
by Toby Patke
Clearcove.Logging is a very simple logging library designed to meet most logging needs with straight-forward licensing terms.

All Articles

Sort by Updated

.NET 2.0 

22 Nov 2023 by Maciej Los
I'd suggest to get datagridviewcell's value into variable once, then use it. On the other hand, forget about old VB function CDate. Use proper .Net function: DateTime.TryParse Method (System) | Microsoft Learn[^] Dim dd As DateTime If...
21 Nov 2023 by Member 13706784
Hi friends, I am writing the code in vb.net where I am passing the same value from datagrid control's column in two different masked text boxes which are used for date input. txtDate.Text = Format(CDate(dtgrdBranch.CurrentRow.Cells(4).Value),...
18 Jan 2023 by KUMAR619
HI, I just want to focus a form which was the toplevel form.I focused the Second form using Form.Showdialog().Now my problem is that Second form's taskbar icon is hidden.So Only the parent form's taskbar icon is visible.If I click on the taskbar icon of the first form only...
9 Jan 2023 by VinodKumar01
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. r3sm3412459ibk.1this error is coming when send a email
28 Oct 2022 by Member 15812477
In my case, this it not the single-instance-check but the localisation of the EXE on the net. I' working at home and my executable is on a server in my company When i copy the executable on my computer, it works fine !!!!! Cleraly a quetsion...
1 Oct 2022 by Member 11392518
public Form1() { InitializeComponent(); FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; ShowInTaskbar = false; Opacity = 0; Size = new Size(0, 0); } // hiding from Alt+TAB dialog protected override CreateParams CreateParams {...
1 Oct 2022 by KUMAR619
This may be a silly question but I am unable to do it.I am opening two forms when opening an EXE.I need to make one form always invisible.I tried this.visble=false; it didn't work.I then tried this.Hide();It hides my required from but when I open that EXE it blinks once...
19 Jul 2022 by SudhaRadha
In our company we are using both windows application and web application. To login both application same username and password are using. So once I have logged in to windows form by using Username and password in the form I have a link to go to our web application it should be auto login to the...
23 Jun 2021 by Shivprasad koirala
6 steps to enable transactions in WCF
23 Jun 2021 by Shivprasad koirala
This article explains plug and play architecture using policy application blocks.
15 Jun 2021 by Azad R Chouhan
Hello everyone I am posting the same question again. Because i did not get any reply from my previous question.I am working on an application. Its a window application which developed in .net 2.0Now the problem is this that when ever i run my application and i send a request to another...
28 May 2021 by shilky
Hi...I am using Sendkeys.SendWait method in my project for sending characters, using unicode code points, to the Office Applications in Windows XP, Windows Vista and Windows 7. In this method, the unicode code point for Devnagari Characters are working nicely but the unicode code point...
28 May 2021 by Member 15221608
How to send unicode text from VB6 application to other application: I found that VB6 Sendkeys and Windows keybd_event api do not support unicode character. However, I outline below a clumsy way to send out unicode strings from VB6 application...
22 Feb 2021 by VikashGohil
Hello, this is Vikas Gohil.I have developed an application in C# using VS2005. The application is using a third party DLL file created in C. I am using DLLImport statements to importing the DLL file and using functions from that file. This application works fine in VS2005 on windows. I...
22 Feb 2021 by honey the codewitch
You are trying to use windows code on a linux machine. That will work about as well as you might expect. Linux will not run code written for windows. Do not use DllImport to import windows DLLs and expect them to work on a linux machine or you...
7 Dec 2020 by ahmed_sa
I work on asp.net core 2.2 Project with angular 7 . I face issue when download file It created with Name [object FormData].xlsx but Name must be DeliveryGeneration_Output.xlsx . Path returned and Created ...
7 Dec 2020 by Richard Deeming
It's going to depend on how you've initialized your exportPath variable, which you haven't shown. However, based on the code you have shown, I suspect you're not handling the upload properly. The name of the uploaded file will be the path, or...
23 Sep 2020 by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
9 Sep 2020 by F-ES Sitecore
You're creating a link to that controller action so when you click on it it navigates to the result of that action which is your partial view. If you want to show the partial view on the page then you'll need to load it via ajax and inject the...
9 Sep 2020 by sasko1
Hi! I have problem with calling partialView which has boostrap modal form from controller .Controller returns full page view without any css .How can I fix this? line from index.cshtml that calls controller
23 May 2020 by Toby Patke
Clearcove.Logging is a very simple logging library designed to meet most logging needs with straight-forward licensing terms.
19 Apr 2020 by Varun Sareen
I found the solution to it. The issue was due to another Response.Write() code was written on Page load due to which the issue in excel file was coming. Response.Write("" & Chr(10)) Response.Write("" &...
19 Apr 2020 by Varun Sareen
Hello Friends, I am trying to download an excel file template from my root Directory and the allowing user to edit the same and then upload the data entered into the modified excel sheet. But whenever i am downloading the template excel file, on...
19 Apr 2020 by OriginalGriff
We can't help you here: the most likely thing is that the file is corrupted, or you are trying to open it before it's fully downloaded, or ... There are a huge number of possible reasons. Start by doing a binary file compare between the original...
12 Mar 2020 by Vivek Rana
/* * File: main.c * Author: root * * Created on May 17, 2011, 1:51 PM */ */ #include #include #include #include #include #include #include #include...
14 Jan 2020 by David A. Gray
The routines in this library can parse any string that I can throw at it, including Common Name strings read from X.509 Digital Certificates.
25 Dec 2019 by Alexander Iacobciuc
In this article you will find an implementation of a stream player control.
19 Nov 2019 by Richard Atkins
Create a fluid, multi-column, vertically ordered list using nested, floating divs
13 Nov 2019 by pdoxtader
A multithreaded server class that accepts multiple connections from a provided client class. Each client can send and receive files and text (byte data) simultaneously along 250 available channels.
8 Oct 2019 by Taner Riffat
Multithreading is something we will all have to deal with sooner or later. This relatively simple application shows you how to use two threads to copy files. It is also a very handy Windows backup utility with a mirror feature, a batch mode feature, a log file feature and a help button!
30 Sep 2019 by veeramanidhana
If your service is https then add this line before webclient call ServicePointManager.SecurityProtocol = (SecurityProtocolType)768 | (SecurityProtocolType)3072;
10 Sep 2019 by ozbear
I have an existing project using an interface, which cannot be easily changed, declaring a method called Peek(). The original implementation of Peek looked at the first element of internal List, filled in by a socket, byte by byte,and returned the byte. I have been experimenting with...
30 May 2019 by surender.m
Source: .Net Runtime 2.0 ErrorEventID:5000EventType clr20r3,P1 test.exe,P2 1.0.0.0,P3 .., P4 mysql.data P5 5.0.7.0,P6 464b5d79,P7 21c,P8 76,P9 mysql.data.mysqlclient.mysql, P10 NIL.Console application closing abruptly with above details in event log.
10 May 2019 by Member 14362952
This is related to TLS, Just upgrade the .net to the latest version. This happens when the server denies tlsv1.0 or tlsv1.0 is disabled from the server side. To resolve this from the client side just upgrade to the latest version and see.
10 May 2019 by Manidas Payyoli
CS1061: 'System.Security.Principal.IIdentity' does not contain a definition for 'GetUserName' and no extension method 'GetUserName' accepting a first argument of type 'System.Security.Principal.IIdentity' could be found (are you missing a using directive or an assembly reference?)What I have...
10 May 2019 by hongz1
not sure whether you already figure this out, but to use 'GetUserName' method, you may need to include namespace of "Microsoft.AspNet.Identity" on your front-end page. VB.NET:
13 Apr 2019 by nogChoco
LineNumbers that dock to a RichTextBox or show as an overlay on top of it
15 Feb 2019 by archana_Kalyankar
Hello Can any body help me?I bind a dataset to combobox. (siteName, siteId) At the run time I got following error."Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."If siteName have less char then no problem. But...
15 Feb 2019 by Frankie-10589807
For this Error is was able to go through it with the following sequence: 1. I Cleared the dataset before the call to fill the table adapter Me.MyDataSet.Clear() 2. I set the Enforce Constraint to False also before the call to fill the table adapter Me.MyDataSet.EnforceConstraints = False And...
5 Feb 2019 by Maciej Los
MSDN documentation is here: Reading from and Writing to the Registry (Visual Basic) | Microsoft Docs[^] It contains information about security: Quote: Robust Programming The registry holds top-level, or root, keys that are used to store data. For instance, the HKEY_LOCAL_MACHINE root key is...
5 Feb 2019 by Dinesh Kumar Dora
Hello Friends, I converted my VB6 code to VB.net and due to environment dependencies i have to stick to dotnet 2.0. Now after converting there is only one piece of code that is failing which i am not able to fix. Here is the code that fails and gives System.Io.exception: Bad File name or...
31 Jan 2019 by Ralf Meier
Sometimes Google helps : [^] Perhaps you try it like this ...
24 Jan 2019 by Dinesh Kumar Dora
Hello friends, I need VB.net solutions (in dotnet 2.0) for the following features: a) Detect OS architecture - x86 or x64 b) Read registry key from 64 bit reg key and Wow6432 nodes as well base don system architecture. Well i get the code solution for the above features but all were in C# and...
24 Jan 2019 by Richard Deeming
Reading 64/32-bit registry keys in .NET 2.0 will require some P/Invoke calls: How to read the 64 bit registry from a 32 bit application or vice versa | Rhyous[^] The code in that post is in C#, but it should be possible to convert it to VB.NET; otherwise, you could always create a C# assembly...
23 Jan 2019 by Maciej Los
If you would like to get OS architecture, check this: How to Detect 64bit OS/Process on .NET 2.0 to 3.5[^] See also: c# - What is the most reliable way to detect windows OS Architecture (x86,x64) on .NET 2.0 - Stack Overflow[^]
2 Jan 2019 by Octavio Loyola-González, Miguel Angel Medina-Pérez, Andres Eduardo Gutierrez Rodriguez, Milton García Borroto
In this article, we introduce a framework in C# for fingerprint verification, we briefly explain how to perform fingerprint verification experiments and how to integrate your algorithms to the framework.
31 Dec 2018 by Randy Kroeger
This article provides an example on how you can change application configuration settings within an existing ClickOnce publish, update the manifest files, followed by using the Mage utility for updating the manifest using the existing cert file.
30 Dec 2018 by Chinmoy Mohanty
Multiple techniques of implementing The Observer Pattern in .NET
30 Nov 2018 by Troy Simpson
Setup a simple and cheap computer controlled watering system using VB.NET or C# and a parallel port relay controller
4 Nov 2018 by Faisal(mfrony)
This article will help you to get a clear understanding of LSP.
10 Sep 2018 by Evaldas Jocys
JavaScript class library which partly replicates Microsoft .NET Framework structure and functionality.
16 Aug 2018 by Richard MacCutchan
You can use MSBuild Reference - Visual Studio | Microsoft Docs[^].
16 Aug 2018 by Trivikramarao Vurubandi
Please suggest any build tool for .Net windows source code with out using IDE for releases with version number maintenance. it's required to support from .Net frame work 2.0 and above. What I have tried: i tried with NANT but not supported to static function called in normal classes.
14 Aug 2018 by Shashangka Shekhar
In this post, we are going to implement dynamic highchart with Angular6 and ASP.NET Core.
6 Aug 2018 by saurabh Singh
I have an exe built on .net 2.0 which communicates with aspx files on Windows Server 2012. The exe calls the aspx files for getting the data. Will there be any issue if Windows Server 2012 is upgraded with TLS 1.2 ? I get error when trying to connect with https? What I have tried: Tried to...
6 Aug 2018 by Richard Deeming
You'll need to recompile the application against .NET 3.5; install a hotfix on the machines that run it; and change the code to enable TLS support: Support for TLS System Default Versions included in the .NET Framework 3.5 on Windows Server 2012[^] Alternatively, you can upgrade your...
27 Jul 2018 by B.O.B.
Implement a Global Try Catch block while still using the .NET Application Framework.
19 Jul 2018 by Ajcek84
WinForms library containing the IncipitViewer control for drawing musical notes
17 Jul 2018 by Karthik. A
User specific implementation of feature flags, which can be used to roll out features targeting specific users without doing multiple releases
17 Jun 2018 by Gunnar S
Moving ASP.NET WebAPI code to Service Fabric Cluster
22 Apr 2018 by JohnLeitch
This article details how to make .NET applications scriptable with Aphid, an embeddable scripting language.
29 Mar 2018 by Shashangka Shekhar, ZahidOnAir, Abhijit Bhowmick Dip
In this post we are going to create a Single Page Application (SPA) with AngularJS and ASP.Net Core. We will use Angular-UI-Router for our application routing instead of MVC routing.
21 Mar 2018 by Maciej Los
Try to change DataGridView.AutoGenerateColumns Property (System.Windows.Forms)[^] to false to stop generating new columns. But.. MSDN wrote: If you set the DataSource property but set AutoGenerateColumns to false, you must add columns manually. You can bind each added column to the data source...
21 Mar 2018 by Olaoluwa
I have created a window form datagridview having combobox and textbox elements. I used this datagridview to accept data from user then saved in sql database. Whenever i attempted to populate datagridview control with same data from sql it always create new sets of controls on same datagridview...
20 Mar 2018 by Snyezana Miletich
I had the same problem. I was googling and tying many of solutions but nothing worked. At the end i just changes my URL links to "https://" in request and it worked!
20 Mar 2018 by mayank.bhuvnesh
Hi in the below code I am receiving error "stream.length' threw an exception of type 'system.notsupportedexception'"I have tried using MemoryStream but still its the same??What i am missing????protected void Button1_Click(object sender, EventArgs e){ string encodedURL =...
22 Feb 2018 by jpveldtman
Hi guys,I am facing a problem with my FTP to upload a file to the FTP Server.I keep on getting an error "The remote server returned an error: (451) Local error in processing.I have tried Passive mode, but with no luck. Any recommendations are welcome.Please see my code below:private...
22 Jan 2018 by slilence_prg
how to send and recieve more than 160 characters or multipart sms using gsmcomm library
18 Jan 2018 by m_abh
Hi All, I need your help please in very urgent issue, I need to fill a .net datatable with a huge data( about 400 MB), when load data i face a memory problem , Out of memory exception , i found it take more than 1GB from memory. I search about this problem and find somebody talk that...
17 Jan 2018 by honey the codewitch
Dependency free, fast, lightweight JSON parsing and light query
11 Jan 2018 by Jesusfan
Create a draggable, proper splash screen in DotNet, with gradient transparency!
8 Jan 2018 by thangchung
This article will show you how to expose the database schema to the APIs, then query from it. No boilerplate code for simple query actions. Go and read it.
10 Nov 2017 by knockNrod
Creating Embedded Controls for WonderWare InTouch and WinCC
7 Nov 2017 by Mohammed Hameed
When we open a project/solution in Visual studio, the project's vshost.exe file will be executed and launched in memory automatically (I think this is done by Visual studio) and this process (vshost.exe) will be in running state till we close the solution from VS.I know that this process has...
5 Nov 2017 by Alexander Iacobciuc
In this article you will find yet another implementation of a web camera control.
28 Aug 2017 by Kasic Slobodan
Easily assign your extension to your application and set an icon.
17 Aug 2017 by Howard Richards
Provides a useful wrapper to the FtpRequest in .NET 2.0.
7 Aug 2017 by JasonShort
Buffer.BlockCopy is not as fast as you think
1 Aug 2017 by Dmitry Brant
A custom control for Windows Forms that looks like an electronic 7-segment LED display.
22 Jul 2017 by Duncan Edwards Jones
How to use a Windows Azure storage table, blob or file as an event store for event sourcing
9 Jul 2017 by angel 2
I have two textboxes in which I am storing dates from calender. I have a third textbox in which I want to store the number of days after calculating the difference between the two dates in c#.How can I do that? Plz help.Thank you.
19 Jun 2017 by Occam's Razor
Ever wonder how programs like Nero work? They make their own SCSI libraries... like this!
14 Jun 2017 by Robin Rodricks
.NET core/.NET standard is the latest incarnation of the .NET platform. This tutorial introduces you to this new world, and gives you practical advice to successfully port your .NET Framework library to .NET Core.
20 Apr 2017 by Member 12439303
How i get eval command event from gridview inside datalist on save button click in vb.net My code is below problem occuring at this line **> Dim AccountsGrid As GridView = > CType(e.Item.FindControl("AccountsGrid"), GridView)** What I have tried: Protected Sub btnSave_Click(ByVal sender...
12 Apr 2017 by Patrick Rogers
I work in a small shop of developers, 5 to be exact. And I was wondering is there a particular software that I should use for our source control? Thanks ! What I have tried: I am doing my research on the internet
12 Apr 2017 by CHill60
List of version control software - Wikipedia[^] - pick one. A free one probably. SVN or Github seem to be the most popular. Someone might offer to pay you to use Visual SourceSafe - tell the demon to be gone and never darken your door again! (Just kidding. Actually no I'm not. It is the spawn...
5 Apr 2017 by Juan Francisco Morales Larios
Useful Actions for debugger in System.Diagnostics
29 Mar 2017 by penigandlakoti
hi, i have problem with creating the database connection in javascript.if u know the creating the database connection,please share the information. Thanks in advance.
26 Mar 2017 by Aydin Homay
In this article, I tried to show a real benchmark based on presser test method, for a Big Data collection deals on C++, C#, and VB.NET.
21 Mar 2017 by Christiaan van Bergen
An article on converting text files or csv-files to a System.Data.DataSet based on regular expressions
16 Mar 2017 by lepipele
ASP.NET MVC C# Opensource library that abstracts social logins for OAuth providers like Facebook, Google, Twitter, PayPal
8 Mar 2017 by Member 12941572
Hi allI am sending and receiving text files over serial port in c# without any problem . But i want to send data according the memory size in text file "like sending 1 kb in 1 sec , next 1 kb in next second like that ". I am working on this from long back didn't get the perfect solution...
8 Mar 2017 by Jochen Arndt
Just read the file into a string. Then you can send 1 KB portions by using SubString(blockNumber * 1024, 1024) where blockNumber is incremented after writing each block until all blocks has been send.Program flow:Global objects:string buffer;int blockNumber = -1;Set File / click...
4 Mar 2017 by Duncan Edwards Jones
An outline of how a paired Azure queue and Azure table can be used for the command side of a CQRS application
4 Mar 2017 by raddevus
When disk I/O goes to 100% your machine becomes a brick. Here's some information about how my i7, 8GB laptop was taken over by Microsoft Telemetry.
2 Mar 2017 by David Vanson
A weather application for the current conditions in your area
24 Feb 2017 by Ebenezar John Paul
An Ideal Code Review Checklist that applies for most programming languages
3 Feb 2017 by tranthanhtu.vn
In "REST - Overview" article, I were introduced the basic rules in RESTful, Can you show me how to implement in WebApi?Ok, in this article, we will learn how to implement those rules in WebApi using C#.Where could I get sourcode was used in this article?Please checkout the code at https://github.com
3 Feb 2017 by lepipele
An overview that presents all PayPal integration options, targeted especially at C# developers.