visual-studio-2008

Problems seeing the last node in a TreeView

I'm having an issue with the TreeView in Visual Studio 2008. I'm adding the TreeView to my form, loading it with data at runtime, and then the last object in the list ends up being farther down than the scroll bar will go. The only way to see this object is by opening up one of the other nodes and closing it. Does anyone know a way of...

WPF: FixedDocument in Visual Studio 2008 Designer

It's a well-known bug that Visual Studio shows an error when you try to construct a FixedDocument in XAML. For example, the following snippet <DocumentViewer> <FixedDocument> <PageContent> <FixedPage Width="21.0cm" Height="29.7cm"> <TextBlock>Hello World!</TextBlock> </FixedPage> ...

Why can't I see the ToolStripButton as a choice in the StatusStrip Items Collection Editor?

Using Visual Studio 2008 and C# 3 with .NET 3.5 I've added a StatusStrip control to a form and the only controls I can add through the designer are: StatusLabel ProgressBar DropDownButton SplitButton I want to add a ToolStripButton but I can only do so from code in the .designer.cs file. This way I would see it in the designer but I...

Visual Studio 2008: Updating current code with changes made in previous branch

Our TFS is divided to a "work in progress" directory and several branches of older versions. We made some major changes to the previous version and now we want to apply these changes to the current version. Now, the problem is that I don't see how it can be done easily: I can compare the two versions - but it doesn't let me copy the chan...

Referencing shell32 again, C# Visual Studio

Hmmm. Okay after revisiting PInvoke, I'm sure that I don't quite get it :-/ (just asked this question) Let me illustrate the code I need to handle. It works when I use "Add Reference --> COM --> Microsoft Shell Controls and Automatation" ... but sadly it places a reference in my project that looks like this: "C:\Users\Tim\Documents\Visu...

Compile for 64bit or 32bit platforms in visual studio, depending on the host Operating system?

On a project we are working on there is an SQLite.DLL file that we are linking which we need to link the correct version (32 or 64 bit) depending on the host operating system. If we link to the 32 bit version it will not run on a 64 bit system, and vice versa. Thus, how can we create a configuration that will cause the system to build th...

How to prevent Visual Studio 2008 from re- autogenerating "My Project" folder?

I am trying to rid my team's Visual Studio projects of "My Project" folders. None of my team is using custom settings or anything that would need to be stored in the "My Project" folder for any of our projects. I have edited our .vbproj files with a text editor to remove any reference to "My Project", deleted "My Project" from disk, an...

How to create something like firefox's bookmark sidebard in Visual Studio 2008 C++ project?

I have visual studio 2008, and want to build an GUI application that on the left side has a frame that can be minimized like the firefox bookmark sidebar. So my questions are: 1) What type of project do I need? 2) What controls actually make up the sidebar. 3) What do I make the main frame so that I can resize it when the sidebar is op...

Treeview Control - ContextSwitchDeadlock workarounds

Hi, I have built a treeview control that lists the directory structure of any drive or folder. However, if you select a drive, or something with a large structure of folders and sub folders the control takes a long time to load and in some instances shows an MDA ContextSwitchDeadlock message. I have disabled the MDA deadlock error mes...

Upgrading vb6 application to visual studio 2008 with Mysql ODBC driver

I am very "lucky" to get to work with a VB application that was originally written in vb6 with an old version of Mysql ODBC connector. The problem is i can't open the project in my copy of VS2008 because i don't have the needed file MyVbQl.DLL and i can't find it anywhere on the internet and also Mysql ODBC connector versions 3 and 5 do...

File not found system error when entering into a function

While running some code I am getting a unhanded exception for file not found with no file location or file name specified. If I break I can see the function that the error is being reported from. I can reach break points before where that function is called but can't enter into the function with out the exception being thrown. The functi...

Getdate() equivalent for Jet / Access database. Need last month records.

Hello, I was reading other questions posted and found many examples to retrieve last month records. I am using Visual Studio 2008 query builder to retrieve records from an Access mdb and when I enter the following query it is displaying me an error that getdate is not a valid function: where [Transaction Date] between dateadd(...

Xml comments and Entlib validators returns an error.

When I have a property within a class such as: ''' <summary> ''' Customer IP address. ''' </summary> ''' <remarks> ''' Optional parameter. Required if traffic analysis is enabled. ''' tools provided. ''' Format Specification: IPv4 Addresses only. ''' Maximum length: 15 characters. ''' </remarks> <ValidatorComposition(Compos...

Why is there no code completion when using "extern alias" in VS2008 ?

Here is code snippet: extern alias customerRead; extern alias customerEdit; extern alias customerSearch; using readC = customerRead::X.Y.DataAccess; using editC = customerEdit::X.Y.DataAccess; using searchC = customerSearch::X.Y.DataAccess; ... readC.Customer c = new readC.Customer(); c. // NO CODE COMPLETITION I have ...

How to write code in Visual Studio faster?

Whenever I start a new software project I spend a good amount of time at the beginning drawing class diagrams and other flow charts to plan out how I see the application working. This part just takes a lot of thinking and testing. But at a certain point when everything is planed out I don't need to think about it so much anymore I just n...

Menu Format is different in Windows 7 vs Windows XP for a Winforms app

I have a Winforms app that was originally created in vs 2005 and that was converted to vs 2008. When running this app in Windows 7, the menus don't look like the standard menus in Windows 7 (i.e., the formatting for the menu items is different than the formatting for other applications). This applies to menus displayed on the menu bar ...

Visual Studio 2008 - syntax-highlighting and intellisense not working for aspx, js, css

Hello all, I'm having problems with Visual Studio 2008, namely, syntax-highlighting and intellisense for *.aspx, *.js and *.css files (and maybe more) not working. Also, when I go to Tools -> Options... -> Text editor -> HTML -> Format, I see this error message: "An error occurred loading this property page" Everything was working fin...

Pe Editing library?

Anyone know of a good library for editing PE files? I tried PeLib but it is very basic and you pretty much have to do everything anyways. ...

What does visual studio use to determine that a build is up to date?

I've written a VS addin which intercepts Visual Studio's build command and uses another build system to do a build. I've got my build showing errors in the right format so that you can click on them in VS but the one step remaining for completely seamless integration is to prevent VS's "run" or "debug" commands from whining the it doesn...

Visual Studio 2008 and Oracle 10g

At work we have just started developing in C#.NET using VS2008 and we need to connect to Oracle databases. The problem is that we are still using Oracle 10g servers and Oracle provide four install options: Install the Oracle 10g DAC with tools for VS2005 / VS2003 Install the Oracle 11g DAC with tools for VS2008 Install Oracle 10g DAC ...