Alright, I am pretty new to programming but I do know that 0-0 == 0. Can anyone explain Why I get this error? I have searched high and low and cannot explain this. Every implementation of slicing that I've seen is done like this (except for using bui
Using Microsoft Visual Studio 2017's built in test with Moq. I have a simple class that creates some content, then sends the content to a notification system. I need to test if the notification system was called, but that the call included some text.
I have a Class where there a 2 variables int ID and string name. I made a list of several objects and loaded them onto a listbox. The listbox only show the name. Is there a way to retrieve the ID from the listbox? class Show { private int _Id; privat
In my program I have a treeview and a folderbrowser and a datagridview. The user uses the folder browser to choose a folder which contains bunch of shows which all have different seasons. My program displays the folders for the shows and the season f
New versions of Visual Studio Team Explorer has built in support for Git. I want to know if there is an option to view the Git commands executed while using the Team explorer for Git actions like Commit and Push. Also would be better to have an optio
I need to select and Get a single unique value from a table where the key has duplicate entries. For instance there is a Transaction ID(Id) and an AccountNumber(AccountNumber) and for each account number there are many entries but I have to get only
I have an error where everytime I open Visual Studio, I get the following error: TF205020: Could not connect to server 'tfs.server.com\collectionname'. This server was used in your last session, but it might be offline or unreachable. Confirm that th
I have a console application written in C/C++. Usually it takes, 5-10 minutes to get compiled on non-windows platforms even though optimization flag is set to -o3. But it takes approximate 1-2 hours to get compiled on Windows platform when optimizati
I am proxying a method call in using a naked function and inline assembler. __declspec(naked) void ProxyFunction() { static const unsigned int addressofRealFunction = 0x0041b200; __asm { jmp [addressofRealFunction]; } } How can I translate this to x6
I don't even know if I can do what I'm attempting but I've imported forms from several projects and added references to those projects. Each project has a different set of connection strings and I'm trying to get them to coexist in App.config where I
I`m using VS 2013 ULTIMATE but project is created in 2010 version because I have got old Sharepoint 2010. When I create new project I have got problem with 'InitializeControl'. Do you know how can I fix problem with 'InitializeControl'? Warning 1 The
Please help me understand: I have a Visual Studio project. It has Nuget package manager enabled. I install several libraries. The library versions are shown in packages.config. Each library has a corresponding entry in References. Now, say I want to
Question says it all. I'm trying to write a Visual Studio addin (2012), and the experimental instance always launches without running anything in the addin. No breakpoints are hit in the main instance, nor does the addin get loaded by the experimenta
I am creating a program that takes an email and converts it into json. In the interest of learning functional languages I thought it would be a good opportunity to learn F#. So first off I want a message class that can then easily be serialized into
I downloaded and installed TypeScript extension for VS 2012, I got my first sample compiles by manually dragging the ts file onto the tsc.exe file! because no other way to compile the file will work. I don't want to manually do this everytime I want
Eclipse can automatically create (or suggest) variable names. For instance if I have a class named MyClass and i want to create an object from it, MyClass myClass = new MyClass(); In Eclipse after class name (MyClass) i hit ctrl+space key and Eclipse
I want to mark certain controls on my Windows Form with Attributes. So I added the Attribute in my TestAttributes.Designer.cs: [AmbientValue(true)] private System.Windows.Forms.Label label1; But whenever I change the Modifiers-property of label1 usin
Everytime i build my C++ project, visual studio keeps exe file open for about 2 mins. I dont even run the exe file just build it. 2 mins i m forced to wait to build it again. Exe handle is owned by SYSTEM process. Because of that i cant delete, move,
I have a piece of code in C# that's essentially like the following... WriteFile(); try { RunTest(); } finally { DeleteFile(); } Now this has been planned so that even on failure, it cleans up the files it left behind. This works when not run in debug
I need to get the position of the mouse on click in a form, and save the x and y coordinates. I made this simple function: public void kokot (MouseEventArgs e) { x = e.X; y = e.Y; this.Invalidate(); } How can I call it? When I try kokot() it doesn't
I have a image for a button. I've used flat button for the image. By default in standard button when you click or hold the mouse over the button the background image of the windows button changes. But I want to change the background image in mouse ho
When I select the "Debug" configuration, the DEBUG constant is active. When I select the "Release" configuration, the DEBUG constant is inactive. How can I create my own configurations so that they include my own defined constants. Bas
I have created a user control in a .dll. I have a reference to that .dll in my project in visual studio. How can I get the control to display in my toolbox pane?You should right-click the Toolbox area, click on "Choose Items", in the ".Net
I am in the process of learning C#. I downloaded and installed Visual Studio 2010 Express with C#. The problem is it has all these templates that are a little overwhelming at the moment: ASP.NET website, Library, WCF, etc. I just want to code somethi
I am trying to add a database to the App_Data location in an ASP.NET MVC 2 application in Visual Studio 2008 (VS). I have SQL Server 2005 Developer Edition installed on the local machine. However when adding the database VS complains that SQL Server
I know that it's possible to create MSI installers in Visual Studio using a setup project, but what would be the best way to automatically create a setup file (or packaged file of any kind) for both Windows and Linux? I like the MSI installer on Wind
When i open a form in visual studio 2005 (c#) the designer automaticaly resize the form and move/resize controls without touching the designer at all. The source file is changed and when i close the designer i'm asked to save the *.cs file. I tried t
I want to set a break point and wants it to be triggered when a piece memory (begin address and length are known) are changed. I am working on Windows Server 2003 x64 platform. Either solution in Windbg or solution in Visual Studio are fine. My purpo
I have switched to Vista recently and I wanted to keep UAC turned on, as I agree it increases computer security a lot. Some developer tools I use regularly require running elevated: PIX for Windows Visual Studio 2005 (elevated privileges seem to be n
When debugging in Visual Studio, sometimes I add a breakpoint but it's hollow and VS says "The breakpoint will not currently be hit. The source code is different from the original version." Obviously this prevents me from being able to debug. Wh