visual-studio-2008

need to captialise characters of a string in visual studio text editor

Is there a way I can automatically change a string to the upper version. For example: select * from table would be: SELECT * FROM table After selecting both select and table and applying such a function. Typically I create the sql in a web editor, then copy paste it into my code, but have to format it a bit. ...

WPF click event triggering twice under specific build enviroment

We are facing a strange problem. We have a user control written in WPF and we have added a click event handler in the xaml file. On local system it works as expected. But when the build is generated on the server (where we have the code repository), we notice that the resultant build has a bug. The bug is that the click event is generate...

Can I identify the sub class from a base class parameter?

Take a look at the following. The question near the end of the code - in the "whoAmI" function... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace MY_TEST_PROJECT { // a form class pub...

Visual studio command prompt without installing visual studio

is it possible to run visual studio command promt without installing visual studio? i want to install regasm.exe from the vs command prompt as our server is 64bit. And my requirement register using 32bit mode. ...

How to select master page for a web page in web application ( VS 2008 ) ?

I have a asp.net web application and I create a master page when i try to add new web page i can't find any option that allow me to set master page as in web site ... i just do it manually ... Is it any way to select master page during creating web page ?? EDIT :I do it manually by add MasterPageFile="~/MasterPage.master" to page tag a...

Intelisense not working in Visual Studio 2008

I'm trying to type int and press Ctrl Space to show int, Int16, Int32 ... However it is not showing up, but when I press Ctrl J it works. I've tried to press Ctrl Alt Space as suggested in some places, but nothing changed... How can I restore it? ...

Create control dynamically from Sql but I can not take text value?

I try to fill listbox. I generated textbox and labels from database. (My platform asp.net) I dynamically filled the created textbox. I want to send all data from textboxes to listbox. But disappear all datas. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.We...

Integrating "Help" into WinForms Application

I am working on a Visual Studio we need to integrate help menus into it. I would like to do this in the canonical Windows fashion but am not very experienced with the .NET framework in these respects. Searching Google and SO hasn't yielded much because most of the results are people asking for help, not help with "help." Meta-help, if yo...

Is there any way to get Intellisense working in Visual Studio / MVC without the "if(false)" hack?

Other than the "if(false)" hack, is there any way to get Intellisense working in VS 2010 / MVC when using the server-side Url.Content() method for re-basing Javascript files? Master Page: <script src="<%=Url.Content("~/Scripts/jquery-1.4.2.js") %>" type="text/javascript"></script> I know about the if(false) hack but I was hoping ther...

VS: Tooltip help for doxygen-style commented functions?

Hi all, I am using Visual Studio and an external library that is commented in doxygen-style. Is there any way to display doxygen documentation in the editor tooltip like DocXML? ...

NHibernate sessions/transactions acting differently on IIS6 and Visual Studio 2008 Debug Server

I am using an HttpModule for handling my NHibernate Sessions and Transactions. I have many pages that are being very cranky about transactions not successfully starting on my IIS6 box but not when I run them locally, specifically when I try to call Commit() on the transactions during a PostBack to refresh datagrids with new updated data....

How to get datagrid to show in toolbox

Hi, I am new to wfp and am looking for the datagrid tool, how do I add it to the toolbox. I have checked in the options and it all appears checked etc. Thanks, R. ...

Can deploy but not debug .NETCF 3.5 App to Device

I have a software application written for .Net Compact Framework 3.5 in VS2008. I can connect to my device via Activesync and deploy the application without problems. I can launch the app on the device after deployment without a problem. However, if I try to connect and debug the app, I get an unhelpful message that says "A serious erro...

How to Un-format a document in Visual Studio 2008?

So there's a messy XML file where all white spaces between tags have been stripped, so it's a valid XML file but it's somewhat unreadable. I press the magic Ctrl+K, D, and the file is beautifully formatted. I edit it, and then I want to put it back into the compressed, hardly readable state, removing all whitespaces between the tags. H...

How to use submitChanges if i create programmatic control to collect data?

i created my Form programaticall using System.Reflaction. i want to add database with SubmitChanges. i will get data from whole txtbox and using any loop to fill Entity property. And than Submitchanges. public static void Save( PlaceHolder Holder) { if (Holder.Controls.Count > 0) { fo...

How to add values listDictonary to sql with linqtosql?

i can this with ado.net but i want to use it linqtosql foreach (string ky in ld.Keys) { cmd.Parameters.AddWithValue(ky, ld[ky]); } public bool AccessProcess(string sp, ListDictionary ld, CommandType cmdType) { SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["conn"].ToString()); SqlCommand cmd = new SqlC...

Customize MS dynamic CRM entity in visual studio 2008

Hi, I want to show the sorted picklist of countries in opportunity entity's -> new form. so how to open the opportunity entity in my visual studio 2008. I have installed the MS CRM as well as visual studio 2008. please guide me i am new. I want to also create the custom entity through visual studio 2008. how to do thi. please tell me ste...

Are there any good tutorials for using SCSF?

I am wanting to look into the Smart Client Software Factory (SCSF) as I have been advised it may provide a good solution to a project I am looking into. Can anybody point me towards any good tutorials that will introduce me to SCSF and what it is capable of. ...

How do I move multiple parsed values from a log file to an Access Database? C#

I am working on a program that transfers a file from a CentOS VM, and parses the file for multiple Start, finish, and host ID values. After this the values are then moved into an Access database for tracking purposes. So far I am able to pull a file down from the CentOS VM and parse it for the desired values. However, I have run into a f...

How can I execute a .bat before publish starts?

Hi I am looking for some guidance on this... I want to change my dns settings before publishing... I made a bat that changes the dns but I have no Idea on how to execute it before publishing. note that I want to execute it before publishing and not after build thanks in advance. ... so there is no way to do this???... ...