visual-studio-2008

c# excel 2007 print preview sheet

hi, how is it possible to (from c#) insert image on a sheet being displayed by print preview dialog? thanks a lot! assuming that i have my own button on a print preview ribbon which will insert the image. this is actually continuation of my question http://stackoverflow.com/questions/1160905/c-excel-2007-print-preview-ribbon link text ...

How do I build a user control into a self-contained assembly in VS2008?

More specifically, what do I need to know about doing this in Visual Studio 2008 that's different from VS2005? I have found a decent number of references for doing this kind of thing in VS2005, such as http://webproject.scottgu.com/CSharp/usercontrols/usercontrols.aspx http://stackoverflow.com/questions/323702/techniques-for-distributi...

VB.NET 2008 and searching audio/video hosting sites like Wrzuta.pl

Like in the title. I have no idea what to start with in order to implement a search engine like the one in Wrzuta.pl to a VB.NET 2008 application. I reckon this must be possible since I have seen an application doing this at http://www.wdownloader.yoyo.pl/download.php?cmd=click&id=1 - and a lot of mashups online, too. If anyone by a...

JQuery FixedTable

I'm trying to use the JQuery plugin called FixedTable in an ASP.Net WebForm to add a vertical scrollbar to an html table (see code below). I've added a reference to the JQuery document for Visual Studio (jquery-1.3.2-vsdoc2.js), and a reference to the fixedtable plugin (jquery.fixedtable.js) to my project. When I run it, I'm getting an...

Why my VS 2008 will be closed down when try to edit some ASPX file from Nerddinner Project

Why my VS 2008 will be closed down when try to open or edit the .ASPX files from Nerddinner Project? I'm using VS 2008 Professional SP1 version. ...

VB.NET Lambda Expressions

If I have Visual Studio 2008 and I target a .NET 2.0 application, can I still use Lambda Expressions? My understanding of Lambda Expressios is that its a feature built into the compiler, not the framework, so my conclusion would be that I could use Lambda in .NET 2.0 application. Can someone please tell me if this is so? ...

Nested Linq Min() crashes Visual Studio

I have a piece of code that makes the Visual Studio 2008 IDE run very slow, consume vast amounts of memory and then eventually causes it to crash. I suspect VS is hitting an OS memory limit. The following code is not my real application code, but it simulates the problem. Essentially I am trying to find the minimum value within a tree u...

Accessing listbox members seems to kick me out of my function in C#

Using VC# 2008, in WinXP 32 bit, the following function private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { textBoxURL.Text = webBrowser1.Url.ToString(); if (bStart) { string strData= webBrowser1.DocumentText; int iIndex = listBox1.Items...

Compiling MySQL custom engine in Visual Studio 2008

I have compilation errors while compiling MySQL sample of storage engine from MySQL 5.1.36 sources. Looks to me that I set all paths to include subdirectories but that seems not enough. Here are the errors: 1>c:\users\roman\desktop\mysql-5.1.36\sql\field.h(1455) : error C2065: 'FRM_VER' : undeclared identifier 1>c:\users\roman\...

Visual Studio HTML designer adds a <p></p> every time I switch to design view, I end up with a gazillion lines

I use split view, whenever I change the HTML code and switch to design view (clicking that popup "Design view is out of source view blah blah") VS adds 3 lines to the HTML. eventually it has many many lines which is very annoying to code like this. Has enyone encountered this before? ...

Visual Studio 2008 express on VS 2003

Hi, Can I install Visual Studio 2008 express edition on top of visual studio 2003 ? Will it cause any problem for existing development environment (VS2003) ? ...

Looking for a class in large dbml files

Hi does someone know a quick way to find a class in large dbml files. We have a large data model and it takes a good 2-3 minutes to scroll and locate the required class. Zooming out makes it quite hard to see. There has to be a better way than manually looking around ...

Visual Studio 2008 Generation of Designer File Failed (Cannot use a leading .. to exit above the top directory)

Hi, It seems the universe is against me this week. I have been happily coding away on my ASP.Net application for weeks now without issues. Today I tried to add a textbox to a form, and on saving the form, I received the following error: Generation of designer file failed: Cannot use a leading .. to exit above the top directory I googl...

How would I retreive the fully qualified name of an identifier in a VS macro?

I'm trying to resolve the fully qualified name of a c# identifier at a certain point (cursor) of a code window, using a Macro (or even an Add-in) in Visual Studio 2008. For example, if the cursor is in "Rectangle", I would like "System.Drawing.Rectangle" returned. I've tried FileCodeModel.CodeElements and .CodeElementFromPoint but they...

Regex for searching Database-Statements in VisualStudio

I am currently working on a rather large project in Visual Studio 2008 with a lot of Database-Statements. The Statements are held in strings like this: string stmt = "SELECT ID, OTHER " + "FROM TABLE " + "WHERE CONDITION"; I was wondering how to find all Statements via regex. So I am not so good at regex, but maybe s...

Debugging a web app on IIS7 without installing IIS6 Metabase

Is it possible to attach (or debug with F5) to IIS7's worker process without installing IIS6 Metabase? ...

VS2008 Setup project

I have a VS2008 Setup project that installs my app nicely. I want to be able to specify the name of the shortcut it creates on the desktop. I have added an extra screen in the install where you can type the shortcut name. How do I get this typed text into the name of the Shortcut that gets created? ...

How To Use Launch Conditions in Visual Studio .NET

How do you use Launch Conditions in Visual Studio .NET for oracle data provider when set variable in setup web application equal oracle? ...

Unable to attach to webdev.webserver.exe (ASP.NET Development Server)

As part of my local testing process, I manually run the webdev.webserver.exe executable from a batch file. However, sometimes I would like to debug the app that runs in the ASP.NET Development Server process from within Visual Studio 2008, but I get an error whenever I try to attach to the executable: "Unable to attach to process". Doe...

Visual Studio 2008 Automatic line breaks in comments

When I write a comment, it's often a paragraph or a few lines that explains clearly what a bit of code is doing and why it's doing that. What I'd like is if I could start a comment, and have the editor automatically insert a line break and continue the comment to the nest line when I reach, say, 80 characters long. So I'd type: // Lor...