Let's say I wanted to create a static text file which ships with each release. I want the file to be updated with the version number of the release (as specified in AssemblyInfo.cs), but I don't want to have to do this manually.
I was hoping I could use a post-build event and feed the version number to a batch file like this:
call foo....
I'd like to handle the Enter button in my TextBox inside ListBox in UserControl (not Form!). There are a lot of answers and samples for the case. The most common is to override ProcessCmdKey() or IsInputKey() in CustomTextBox inherited from TextBox:
public class CustomizedTextBox : System.Windows.Forms.TextBox
{
protected override b...
In Visual Studio 2008, what determines the order in which projects appear within a solution folder? It's not alphabetical order, nor is it build order.
I cannot find any way of altering the order in which projects are being listed. I've tried removing my .suo file, as well as moving things about in the .sln file. Neither had any effect....
Hi,
I wonder if there is some way to know full paths to the dll's that are listed in .csproj file.
The most interesting for me is to resolve paths to default dll's like System.Xml.dll, System.Data.dll and etc.
In the .csproj file there are only lines with short names:
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3....
When I deploy my app on other machines, this error comes up:
Now if I uninstall my app and re-install it, the error message does not come up. Has anyone else encountered this? I cant make sense of the stack trace either.
...
I suspect some ASSERTION code is having side effects. I'd like to switch off ASSERT without making any other changes to how my code is compiled. I'm using MSVS2008. Switching from debug to release won't do as that will alter how memory is initialised.
...
I'm trying to use a pre-build event in Visual Studio (VS 2005 to be specific) to run a Python script which will automatically generate a .cpp file. The trouble I'm running into is that the compiler doesn't seem to know that this file is dirty and needs to be rebuilt until after the build has finished, which means that I need to build th...
I need to install a USB driver with an application, and I'm using a Visual Studio 2005 Setup Project to create the installer.
The driver only needs to be installed sufficient enough so that when the USB device is plugged in, Windows will go off doing it's "installing device" routine and do the rest of the job. It would be okay also to h...
where can i find all of the Command Names for a Rad Grid
examples
UpdateEdited
CancelAll
InitInsert
PerformInsert
DeleteSelected
RebindGrid
...
This may sound like a heresy :), but I mostly program in fortran (intel 10) and have actually no need for Visual Studio Debugger. Or at least, never have gotten used to it.
So to put it shortly, where does one turn it off ? Is it even possible ?
...
A library can be used in an application in two ways:
Statically-linked
Dynamically-linked
But how to do that using both Visual Studio (windows) & GCC?
I know libraries are distributed only in these 4 ways:
Source
header-only libraries
*.lib files for windows. *.a for linux
*.dll (windows) & *.so (linux).
Source distribution is j...
I am using a .NET PropertyGrid control in my C# project.
When the form containing the grid loads, the horizontal splitter (which divides the Settings from the Description) is at a default position. How do I change the position of that splitter programmatically in C#?
...
Does anyone know what my progress bar looks different in the Visual Studio designer than it does when i build and run my project?
In the designer i see the newer style. Progress is indicated with a solid green line with smoothed edges.
When I run my project the progress bar looks like the old style one. It has ten separate divisions t...
I was working on an ASP.NET MVC template today, and after staring at all those fluorescent yellow % tags for long enough, I basically decided I had had enough, so I painstakingly modified my ascx file to look like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<% if (Model == null)
{ ...
I have a some questions about local and service-based databases: Does using a service-based database require the user to have SQL Server installed? If so, is there ANY way around it? Does a local database require the user to have SQL Server installed? What is the difference between a local database and a service-based database. (I am tal...
I've created a UserControl called CatalogBrowser which has a property ListedFamilies that exposes the currently listed Family objects in the control. Here's the code for the property.
public List<Family> ListedFamilies
{
get
{
List<Family> returnList = new List<Family>();
foreach (Object obj i...
How can I write a Visual Studio WebAii Test that waits for a jQuery animate operation to complete before continuing?
Currently I'm just pausing for 5 seconds using a loop, but this is prone to breaking easily if the animation time changes.
I've tried some wait methods in the WebAii API but none of them seem to wait for that kind of thi...
Hi. Im working on an assignment for one of my classes. Simply I have a GumballMachine class and a bunch of State classes that change the state of the GumballMachine.
Here is the offending code:
class GumballMachine;
class State {
public:
virtual void insertQuarter() const = 0;
virtual void ejectQuarter() const = 0;
virtual void tur...
I'm learning C, and I want to use the Windows Forms tools in Visual C++, so I can do Rapid Application Development with C. I've tried changing the compiler mode to C, but then, I can't use the RAD tools in VC++, it seems.
...
Hello,
I've downloaded source of an opensource C++ project. It is a Linux project. As Visual Studio is my favorite IDE I want to use it to browse & study the code. I created an empty C++ project and now want to add the source code to Solution explorer.
How can I add the directory structure to "Solution Explorer". Dropping the root fol...