visual-studio-2008

Upload/Download files with ASP.Net using Visual Studio Web Server

I need to upload image files and store them on the webserver, then be able to display them in html. I'm currently using AppDomain.CurrentDomain.BaseDirectory to get a path to read and write files. Firefox won't display the image as I just get an img tag with "src='C:...' Is it possible to read/write files like this with Visual Studio we...

Is there a simple automatic backup system for Visual Studio projects?

Hello, I'm using Visual Studio 2008 Express and I would like Visual Studio (or perhaps an Add-in) to save my whole project to some sort of auto-incrementing archive or whatever would help me recover from disasters. I don't have much need for SVN or complex versioning systems. I'm just looking for something simple and lean. Any help wou...

Forcing value to boolean: (bool) makes warning, !! doesnt.

I like (bool) way more, but it generates warnings. How do i get rid off the warnings? I have code like: bool something_else = 0; void switcher(int val = -1){ if(val != -1){ something_else = (bool)val; }else{ something_else ^= 1; } } Should i just do it like everyone else and use '!!' or make it somehow hi...

Visual Studio adding OvalShape and RectangleShape tool references to a project

Trying to add a 'box' to a form at design time, I looked up the msdn and it clearly states that I should be able to do this using the OvalShape and RectangleShape control tools in my Visual Studio 2008. shape container Now it should be found under the visual Basic PowerPacks, but all I have listed is Pointer and PrintForm, how do I add...

VS 2008 SP1 text editor flickering over remote desktop connection

I am connecting from a Windows 7 x64 machine to my dev machine running Windows XP SP3 using the built in remote desktop client. For most apps it works fine with no problems, for Visual Studio whenever I am typing the entire text editor keeps redrawing. I stumbled across this question: http://stackoverflow.com/questions/873849/vs-200...

Changing the namespace for a Web Reference in a Project to be Made Into a VS Project Template

When I add a web reference to a project, it comes up with a default namespace of: com.wpdevs.myservice. This is the namespace I'd have expected it to use in the application. When I add the using statement to the project, I have to add: using MyProject.com.wpdevs.myservice; I'd like to find a way to eliminate having to reference the ...

sqlite - Foreign keys in VS2008 Designer

Hello I'm starting over to use strong typed datasets in VS 2008 with sqlite and running into a problem. I have some tables that have foreign keys allready defined in the database. I can see those in the Server-Explorer. Now i create a new strong typed Dataset with the designer and add only one table from that realtion to the dataset....

How do I create an installer for Visual Studio 2008 addin?

I have done an addin (in C#) for visual studio, (almost) ready to deploy it. But I don't know how to do an installer for that. I saw the link here but I don't know where to go from there... This seemed to be useful, but I don't understand where to start, put which code snippet where... Can someone guide me from the basics? Can't find ...

Project-wide additional library paths -- MSVS2008

Hi there. I'm setting up a VC++ project in MS Visual Studio 2008 that'll be used by several people. I wanted to keep things as simple as possible so I've set up Additional Include Directories via the Project properties. I've also set up additional library files via Tools -> Options -> Projects and Solutions -> VC++ Directories. However...

Simple Mailslot program not working?

Using the client and server examples found here: http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedmailslot14.html Compiling them with VS2008, running the server and then "client Myslot" I keep getting "WriteFail failed with error 53." Anyone have any ideas? Links to other Mailslot examples are also welcom...

Can I force the auto-generated Linq-to-SQL classes to use an OUTER JOIN?

Let's say I have an Order table which has a FirstSalesPersonId field and a SecondSalesPersonId field. Both of these are foreign keys that reference the SalesPerson table. For any given order, either one or two salespersons may be credited with the order. In other words, FirstSalesPersonId can never be NULL, but SecondSalesPersonId can be...

Visual Studio Question: When doing a compile/debug is VS suppose to delete existing files in the bin\debug area?

Hi, Q1 - When doing a compile/debug is VS suppose to delete existing files in the bin\debug area? (for VS2008) if no then can I ask please: Q2 - My winforms checks for existance of a sqlite.db3 file and creates it if it needs to (programmatically). If the behavior I wanted was that each Compile/Debug I do is for the target Debug are...

Webclient using download file to grab file from server - handling exceptions

Hello everyone, I have a web service in which I am manipulating POST and GET methods to facilitate upload / download functionality for some files in a client/server style architecture. Basically the user is able to click a button to download a specific file, make some changes in the app, then click upload button to send it back. Proble...

Where are global settings stored?

Hi, sometimes after logging out and in again, my settings in Tools/Options/Projects and Solutions/VC++ Directories are lost. To investigate the problem I tried to find the file where Visual Studio (2008 Team) stores those settings on disk. (Or is it in the registry?) Can anybody point me to where it is? Thanks a lot! ...

C# Microsoft.DirectX.AudioVideoPlayback.Video reference?

What reference do I have to add to use "Microsoft.DirectX.AudioVideoPlayback.Video"? It is not recognized currently. ...

How do I get the duration of a video file using C#?

Any library in C# that allows me to do that? ...

DataTableReader is invalid for current DataTable 'TempTable'

Hi, I'm getting the following error whenever my code creates a DataTableReader from a valid DataTable Object: "DataTableReader is invalid for current DataTable 'TempTable'." The thing is, if I reboot my machine, it works fine for an undetermined amount of time, then dies with the above. The code that throws this error could have been ...

Can I use the auto-generated Linq-to-SQL entity classes in 'disconnected' mode?

Suppose I have an automatically-generated Employee class based on the Employees table in my database. Now suppose that I want to pass employee data to a ShowAges method that will print out name & age for a list of employees. I'll retrieve the data for a given set of employees via a linq query, which will return me a set of Employee inst...

Changing Text colour in text field by dropdown menu - Visual Studio 2008

Hey, i'm just doing some testing on Visual Studio 2008, what i'm trying to do is to change the text colour inside the multi-textfield which isn't working and I don't know why... Public Class Form1 Dim ColourValue As Color Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load rbBlue.C...

how to invoke onclick function in html from vb.net or C#

I am trying to invoke the onclick function in an html page that displays content. I am using the httpwebreqest control and not a browser control. I have traced the function and tried to find the link it calls but looking at the code below I tried inserting the link into the browser with the main url but it does not work. <div style="po...