visual-studio-2008

visual studio grid snap to edge spacing

I'm designing a form in VS2008 and I want to snap controls to the left and right edges of the form but with more space than it gets now. I tried changing the gridsize but that doesn't do it. The form is for the compact framework so i'm designing for a smartphone I don't know if that makes a difference. I guess it ought to be the same...

C# .net 4 charting development in Visual Studio 2008

Hi, A previous user of my old computer had managed to develop charting controls in a c# project using Visual Studio 2008. Now, the computer has been replaced and I can no longer do this. I have read that .net 4 is incompatible with VS2008 - but then I know that the charting was working before. Does anyone have any ideas how this prob...

How to make C# write English (non-localized) number format by default?

I'm using English Visual Studio 2008 on English Windows 7, but I'm based in the Netherlands. A lot of my programs need to read and write floating point numbers. Compared to English, the Dutch notation of numbers switches the meaning of dots and comma's (i.e. 1.001 in Dutch is a thousand and one, and 1,001 is 1 + 1/1000). I will never eve...

Add a project to a VS2008 solution, without the project going into Perforce

I know this is possible because one of my older solution files has a mix of some projects under source control and some not. However I can't seem to reproduce that configuration with a newer solution. Every time I add a project to the solution it acquires a yellow cross and under Pending Checkins the project is listed as a Newly added f...

C# unit testing number precision questions

I am testing basic math functions that'll return its mean/variance/standard deviation. The problem I am facing is that I cannot get the precision of "expected value" to math what is returned by the function. For example, if the variance function returns 50.5555555555566, even if I set the expected value explicitly to 50.5555555555566, it...

Visual Studio clean solution doesn't delete all dlls / project reference getting moved

I have a VS 2008 C# web app with a bunch of project references to custom dlls. These are all at a relative path from the web project. Recently I've noticed that Clean Solution removes some, but not all, of the dlls from the web app's bin\debug folder. For example: <Reference Include="TowerCo.Utilities, Version=1.0.0.0, Culture=neutr...

Auto code reformat in an aspx page VS 2008

I've never seent this before: I have an aspx page that reformats the code lines (changes the indentation, line breaks, etc) in between the opening and closing tabs tag. I'm using the AJAX tabs control. No other page does this in this app and it is only the code between the and tags. If I reformat it, whether I use tabs or spaces, IDE...

Error 101 (net::ERR_CONNECTION_RESET) When running asp.net page in Visual Studio 2008

Well i have problems running any project in visual studio, even if it's a new website i get this error. If i see the website in internet explorer and localhost/project it work's but i can't debug in visual studio Any ideas? thx ...

AJAX autocomplete or autosuggest

I am trying to incorporate an ajax autocomplete/autosuggest control into my website and am coming across all kids of issues. I tried the ajaxcontroltoolkit but ran into a deadend there. I would prefer not to get into jquery being I'm feeling overwhelmed enough as it is. I found this one http://www.codeproject.com/KB/custom-controls/Au...

downgrade .csproj from 2010 to 2008

I've been working on a program in Visual Studio 2010. I'm still having compatibility issues I've mentioned here before. Is there a way to downgrade my C# project so that I can open it with Visual Studio 2008 (without copying the code over and recreating the form)? For those who'd like to know, the problem I'm having is some sort of unh...

Getting app to appear in "Programs" on Pocket PC 5.0 on deployment

I need some help. I've got a trivial app, but I want it available from the main screen menu (or at least on the "Programs" screen. I've got it in "Program Files". It was deployed to the Pocket PC from Visual Studio. Is there any way to do this? Do I need to create a complete "Install" App? If so, do you have any links to tutorials?...

iterating over a list, each item consisting of a struct within a struct, difficulty getting values

Hi, I have a list which contains a number of _MEMORY_BASIC_INFORMATION structs nested within mb structs (defs below). What I am having problems with is getting the info from the nested _MEMORY_BASIC_INFORMATION out. I am using an iterator to traverse the list. From below I know the error is g->mbi; but I don't know how I should refer...

Are Visual Studio 6 typelibs handled differently in Visual Studio 2008 under Vista and 7?

I have written a standard DLL in Visual Studio 6 C++. I have also written a typelib to go with it so that it can be used directly in VB6 rather than via Declare. It works fine in VB6 under Windows XP. What doesn't work is when I take the DLL and the TLB into Vista and Windows7. There the .TLB registers fine with REGTLIB but the only ...

Adding non-advertised shortcuts to Visual Studio deployment project

Hi guys, I would like to create two shortcuts to my application during setup. The application is deployed as a Visual Studio 2008 deployment project. The shortcuts would basically point to the same executable, however I would like one to be advertised (i.e., checking if the installed files are the same as the files packaged by the orig...

howto filter Visual Studio Debug Output

I have a bunch of warnings (over 10000) in my debug output which can be savely ignored: Warning: CFile::GetStatus() returns m_attribute without high-order flags Is it possible to write a filter for this window? ...

Creating addin for studio 2008

Hi all, I'm trying to create a simple c# addin for visual studio. I've been following the guidelines dotted around the net, and it says to put my main code in a routine called 'Exec'. However, I cannot find this routine anywhere. I'm assuming there should be a stub for this. All I have is a connect.cs, with Onconnection, OnDisconnectio...

Unbound Data Repeater Scroll Issue

Hi, I Dragged a DataRepeater into my form. Added a TextBox to the DataRepeaterItem. Added A button to the form. Wrote these 2 Lines of Code : Private Sub Button1_Click(..) Handles Button1.Click DataRepeater1.VirtualMode = True DataRepeater1.AddNew() End Sub Run Project Press Add Button in the textBox Write "1" Press Add Butto...

Need help converting Visual Studio 2008 MSBuild Script to VS2010

I have a simple MSBuild Script that looks like this. ... <Target Name="CompileSolution"> <Exec Command="&quot;$(VS90COMNTOOLS)..\IDE\devenv.exe&quot; ..\MyProject.All.sln /build" /> </Target> ... Now I migrated the propect to Visual Studio 2010 and the command fails. ... <Target Name="CompileSolution"> <Exec Comma...

C++: Datatypes, which to use and when?

I've been told that i should use size_t always when i want 32bit unsigned int, i dont quite understand why, but i think it has something to do with that if someone compiles the program on 16 or 64 bit machines, the unsigned int would become 16 or 64 bit but size_t wont, but why doesnt it? and how can i force the bit sizes to exactly what...

Web.config Transformations in VS2008

Someone had asked me if you can perform config transformations in Visual Studio 2008. I know you can as I do remember several articles on this. However, I can't seem to find any of the links as of now. Can anyone point to an article on Google/Bing/Search of the week and/or provide a quick sample so that I may pass it on? Everything I'm f...