Click here to Skip to main content
15,887,214 members
Everything / Visual Studio

Visual Studio

Visual-Studio

Great Reads

by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Martin Mitáš
How to support scrolling within your controls.
by Hans Dietrich
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.
by Hans Dietrich
XQueue implements a shared-memory first-in first-out (FIFO) queue, based on memory-mapped files, that works on all versions of Windows.

Latest Articles

by Shao Voon Wong
A new C++ SAX library to simplify parsing
by Shao Voon Wong
Tutorial on a cross-platform C++ XML DOM library
by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
by PJ Arends
How to use a .props file for your custom user settings across all your projects

All Articles

Sort by Updated

Visual Studio 

20 Aug 2009 by "Fish" (David B. Trout)
A command-line tool to run multiple programs in parallel (i.e. concurrently, as a group).
19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
16 Apr 2001 by #realJSOP
Technique for utilizing a CResizablePage in a CFormView-derived class
6 Jun 2001 by #realJSOP
Extension of Paolo Messina's CResizableDialog concept
14 Mar 2002 by #realJSOP
Parse strings with specified delimiter and specified quote character
7 May 2001 by #realJSOP
Track a mouse click, even in a scrolled view
12 Dec 2001 by #realJSOP
A small function to either accept or create a UUID* and return a CString
15 Apr 2008 by #realJSOP
Helps with copying a device independant bitmap to the clipboard.
8 Dec 2002 by #realJSOP
Some dialogbox code to give the Blonde a clue
9 Dec 2002 by #realJSOP
One technique for performing a binary insertion sort on a std::list
22 Dec 2003 by #realJSOP
Add a scrollbar to a property page when the SIP is displayed.
13 May 2005 by #realJSOP
Create blinking cells for Chris Maunder's grid control.
9 Aug 2005 by #realJSOP
Enumerate all controls in a dialog box or form view.
28 Jul 2006 by #realJSOP
Copy a bitmap over a portion of another bitmap
3 Aug 2006 by #realJSOP
A passable workaround for the COleDateTime formatting behavior in MFC8.
17 Nov 2006 by #realJSOP
A technique for making stdio functions compile clean regardless of the Microsoft compiler used
29 Nov 2006 by #realJSOP
Here's some code that will automatically start your app on a secondary monitor if it's compiled with debug info.
30 Nov 2006 by #realJSOP
Two methods to retrieve the path/name of a VS2002 or higher DLL from within that DLL.
4 Dec 2006 by #realJSOP
Compare floating point numbers for equality at programmer-specified precision.
27 Jan 2007 by #realJSOP
Implement XML application profiles that are similar (but not too similar) to using INI files
15 Apr 2008 by #realJSOP
The right way to code using CodeProject for occasional support
15 Apr 2008 by #realJSOP
The right way to code using CodeProject for occasional support
27 Jan 2007 by #realJSOP
The right way to code using CodeProject for occasional support
15 Apr 2008 by #realJSOP
The right way to code using CodeProject for occasional support
12 Jan 2010 by #realJSOP
The right way to code using CodeProject for occasional support
26 Jan 2007 by #realJSOP
Add menu items to, and learn how to handle the system menu
21 Dec 2008 by #realJSOP
Parse a string with quoted elements, insert/add/delete elements, and is CLS compliant
13 Jan 2010 by #realJSOP
It's been a long time sice I've done C++, but the very first error the compiler generates should be your first clue. Your class CoSensorServer is somehow an abstract class and you can't instantiate an abstract class. You *must* derive a new class from it and supply the required pure virtual...
23 Jan 2010 by #realJSOP
If you're talking about merging dll files and exe files into one executable, google "ilmerge", and you'll be off and running/. It can also merge app.config files.
29 Jan 2010 by #realJSOP
Since you didn't specify the language, you get C# from me.Create a List, add the strings to it, and use the List.Sort() method.
1 Feb 2010 by #realJSOP
You could add namespaces to avoid the function name collisions.Of course, If you KNOW there will collisions, why don't you name them something like "MATLAB_xxxx"? This way, the compiler will simply not link them if they're not used.You could also put the functions into a lib, and simply...
13 Feb 2010 by #realJSOP
It's been a few years since I had to deal with C++, but I suspect it means that you have to do a clean/rebuild of your solution. You probably have a lib file being linked in from the old compiler.
22 Feb 2010 by #realJSOP
Maybe this will help:Globalization, Internationalization (I18N), and Localization using C# and .NET 2.0[^]If not, google this: c# localization with resource files
21 May 2010 by #realJSOP
Control resizing is a bit more mysterious than it might appear at first glance.
7 Apr 2010 by #realJSOP
Wow. Google has the answer. Imagine that. I found this on another web site:-----------------I think you want the Phone API:http://msdn.microsoft.com/en-us/library/bb416387.aspx[^]Specifically, there are calls to PhoneOpenCallLog, PhoneSeekCallLog, etc.
20 Apr 2010 by #realJSOP
Techically, you can't draw sphere. You can draw a circle and simulate a3-D look with clever use of shadows and gradients.
23 Apr 2010 by #realJSOP
You need to *spend money* on an obfuscation tool. DO NOT rely on the obfuscator that comes with Visual Studio, as it is merely a half-assed version of the full retail product ($1000+).There are several cheaper and better obfuscation tools on the market.Google is your friend.
30 Apr 2010 by #realJSOP
You're not holding your head at the right angle.
10 May 2010 by #realJSOP
Have you contacted the DevExpress folks? It's their library...
23 May 2010 by #realJSOP
Google is your friend. When I google the phrase "c# winforms buttons with different shapes", this was the first of 26,000 hits.http://www.dotnettutorials.com/tutorials/graphics/winforms-drawing-cs.aspx[^]
23 May 2010 by #realJSOP
Adding a sh*t-load of question marks at the end of a statement doesn't make it a question.
26 May 2010 by #realJSOP
We can't help you if you don't tell us more than "it's not working".WHAT isn't working? Did you try running the code under the debugger?
29 May 2010 by #realJSOP
In the IDE, click File | New | Project, and under Visual C++/MFC, select "MFC ActiveX Control"
9 Jun 2010 by #realJSOP
I wrote an article about that:Get Your DLL's Path/Name[^]
17 Jun 2010 by #realJSOP
You have more control over what's happening with method #2. That's the one I would choose. However, don't forget to add the requisite try/catch/finally block to handle any exceptions that might occur.
21 Jun 2010 by #realJSOP
Why don't you just start a new appropriate Visual Studio project, and move the code into it?
26 Jun 2010 by #realJSOP
Did you make sure the server has the correct mime types specified?
27 Jun 2010 by #realJSOP
I know there are limitations involved with using "Express", but I don't know what all of them are. You can get VS2008 Standard for $279 on Amazon. I know for a fact that you don't need to spend the money on Pro to get the features you need.
12 Jul 2010 by #realJSOP
Write some code that controls a camera and that can measure the distance between the ridges on checkers (from the game).
13 Jul 2010 by #realJSOP
Do you even know what "client-server" means?
27 Jul 2010 by #realJSOP
The "quick" answer is "manually". Create a new project (either dialog based, sdi, or mdi), and manually move your code to it. Believe me when I say this will be the easiest approach.
28 Jul 2010 by #realJSOP
Well, you misspelled the variable name for one thing. In the event handler, you use m_CheckBox, but you're trying to retrieve the control's staete using m_Check_Box.
18 Aug 2010 by #realJSOP
I suspect you wrote a .Net program (although you didn't specify). You MUST have .Net 0) Already on the machine, or1) Installeable from your own app's installer.That's the only way to get .Net apps to run.
19 Aug 2010 by #realJSOP
Can't you set a pre-build step for everything (to unregister the com objects), compile everything, and then a post-build step that re-registers the com objects?
23 Aug 2010 by #realJSOP
Vista doesn't allow you to make changes to any folder in the Program Files folder. You have to use one of the special folders for Vista and later.Google this and pick your poison from the returned results set:"C++ vista special folders"EDIT -------You can make your setup program...
24 Aug 2010 by #realJSOP
When you're working on an existing file, you should format your code to match the formatting of the existing code. If you are creating a new file (and if corporate code stayle guidelines permit it), then you can use your own style.I rarely use compiler definitions, and if I do, it's only one...
1 Sep 2010 by #realJSOP
In Visual Studio, add an setup project to your solution. If you use the setup wizard, it will ask you if want to include the runtime with your installer, or download it from the web.
14 Sep 2010 by #realJSOP
The letters are already in a collection (what do you think a string is?)
14 Sep 2010 by #realJSOP
These aren't extra programs - they're part of Visual Studio, and they open when you run your program under the debugger. Just close them when they come up, and Visual Studio should remember that you don't want to see them the next time you run under the debugger.Learn how your tools work.
20 Sep 2010 by #realJSOP
First, no, you can't. It's a plugin for Visual Studio. Second, if you have a question for the article's author, post it in the articles forum area, NOT in Questions/Answers.
5 Oct 2010 by #realJSOP
Ever heard of google? when you search for the phrase "C# click drag images", you get almost 470 THOUSAND results, and the very first one in the list is an article right here on CodeProject:Drag and Drop Image in C#.NET[^]
13 Oct 2010 by #realJSOP
All you have to do is google it (I would try "Expression Blend 4 trial" first). I mean seriously, are you so inept that you can't google that yourself? That's what we would have to do.Also, considering VS2010 was released well after Windows 7, wouldn't logic dictate that it would actually...
26 Oct 2010 by #realJSOP
Take a class. Buy books. Learn how to type "google.com" BEFORE learning to type "codeproject.com".
11 Nov 2010 by #realJSOP
0) What version of Visual Studio?1) You could always google the error, with a phrase like so:"visual studio xxxx" + "aspx" + "Microsoft Visual studio has encountered a problem and needs to close. "
23 Nov 2010 by #realJSOP
Not even the 1st line in the app.xaml.cs constructor?EDIT ===============Ensure that silverlight, its tiools, and the sdk are installed correctly.BTW, you didn't say what version of silverlight you're coding for.
1 Dec 2010 by #realJSOP
Are you even remotely self-aware? Do you need constant instructions regarding simple mechanical skills like breathing?Visual Studio is a development tool. Silverlight is a platform for wich applications are created - USING VISUAL STUDIO.
7 Dec 2010 by #realJSOP
Macros are compile-time features, not runtime features.One way to accomplish this would be to include one or more DLLs in your project that turn one various features, and then base those features' availablity on the presence or absence of the DLLs. Of course, there are many other ways,...
13 Nov 2011 by #realJSOP
New and improved! Keep an eye on your CodeProject articles and reputation without having to log onto CP.
13 Dec 2010 by #realJSOP
It's new. It's "better". It's Visual Studio. Complaining about it here isn't going to do you any good. Even complaining about it on Microsoft's site isn't going to do you any good. The product is guaranteed to slog on any machine, regardless of how much memory you have or how many cores your CP...
21 Dec 2010 by #realJSOP
If you want to do something with objects in your code from Program.cs, the best way is to create a static class and instantiate/initiate those objects in the static class. Static classes are created when the program starts (and before your main form is instantiated).At that point you should...
24 Dec 2010 by #realJSOP
Don't know if this will show it (or what version of Visual Studio you're using), but this is for VS2010:http://weblogs.asp.net/scottgu/archive/2010/07/29/visual-studio-2010-keyboard-shortcuts.aspx[^]
31 Dec 2010 by #realJSOP
The MSDATL3.DLL file is associated with the data access components. Did you install/uninstall something recently?
1 Jan 2011 by #realJSOP
Put this code intot he form's constructor AFTER the call to InitializeComponent():string hostName = Dns.GetHostName();textBox.Text = "PC HostName";
1 Jan 2011 by #realJSOP
A google search for ".Net custom forms in setup project" revealed this link. It may or may not help. You should get about 308,000 hits if you google search the same phrase.http://www.c-sharpcorner.com/UploadFile/mgold/CustomInstallMG11102005235312PM/CustomInstallMG.aspx[^]
7 Jan 2011 by #realJSOP
Try google ("crystal reports load report failed"). You'll get 56 THOUSAND hits. Surely, one of them will give you a solution. We can't because we don't know the exact nature of your code - only you know that.EDIT ===========Why did you 1-vote this? Because I didn't have a precise...
7 Jan 2011 by #realJSOP
label.Text = sprintf("I'm showing the number %d because I want to.", Number);
12 Jan 2011 by #realJSOP
That's because Click-Once deployment is a web-based deployment strategy.http://msdn.microsoft.com/en-us/library/t71a733d(v=vs.80).aspx[^]
13 Jan 2011 by #realJSOP
My advice is to buy Acronis TrueImage Home, and do let that perform your nightly backups. It's relatively inexpensive at $50, and you can just set it and forget it. It'll perform any kind of backup you might require, and save your hundreds of hours of time trying to figure out how to make your...
14 Jan 2011 by #realJSOP
Everything up to VS2008 was probably unmanaged code, but VS2010 is C#/WPF.
19 Jan 2011 by #realJSOP
Here's a handy guide:http://www.akadia.com/services/dotnet_inherited_forms.html[^]
18 Jan 2011 by #realJSOP
You could just store GMT, and let the client app adapt it to local time.
21 Jan 2011 by #realJSOP
Didn't you post this yesterday?Make sure your .Net versions are up to date and that you're not trying to mix 32-bit and 64 bit assemblies in your application.
25 Jan 2011 by #realJSOP
You didn't mention the platform (unmanaged C++ or .Net)For .Net, set the TopIndex property.http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.aspx[^]For C++/MFC, it's listBox.SetTopIndex().http://msdn.microsoft.com/en-us/library/k8cseaky(v=vs.80).aspx[^]
19 Jan 2011 by #realJSOP
Convert it something like this:DateTime fromDB = new DateTime(1,1,2011,12,0,0);fromDB.Kind = DateTimeKind.Utc;DateTime converted = fromDB.DateToLocalTime();
26 Jan 2011 by #realJSOP
I heard recently that it's written in Java, using the Eclipse IDE.
28 Jan 2011 by #realJSOP
You can try it with these shell commands:netsh interface set interface "Network Adapter name" DISABLED netsh interface set interface "Network Adapter name" ENABLED Of course, I can't guarantee it will work.Here's a link describing different tings you can do through...
8 Feb 2011 by #realJSOP
You might try deleting and then re-adding the DLL references to your GUI project.
9 Feb 2011 by #realJSOP
Try this (no guarantees):public class MyParentForm:Form{ private Command_Form Command_Form1 = null; private void commToolStripMenuItem_Click(object sender, EventArgs e) { Command_Form1 = new Command_Form(); Command_Form1.Disposed += new...
11 Feb 2011 by #realJSOP
We could recommend a thousand books, and none of them would be sufficient.The ONLY way to gain the knowledge you seek is to sit down, start writing code, and make mistakes along the way. It's called "experience", and books simply can't teach that.The best thing to do is to pick a...
18 Feb 2011 by #realJSOP
You can also use linq:public int CharCount(char character, string myString){ int count = (from c in myString where c == character select c).Count(); return count;}And call it like this:int spaceCount = CharCount(' ', "123...
18 Feb 2011 by #realJSOP
You can also do it this way if you don't like (or can't use) LINQ:public int CharCount(char character, string myString){ int count = 0; int pos = 0; do { pos = myString.IndexOf(character, pos); if (pos >= 0) { count++; ...
28 Feb 2011 by #realJSOP
This article may help:Share User Settings Between Applications[^]
2 Mar 2011 by #realJSOP
Have you looked on Codeplex for code that does it? BTW, VS2010's UI was done with WPF. It should be fairly simple to duplicate the functionality.
10 Mar 2011 by #realJSOP
Is this for a XAML in a WPF project? If so, it's a known issue, and may have been fixed in SP1. However it is not advisable to install SP1 as they have found a fairly major problem with it. You can google it if you want to find out more.
17 Mar 2011 by #realJSOP
Whay can't you just do this:public void CallFunction(){ if (pClassA) { pClassA->function(); } else { if (pClassB) { pClassB->function(); } }}This way, you always call the CallFunction method, and it...
18 Mar 2011 by #realJSOP
Instead of getting the red circle, I get the hollow circle with an exclamation point icon, and when hovered, it says:This breakpoint will not currently be hit. No symbols have been loaded for this document.I've tried shutting everything down, deleting the bin and obj folders, and even...
22 Mar 2011 by #realJSOP
If you use google, you'll find almost a million references to doing it. Here's a link to some results (searched for "using flash interface in c# app"):http://www.google.com/search?q=using+flash+interface+in+c%23+app&sourceid=ie7&rls=com.microsoft:en-us:IE-SearchBox&ie=&oe=[^]After...
23 Mar 2011 by #realJSOP
Yes. You can create the menu strip in code (put it in a static global class), and then add it to each form (probably in the form's constructor).At that point, all you have to do is add event handlers for the menu items.You can also create a base form class that contains the menustrip,...
27 Mar 2011 by #realJSOP
I'm building a new website and I have to set the build action on a couple of files in the App_Data folder, but when I click the Properties tab, there's no way to set it. (the option just plain isn't there). What's going on, and how do I fix it? BTW, I tried the site as .Net 3.5 and .Net...