visual-studio

Microsoft Ajax minifier in c#

How to use the Ajax Minifier DLL in my application. And need to compress the script files through C# ...

How do I traverse/iterate through all the objects inside a form in VB.net?

Hi. I have a VB class inside which one of the methods accepts an array of forms. For each form inside the array, I need it to traverse all of the objects, check if they are a specific tyoe (input, label, checkbox, etc.) and get the properties of each object. Then, I want to dump these into a text file in the following format: Form1 ...

Copy & Paste controls in source view of ASPX pages: How to force VS not to touch my IDs?

If I drag a control from the toolbox in Visual Studio (2008+SP1) into an ASPX page I get a proposal for an ID: <asp:Button ID="Button1" runat="server" Text="Button" /> That's nice and helps not to forget to assign an ID. Most of the time I rename the ID like: <asp:Button ID="MySpecialButtonForSpecialTask1" runat="server" Text="Button...

Why won't Visual Studio Tester Edition run my web tests?

I created a new test project with web tests as described in Microsoft's documentation here. However, when I try to run a web test, even if it's just a blank test, I get the following error: Request failed: Could not run Web test 'WebTest1' on agent 'MYCOMPUTER': Method not found: 'Void Microsoft.VisualStudio.TestTools.WebTesting.WebT...

Can I develop a desktop app in VS2008 that can also run on Mac? What approach?

Hi, Can I develop a desktop app in VS2008 that can also run on Mac? What approach? That is, if I am developing an application (thick client) that runs on a Windows XP/Vista PC, is there an approach to do this such that I could also run it on a Mac? (e.g. silverlight?) The kind of things my winforms type app needs includes: HttpWeb...

How do I view Visual Studio BuildLog.htm files without cutting and pasting into an external browser

This may or may not be specific to VS2005 (as that is the version I'm referring to for this question). I find often the case is that I see this in the Output panel inside Visual Studio 2>Build log was saved at "file://c:\\vsdll_example\MyExecRefsDll\Debug\BuildLog.htm" Now, since that looks and smells like a URL, I would have thought...

Visual Studio Web Application edit source while running like in Tomcat\Eclipse\Java

In an ASP.NET Web Site project, I've always been able to make changes to the underlying C# code and simply refresh the page in the browser and my changes would be there instantly. I can do the same thing when working with Java and Eclipse - edit my Java source and refresh the page and my changes are there. I cannot do this in ASP.NET M...

Is there any way to manage resources in WPF through Visual Studio IDE?

Is there any way I can manage resources through the GUI? Or the only way possible is through XAML code? Thanks ...

Hot to get cursor position relative to upper left corner of the control ?

When I clicked on a control, How to get cursor position relative to upper left corner of a (winforms) control ? C#, VS 2005 PS: I'm asking on context of tooltip "show" method which need that coordinates .. ...

When using devenv /command to execute a command or macro can you make the process return an error code or message?

Not going into detail on why I want to do this, I need to execute a macro inside Visual Studio as part of our msbuild script. The macro performs some actions in the IDE and then calls Application.Quit() to close the IDE. Do you know if there is a way to make devenv.exe return some error code or anything really that could let msbuild kno...

What does the MyProject folder contain? Does this need to be added to Source Control

I am adding my code to source control (SVN). I am trying to organize my projects and solutions to fit with the SVN best practise. I obviously don't want to add junk and stuff that changes for every user. What exactly does the MyProject folder contain. This seems to be something that Visual Studio creates and maintains. It seems to contai...

Working with a DEP file in VS2008

OK, I can see when I open it that it's a list of dependencies (for an old COM DLL). But how do I use that information in .NET world? We're working on a VS2008 setup and deploy project to deploy some Winforms software. We're including in the project an old COM DLL (which comes with a .DEP file). The documentation which comes with the D...

Visual Studio: Solution-wide pre-build event?

I have a solution in Visual Studio which contains several projects. I'd like to run a command at the very beginning of every build - no matter which projects are involved and whether or not they are up-to-date. Essentially I need something similar to a solution-wide pre-build event, but unfortunately VS does not appear to support these....

Calling SetWindowsHookEx inside VS2008 debugger always returns NULL

we're working on a .Net application that does a low level keyboard hook. When we call the SetWindowsHookEx running inside the debugger the call always fail. When running from the compiled executable everything works fine. If we attach to the processs the the SetWindowsHookEx has been called everything works too. I've read somewhere (I ...

Placement of interfaces in visual studio solution

What is best practise with regard to the placement of Interface types. Often the quickest and easiest thing to do is place the interface in the same project as the concrete instances of it - however, if I understand things correctly this means that you are more likely to end-up with project dependency issues. Is this a fair assessment o...

C++ MiniDumpWriteDump - FullMemoryDump doesn't give me much information

Hi, I've been using MiniDumpWriteDump to generate dump files on a crash. I've been trying to do a full memory dump. This seems to work, and generates a large file as expected. However when I load this huge file into Visual Studio (2005) I don't seem to be able to see the values of any variables on the heap. In fact it gives me no more ...

Conditional breakpoint in Visual Studio

I want to set breakpoint on certain line in C# code when some other variable is equal to specific value say MyStringVariable == "LKOH" Please suggest. I tried right click on breakpoint icon->Condition then typed MyStringVariable == "LKOH" and Visual Studio is saying cannot evalute. ...

How to pass a Type to a UserControl

I have a UserControl (lets say Foo.ascx) that has a Type public property with the name Bar. I am looking for a way that when i declare this usercontrol in the source view of the markup part to pass a type. for example <%@ Register Src="~/Controls/Foo.ascx" TagPrefix="prfx" TagName="fooCtrl" %> and then use it as <prfx:fooCtrl ID="the...

Is there a better way to keep Stored procedures in sync across databases that is also easy and can be done within Visual Studio?

The code is in sync because I am in charge of that aspect (its just xcopying to the different servers when I need to) The DB people are incharge of keeping the SPs in sync and right now that is asking them to manually do a ALTER PROCEDURE on a specific DB. Is there some easy way to do this in Visusal Studio? Id love to have a DB proj...

Is there a way to prevent Visual Studio 2008 Designer to always redraw window when jumping between code and design window?

I wasn't sure how to write topic correctly but lemme describe what problem I have. On my old laptop when i was jumping between code and big WinForm GUI it took sometimes a lot of time before i could even do things within designer. Today I've changed my laptop to newer one and it still has some delays when "redrawing/rebuilding" winform g...