Click here to Skip to main content
15,889,528 members
Everything / Visual Studio / Visual Studio 2008

Visual Studio 2008

VS2008

Great Reads

by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Dmitri Nеstеruk
Let's create a simple project estimation DSL using F#!
by Sergey Alexandrovich Kryukov
Display names and descriptions for enumeration members: a non-intrusive, reliable, localizeable method.
by Nish Nishant
This articles explains how to implement a TypeDescriptionProvider for a class to support multiple object types using a single class type

Latest Articles

by Ștefan-Mihai MOGA
How to download files from an HTTP server.
by Sergey Alexandrovich Kryukov
A computer keyboard can be turned into an isomorphic musical instrument, to help in deeper exploration of the Musical Harmony and even to inspire new musical ideas
by Tough Developer
How to compile WinQEMU v0.10.2 in VS2008 and VS2012
by shunninghuang
Software named M1.NET which shows the details of decrypting arcade game audio

All Articles

Sort by Updated

Visual Studio 2008 

20 Aug 2023 by Ștefan-Mihai MOGA
How to download files from an HTTP server.
24 Jul 2023 by Sergey Alexandrovich Kryukov
A computer keyboard can be turned into an isomorphic musical instrument, to help in deeper exploration of the Musical Harmony and even to inspire new musical ideas
4 Apr 2023 by Tough Developer
How to compile WinQEMU v0.10.2 in VS2008 and VS2012
6 Feb 2023 by shunninghuang
Software named M1.NET which shows the details of decrypting arcade game audio
1 Feb 2023 by Member 12080232
This is my Login click button event code:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.DirectoryServices;namespace WebApplication1{ partial class ldapLogin :...
1 Feb 2023 by ao017545 engineer
get project aspx file tag to this form
21 Dec 2022 by gggustafson
This article is a significant revision to the earlier version and introduces a new version of ViewFile.
21 Dec 2021 by Umapathi K
i opened my windows application solutions file at today morning its showing the project file was unloaded in the solution explorer ., but it was working fine till yesterday night., now what happened why i am getting this error now i am unable to open my project please help me out
21 Dec 2021 by Member 10043313
The most common cause I've seen of this issue is failing to run Visual Studio in administrator mode. Many projects, such as websites, require admin mode to load.
19 Oct 2021 by genush
I have an c# windowsform app with several forms and in one of the forms I have a 2 column listview. When I add the text to the items of the listview, nothing is shown. I know the items are getting added because the vertical scroll bar appears, and I checked that the items had the appropriate...
19 Oct 2021 by Georg_S
OwnerDraw (property) set to false? You can easily, when moving about the properties windows of your listview, click OwnerDraw which is normally set to False, and set it to True. If you do this - nothing will be drawn in the listview by...
22 Mar 2021 by Member 1205290
This is really an ancient posting, but if I add my $0.02 here.. Installing the redistribution package became very tricky now as there are so many different versions. Instead of compiling the program in DLL, I suggest to use the Static Library...
19 Mar 2021 by mukesh_panth
Hi All,I am using VB.Net, VS2008 and Win7.I want to add multiple images in one picturebox using VB.Net and display on printpreviewcontrol for print. How can display multiple image in print preview control.Help will be very apprecited.Any link or idea my give me.mukesh :-)
14 Mar 2021 by Member 12274067
I got the same problem. Before the project become unloaded I had another error about file name. A word file it read had a very long name and the error was like "file name can not be longer than 260 characters." Because of this error I couldn't...
20 Feb 2021 by Sergey Alexandrovich Kryukov
Similar to ASCII Art, Unicode Art offers better tonal range, impressive look, and some fun on this sunny April day
21 Jan 2021 by Member 14204177
close application then delete .vs file and reopen the visual studio
20 Nov 2020 by Jo_vb.net
I think: When it's asking for a licence key you only need to login to your Microsoft account, then you should get a free license.
19 Nov 2020 by Jo_vb.net
Adjust File Associations: How to Reset Windows 10 File Associations or Change File Type[^] Your VS is rather old, why don't you use the free Visual Studio Community 2019 ?
19 Nov 2020 by YorkshireCap
I just upgraded my Windows 7 pro to Windows 10 pro and I find when I double click a .sln or .vbproj file, nothing happens! However, if I first open VS2008 then select to open the solution file, it loads correctly. What has happened in Windows 10...
15 Oct 2020 by Josh_0101
Hi, I'm trying to define a structure (Brace initialization, has constructor) for a Vector function, but it failed to be compiled and showed these errors. error C2059: syntax error : ',' error C2334: unexpected token(s) preceding '{'; skipping...
15 Oct 2020 by Richard MacCutchan
That syntax is in a later version of the compiler than the one provided by VS2008. You should upgrade to VS2019.
11 Oct 2020 by User 14859875
Can I ask about why the output in GeneralError.aspx.cs cannot display on GeneralError.aspx page, please? Because I have tried to change a lot of methods in some my codes of application error based on search google (but not suitable) but cannot...
11 Oct 2020 by Richard MacCutchan
Why are you still using that bad code? I explained yesterday how to validate your inputs at https://www.codeproject.com/Questions/5282429/How-do-I-display-the-correct-pageerror-aspx-output[^]
11 Oct 2020 by User 14859875
Can I ask about why my output for PageError.aspx is not same as correct output below, please?: The correct output for PageError.aspx after I entered two inputs such as 7 and 0 by using the pageerror method only (cannot use try catch method): ...
11 Oct 2020 by Richard MacCutchan
double dblAns = Convert.ToDouble(TextBox1.Text) / Convert.ToDouble(TextBox2.Text); You should not use code like that as it allows any garbage to be entered into your program. Capture each field separately and check that the entered values are...
23 Sep 2020 by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
30 Mar 2020 by Vasily Tserekh
Collision algorithms aren't rocket science and this article proves this idea.
3 Jan 2020 by Member 12330291
Hello, For windows CE mobile device Scanning, I have installed Datalogic Mobility Kit for Visual Studio 2005 I am using Visual studio 2008.As per the mobility kit documentation I have installed the kit for Only Visual Studio 2008 installed. After installation,in the device kit samples I found...
3 Jan 2020 by Christian Graus
Clearly you don't have the DLL
20 Dec 2019 by Member 14696062
Change the name of the folder back to what it was, and then it will work.
11 Dec 2019 by Madhu Nair
Try changing the insert query to like given below - Dim strquery As String = "Insert Into Images (PatientID,[Image],ImageNumber) VALUES ('patient0050','patient00501.JPG','1')"
11 Dec 2019 by mukesh_panth
Hi,I am using Vb.net,Access2007 and Wind7. I am getting this type of error msg..cmd.ExecuteNonQuery() Run-time exception thrown : System.Data.OleDb.OleDbException - Syntax error in INSERT INTO statement.Problem is that this query is not working in my vb.net code but it is working in...
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.
23 Oct 2019 by David Lafreniere
A framework combining state machines with asynchronous multicast delegates
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!
16 Aug 2019 by Austino158
In my case, run visual studio in admin mode solved it. Apparently, I was earlier running VS in admin mode to allow "attach to process" while running local IIS
1 Aug 2019 by D_code_writer
Hey Guys, I have an interesting question regarding migrating a 32 bit MFC project on VS 2008 to 64 bit on VS 2017. The problem revolves around the following example code CMyDialog *dlg; CString myString; dlg = new CMyDialog(NULL); myString = _T("test"); dlg->m_dlg_string = myString; ...
1 Aug 2019 by D_code_writer
Hey Guys, I figured out a work around that worked. Where it fell down in the was the assignment in the variables. Getting them from the dialog was fine. Here is the code snippet, CMyDialog dlg; CString MyString; MyString = _T("test"); dlg.SetState_m_dlg_string(MyString) // Write a void...
1 Aug 2019 by Michael Haephrati
I took the liberty to create a default MFC Dialog based project. I am using Visual Studio 2017 Enterprise. I then inserted your code. Here is how your code should look like (and of course, you should not call the destructor and also nothing to do with x86 Vs. x64). CString myString; dlg =...
21 Jul 2019 by RickZeeland
Take a look at the ArchitecturesAllowed option: Inno Setup Help[^] Normally you should not change this directive from its default value, but if you install any 32-bit device drivers, you should set this directive to x86, as 32-bit device drivers cannot function on 64-bit Windows. It is also...
24 Apr 2019 by QxOrm
QxOrm C++ library: Persistence (based on QtSql Qt library) - Serialization (based on boost::serialization library) - Reflection (introspection)
5 Mar 2019 by #dev_Preet
I am using vs2008 and trying to connect MySQL on remote Linux machine using ODBC driver 5.3 version. My connection string is :: "Driver={MySQL ODBC 5.3 Driver};Server="& DSName &";Database="& DBName &"; User=root; Password="& MySQLPWD &";Option=3;" But when I am trying to connect using this...
26 Jan 2019 by David Lafreniere
A framework combining state machines and multicast asynchronous callbacks
25 Jan 2019 by David Lafreniere
Simplify passing data between threads using this multithreaded, portable C++ asynchronous callback framework
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
11 Dec 2018 by omeecode
Google Maps Offline in windows discusses how one can download or save Google maps and then view these images offline
6 Oct 2018 by DX90
A simple library to control registry easier
4 Oct 2018 by TwinLane
A non rectangular/transparent splash screen control that starts life before the Application Form
14 Sep 2018 by bkelly13
Goal: Describe how asynchronous or non-blocking TCP code works
6 Sep 2018 by red_moon
Text editor control with syntax coloring, line numbering, auto-complete, and syntax tooltip
7 Aug 2018 by vaibhav mahajan
Hello everyone..!! I have a gridview which is databinded by datasource. i want to convert that datasource's content into datatable. i tried thisGridView grd = new GridView(); grd.DataSource = SqlDataSource1; grd.DataBind(); DataTable dt = new...
19 Jul 2018 by Ajcek84
PSAM Control Library ported over to WPF
19 Jul 2018 by Ajcek84
WinForms library containing the IncipitViewer control for drawing musical notes
18 Jul 2018 by Member 13914727
Hi, I've 2 dropdowns 1 is site and another is warehouse. Warehouse dropdown value will be changed based on site dropdown. I done the insert for that dropdowns but when I try to edit the dropdowns already existing value need to be shown and dropdown value should change based on the site edit...
26 May 2018 by PaulS_UK
I am working on an old C++ Console project which used Flash Graphics to plot data. I wish to upgrade this project so it calls GNUPlot to display the data. The original code was written so that it could accommodate other plotting software by placing all calls to Flash Graphics in a single C++...
22 May 2018 by Pawel Wzietek
Synchronous/asynchronous control via multiple interfaces with command queuing
17 May 2018 by vnmatt
Basic framework for building desktop plug-in applications
13 Apr 2018 by _Flaviu
A method of how to get rid of "close" menu from multiple CDockablePane panels
1 Apr 2018 by Sergey Alexandrovich Kryukov
The mystery of Benham’s top invented in 1895, as well as Fechner color effect, remains not fully uncovered so far. WPF and XAML help to accelerate the research greatly.
9 Mar 2018 by KarstenK
A good way to find the bottlenecks is to comment out some functions and play around to find the problematic code. Often is it only one or two badly implemented pieces of code like disk or database access, wait timers or computations of strings. Sometimes a bit of caching helps. Normally when...
9 Mar 2018 by jiazhiqiang
After I finished a program,I run it ,But found it's so slow. Using vs2008,How can I Have a Tool to find the bottleneck of the performance in which function or class.Then I can improve it.Any suggestoin? Free tool and lightweight is better!
28 Feb 2018 by Antonio Petricca
Win32, compiler independent, and extensible passive debugger
9 Jan 2018 by fheyn
hi, I want to bind a datagridview to datatable. three of the columns should display a combobox. I havn't found how to change column type form textboxcolum to comboboxcolumn google hasn't helped me. searching datagridview and comboboxcolumn brings a lot of answers but none covers my problem. ...
9 Jan 2018 by Maciej Los
Please, read this: How to: Bind Objects to Windows Forms DataGridView Controls | Microsoft Docs[^] Conclusion: you can't use DataGridViewComboBoxColumn with DataTable as a DataSource of DataGridView. Take a look at below piece of code: public Form1() { ...
5 Jan 2018 by RickZeeland
First you will need to configure SQL Server to use TCP connections (default port 1433), see instructions here: Configure a Server to Listen on a Specific TCP Port | Microsoft Docs[^] Here is an article to get you started: Beginners guide to accessing SQL Server through C#[^] You also might...
5 Jan 2018 by Member 12870092
Hello. I have created a Quiz windows application on VS2008 which runs mainly with the help of sql database. How do I install it on a lan . How to make connection between server and client machine to transfer and access database between server and client. Please give me suggestion on it. Thank...
5 Jan 2018 by OriginalGriff
Assuming you have SQL Server or MySql installed on the LAN, and your database has been added to the server, it should be just a case of providing your software with the correct connection string to access the Server, just as you had to when you were developing the app on your development...
27 Dec 2017 by Itz.Irshad
Hi All,How we can copy one or more than one rows from a data grid view to other data grid view on same form. Here, I've searching option which search from the first grid and if found some matching rows then copy them to 2nd grid. How I can achieve this ?Thanks
15 Dec 2017 by trident99
The HPC Template Library is a supplement to the Standard Template Library providing threadsafe containers.
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...
24 Oct 2017 by vishal_h
I want to provide save file dialog box to save wav file. It perfectly works with text file, but what do I have to do for .wav file?My code is:Stream myStream;SaveFileDialog saveFileDialog1 = new SaveFileDialog();saveFileDialog1.Filter = "wav (*.wav)|*.wav|All files...
16 Oct 2017 by amit_upadhyay
the free microsoft word plugin is driving me nuts. Iam trying to fill html forms through vb.net using web browser control and GetElementById method.On blogger home page when i try to login, i have to fill user name, passowrd and then click on submit button. When viewing the HTML source of...
8 Oct 2017 by _Flaviu
A memory CTreeCtrl like object, but resident in memory only
1 Oct 2017 by Jecho Jekov
Provides a solution for localization of WPF application both in XAML and in code-behind
21 Sep 2017 by Prathap Gangireddy
0 down vote favorite I'm trying to export the crystal report to Excel with HEADERS. When i use ExportFormatType.ExcelRecord we only get Data but not the headers(here we get .xls format). I know that ExportFormatType.Excel option will export with Headers but its in .CSV format with blanks and...
21 Sep 2017 by eddieangel
Try this solution (From MSDN) // Declare variables and get the export options. ExportOptions exportOpts = new ExportOptions(); ExcelFormatOptions excelFormatOpts = new ExcelFormatOptions (); DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions(); exportOpts =...
30 Aug 2017 by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.
28 Aug 2017 by Kasic Slobodan
Easily assign your extension to your application and set an icon.
22 Aug 2017 by The Manster
Hi, I am working in VS 2008. I have a data grid view that have a column displaying numbers with decimals. A second column name Decimals. I need to set the first column's number decimals based on what is in the Decimals column. Example Number is 10.00000 and Decimals is 3. Now the Number column...
22 Aug 2017 by Suvendu Shekhar Giri
Try following - DataGridView1.Columns(2).DefaultCellStyle.Format = "N3" Replace the column no. with actual column index. More details here- How to format Datagridview columns to numeric.?? Column.Defaultcellstyle.format does not work[^] Hope, it helps :)
22 Aug 2017 by gggustafson
This article revises the HTML authoring tool, HTML TOC Generator, that generates a Table of Contents for an HTML document. Optionally, the tool will number the HTML headers.
18 Aug 2017 by Member 4605890
I'm reading data from GPS device which is connected to COM port. However after opening the port CPU usage stays constantly 4-5% or even more, even when I'm not processing the data at all! Here's the code: Using comPort As New SerialPort comPort.PortName = "COM3" ...
18 Aug 2017 by Member 4605890
Problem solved. The real problem was the GPS device that was sending lots of unnecessary data to my PC. By disabling them with NMEA commands I was able to cut down the CPU usage down to 0-1%. Also I started using the DataReceived - event as in the examples linked by Jochen Arndt. Thanks for the tip!
17 Aug 2017 by Jochen Arndt
You have to use an event based receive function which is executed in it's own thread. That will only run (use the CPU) when new data are available. You may search the web for something like "vb.net serialport tutorial". Some links: Serial Port Communication In VB.Net - VB.NET Tutorials |...
2 Aug 2017 by gggustafson
This article discusses an implementation of a scrolling TextBox and a UI that supports key and mouse events.
22 Jun 2017 by gggustafson
This article presents an OpenFileDialog for the Web
19 Jun 2017 by Occam's Razor
Ever wonder how programs like Nero work? They make their own SCSI libraries... like this!
14 May 2017 by Sergey Alexandrovich Kryukov
An example the application of Enumeration class, third article of the series
11 May 2017 by Member 8275438
I had the same issue with Windows 10/Vs 2008/WMO 6.5: First, I installed VS2008 SP1. (didn't helped much... I had then a "Device not ready" error instead of "RPC server...") Then, I uninstalled WMDC and WMDC driver update and it worked. (apparently VS doesn't need them to debug an app) I need...
10 May 2017 by Raghavendra Hosad
2D DFT for Color Image - GUI implementation
3 May 2017 by dmihailescu
A Visual Studio add-in that inserts some commonly known OO patterns into your working project and searches your highlights online.
1 May 2017 by mahendra pal25
have you installed crystal report viewer to destination machine
20 Apr 2017 by Member 7909353
I want to know conversion from bmp to char *arr[] using c++bitmap_type pBmp(new ClSimpleBitmap); std::auto_ptr pFileName(LoadFile(TRUE ,_T("BMP files (*.bmp)|*.bmp|PNG files (*.png)|*.png|WSQ files...
20 Apr 2017 by KarstenK
The access to the char* or better to the byte data of your bitmap is only the first part. You must correctly interpret the BITMAPINFOHEADER to decode the data for further processing. Please read the Microsoft documentation to understand the data structure and its information. For fetching the...
17 Apr 2017 by Bryian Tan
An article on SQL Injection and Cross-Site Scripting with sample code in C#.
17 Apr 2017 by Sergey Alexandrovich Kryukov
The Editor attribute applied to an enumeration type makes it editable in PropertyGrid. This is enough to make the Visual Studio Designer use the editor, without a need to write a Visual Studio add-on.
14 Apr 2017 by Sergey Alexandrovich Kryukov
Filling one of the ugliest WPF gaps: Animatable EllipticalArcGeometry and EllipticalArcShape