visual-studio-2008

How do I right-align the 'help' menu item in WPF?

I have the following (simplifed) section in my XAML file: <Menu Width="Auto" Height="20" Background="#FFA9D1F4" DockPanel.Dock="Top"> <MenuItem Header="File"> <MenuItem Header="Exit"/> </MenuItem> <MenuItem Header="Edit"> <MenuItem Header="Cut"/> </MenuItem> <MenuItem Header="Help"> <MenuItem ...

Visual Studio 2k8: specifying custom properties

Hello, I'd like to use custom build properties to drive the build process. Is it possible to specify them using Visual Studio user interface? I'd like to avoid editing the msbuild file every time I need to change the property. Maybe VS2010 has support for that? Thanks, ...

Change panel "visible" property on MasterPage from Child pages

I want to show some panel with a label, both located on a MasterPage, from inside it's child pages.. I already did the coding on the MasterPage: public class MyMaster : MasterPage { public void ShowPanel(string pMessage) { labelInside.Text = pMessage; myPanel.visible = true; } } Then I make the calls...

Find the height of text in a panel

I have panel that I have customized. I use it to display text. But sometimes that text is too long and wraps to the next line. Is there some way I can auto resize the panel to show all the text? I am using C# and Visual Studio 2008 and the compact framework. Here is the code I am wanting to adjust the size for: (Note: HintBox is m...

Visual Studio 2010 - Is it slow for anyone else?

I've read a lot of stuff about VS2010 being much more performant than VS2008. When I've finally installed it, I found that it, in fact, is much slower (save for the Add References dialog). For instance, Silverlight projects take twice as long to load, the startup of the IDE itself is much slower, etc... Am I missing something here or ...

tips about creating VisualStudio LanguageService (for languages similar to java)

I need to create in very short period of time proof of concept for Visual Studio Language Service supporting "Java-like" languages. I would like to ask you about experience with creating VisualStudio LanguageServices or similar addins. Where I should prepare for really hard battle and what is easier to implement than it appears to be ? ...

Trying to compile VS2008 project on Win 64 bit which is custom Powershell PSSnapin

Library Project compiles fine for ANY CPU in VS2008 running on Win 7 64 -bit. Now in the post build following command fails when attemptiong to register library dll: PS C:\Windows\Microsoft.NET\Framework64\v2.0.50727> .\installutil C:\path\Project.dll Exception occurred while initializing the installation: System.BadImageFormatExcep...

saving application

how to save application state and restore it after reboot in .NET 3.5 (c#)? ...

I am working with Visual Studio 2008. Actually there is References folder missing

I am working with Visual Studio 2008. Actually there is References folder missing in its solution explorer. When I create a New web Application it has References folder but when I add new .aspx file it also adds .aspx.designer.cs file with it and its does not show master page option in add dialogue. but in the old web application it show...

VS2008 Express no longer opens projects after VS2010 express Phone

So I installed the new april release of the VS2010 express for windows phone 7 and now VS2008 express C# no longer opens .csproj files. I'm at a loss as to why this is as I've not changed anything in the files themselves. I'm currently uninstalling windows phone 7 in the hopes that I will be able to open my files again. I have a feeling ...

VS 2008 created shortcut doesn't show up in "Send To" menu

I have a WinForms application built using Visual Studio 2008. I added a Setup Project to the solution to create an installation MSI file. I need the setup project to create a shortcut pointing to the application's executable in the users Send To Menu. This way when someone right clicks on a file, my application will show in the Send T...

How do I select a column with the latest "datetime" data type?

How do I select a column with the latest "datetime" data type, in Visual Web Developer 2008, ASP.NET 3.5 ? In the config data source dialog my WHERE options are greater than cookie, control, etc... but I would like to select where the datetime is the latest in the table. (Select row from table where datetime is last updated....) Tha...

How can i cancel language setup?

i setup vs studio with Turkish language package. But i want to uninstall or cancel this property. i need to help . i don't want to see turkish error message. i want to see in english? ...

How can i add column name in list generic?

class MyExcelSheets { public List MyColumnNames { get; set; } } how can i add Excel data's column name in "List MyColumnNames ". it returns to me Object reference not set to an instance of an object. i want to use above class in: myexcelSheet = new MyExcelSheets(); myexcelSheet.MyColumnNames = new...

How to reset IIS (or otherwise clear cache) when restarting a web application?

I'm working on an ASP.NET app that keeps a lot of data cached. This data remains cached when I restart the app, so I have to reset IIS if I want to rerun the code that gets the data, otherwise it's just taken from the cache. Is there a way that I can automate this? ...

How can i trim or remove " , " at the end of my query?

i try to write a query but my query finished with "Control nvarchar(500), ". i want to finish "Control nvarchar(500)" How can remove ",", " "? void SqlTable(List listMyColumnNames, string TableName) { string Text = "Create table ENG_"+TableName+" (ENG_"+TableName+"_ID integer PRIMARY KEY identity(1,1), "; ...

How to not #include <windows.h>

Using MSVC2008, 32bit on 64bit system. I was once advised to never include windows.h as 'its a real monster and will slow down my compile times significantly'. I tried leaving it out and obviously get compile errors. I included windef.h to define all the DWORDs etc, but I quickly come unstuck knowing what else to define to get the code...

difference between visual studio 208 and visual studio 2010

Possible Duplicate: Whats the compelling reason to upgrade to Visual Studio 2010 from VS2008? what is main difference between visual studio 2008 and visual studio 2010? ...

Could not load type from assembly when trying to add a user control with dependencies to toolbox

I implemented a VB.NET user control that integrates features of the Microsoft Enterprise Library 5.0. The DLLs of the EntLib are not registered in the GAC - as suggested by MS. When I try to add my user control DLL to the Visual Studio 2008 ToolBox, I receive an error that basically tells me that it wasn't able to load a type from an ass...

How to set the version number in VB.NET COM Interop DLL?

I'm writing a COM Interop DLL in VB.NET with VS2008. How to set the version number of the DLL generated by VS? ...