visual-studio-2008

how to show data column-wise in rdlc local reports

I have an WPF application which has a local rdlc report which show receipt based selling of the day. As this query have 4 columns (MemoNo, Gross, Discount, NetSales) and rows more than 1000 so its not a good idea to show data row-wise as it will waste more space per page. Is there any way to show data in column-wise so. MemoNo Gross ...

Declaring "friend" functions fails under Visual Studio 2008

I am trying to declare a global function as a "friend" of a class: namespace first { namespace second { namespace first { class Second { template <typename T> friend T ::first::FirstMethod(); }; } } } When I compile this code under Visual C++ 2008 ...

Should I use WinForms or WPF for taking pics with webcam?

We have a Logitech web cam that we want to get working with .NET. It needs to recognize the device, and be able to take a picture. We just installed VS 2008, and I was wondering if Microsoft made it easier to interact with devices with some of the newer stuff like WPF, Silverlight, or whatever. If anybody can point me in the right dir...

How can I force VS 2008 Deployment Project to install two different versions of the same file in two different places?

Some Background: I have a VS 2008 Deployment project I am not using the project output, I am adding assembly files directly because we have third party licensing and obfuscation tools that we run on the assemblies after building them. Also included in this deployment project is a Help directory with examples. One of the Examples is a C...

How to move a tab control dynamically on a wpf form

Hi I am trying to move a tab control on a wpf around dynamically. The tab control is hooked to a timer and basically if you press a button the size is shrunk so it looks and behaves like an expandable panel. However, when I 'shrink' the tab control the width is adjusted centrally, whereas I want the control to stay where it was positi...

Can I change default build number in Visual Studio 2008

I set version numbers in my assemblies to: [assembly: AssemblyVersion("1.0.*")] After first rebuild I got this version number: 1.0.3835.35633 <major version>.<minor version>.<build number>.<revision> In MSDN article about assembly version attribute there is really short description: The default build number increments daily....

Can I change the default modifier from Friend to Private in the Windows Forms designer in VS 2008?

When I develop a Windows Forms app in Visual Studio using C#, every control that I add to my form is by default marked as private, which is what I want. When using VB.NET, every control is by default marked as Friend (the equivalent of internal in C#), which is not what I want. Can I just change this default? It seems like surely it's ...

Update Wizard (Entity Framework) - VSS 2008 not updating view. Should I manually update it?

I am using VSS 2008 and built a Entity Framework model from SQL server 2008 database. Everything worked fine. Now I have updated a view to include a new column and tried refreshing the entire model from DB but the updated column in the view is not visible. I opened the EDMX as XML to see the problem and it has a warning ... Errors Fou...

Error : Invalid TLV Record in Visual Studio 2008 Crystal Report

Hi, Im develop an application and while I want to generate a report using Crystal Report, it shows error Invalid TLV Record. Below is my script : Dim CrApp As CRAXDRT.Application Dim CrRep As CRAXDRT.Report Set CrApp = New CRAXDRT.Application Set CrRep = CrApp.OpenReport("C:\test\Report1.rpt") CrRep.DiscardSavedData The error appears...

Change name of stored procedure in SQL Server 2008

I have a stored procedure which I edit through Visual Studio 2008. Is there a simple way to change the name of the stored procedure? Right now if I look at the sproc's properties, the name of the sproc is grayed out. ...

numeric-only textbox as a control in Visual Studio toolbox

I would like to make one numeric-only textbox. I'd like to then add that same to the control toolbox within Visual Studio 2008 I've already built the function to allow only numeric. How can I make it available in the toolbox? ...

How to use F10 as a shortcut in an MFC application using a Ribbon

Hello, I developed an MFC application using VS2008 and the MFC featurepack. This application UI is using a ribbon. I now need to have F10 as a proper shortcut for one of the critical feature of my application but I seem to be unable to set the accelerator correctly as it always use the default ribbon accelerator over mine. Any idea ho...

Touch Screen KeyBoard

I have been working on a touch screen application. I need to know if there exists a ready touch screen keyboard that I can use as a Controller for my application. I tried using the windows ready keyboard but it is too small for a touch screen. Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.System) + Path.DirectorySep...

IIS7: URL Rewrite not working when debugging with Visual Studio

Hi, I have set up some User Friendly URL rules in IIS7 using the URL Rewrite module. This works perfectly on IIS7. However, when I try to debug the site, the webserver instance that Visual Studio creates doesn't seem to obey the rewrite rules. For example, http://localhost/friendly-url works on IIS7, but http://localhost:1800/fri...

After removing a Visual Studio Project from a Solution cannot delete the folder in windows

When I 'Remove' a project from a Visual Studio solution I often want to delete it. As some other posts on SO have mentioned this does not delete the physical project from the file system. The larger problem here is that after removing the project form the solution when I attempt to delete the directory from windows Explorer or the comma...

How to use external cpp projects in a cpp project in Visual Studio 2008

Hi guys i m trying to make small test driven example by using cppunit. So i have 2 project which are test and normal library project. Whatever i do, i cannot be successfull. i got alltime LNK Error. Any help will be apreciated. ...

WinForms forms not responding to KeyDown events

I've been working for a while on my Windows Forms project using Visual Studio 2008, and I decided to experiment with keyboard shortcuts. After a bit of reading, I figured I had to just write an event handler and bind it to the form's KeyDown event: private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.Alt &&...

how to divide data in multiple columns in tsql

i have around 1000 of rows in database which i want to divide in column group wise. i mean in following format SlNo. Name Price SlNo. Name Price SlNo. Name Price how i can write query to show data in above format as in rdlc report vs 2008 i am unable to show data in this format. Any help would be appreciate...

Enumerable LINQ extensions are hidden on strings... why and how ?

Possible Duplicate: Why doesnt VS 2008 display extension methods in Intellisense for String class Hi all. Yesterday I noticed that Enumerable LINQ exstensions are hidden on strings (I mean hidden from the intellisense). We all know string is an IEnumerable<char>, so automatically it should get Enumerable extensions, and actu...

Loop structure to save data in CONTEXT with addwithValue method?

Hi.. my linq knowledge is ok. i need only a loop or any other method to accomplish ado.net method :(LOOK PLEASE BOLD CODES) public bool AccessProcess(string sp, ListDictionary ld, CommandType cmdType) { SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["conn"].ToString()); SqlCommand cmd = new SqlCommand(s...