visual-studio

Event using generic EventHandler<> not visible in Designer

I've just noticed that if I add an event using a generic eventhandler to my UserControl, the event is not visible in the designer when I add the user control to a form. public event EventHandler<TEventArgs<int>> EventNotVisibleInDesigner; public event EventHandler EventVisibleInDesigner; Not particularly worrisome, but is this by-desi...

Change the color of i,j,k in Visual Studio

Can the colors of the letters, i, j, k, be changed when used as an index? For example, i could be reddish, j could be blueish and k greenish. It would be nice to use for other sets as well, such as l, m, n. I think having more distinction between i, j would help with some indexing errors from typos. Edit I should note that the ind...

Setfocus On FlowlayoutPanel Controls Control Collection

I am Using C#, VS-2005 I have draw runtime textboxes on flowlayoutpanel and don't know how to setfocus between textboxes. Suppose I have four Textboxes in Flowlayoutpanel as below. tbox1...........................................tbox2 tbox3.......................................... tbox4 I have to do if cursor or focus on...

Does a good manual exist for the standard C libraries?

Hi, Does a good manual exist for the standard C libraries? Like man for Linux or Java API. Edit I am working in Visual Studio 2010 Express. I prefer something like Java API to see all libraries and not like man that show function that I know already exists without giving me the all list of function, and also man not exist in Windows...

ReportViewer styling

With the ReportViewer control, is it possible to apply predefined style (from css) across multiple reports? For example, I would like anchor links to look the same across different reports on different pages. Specifying their cssClass property doesn't seem to work because peeking into the generated html, the inline style (which is so bu...

most efficient way to find largest of three doubles in .NET Microframework?

I have three doubles: double[] accel = new double[3] { _Razor.Accel_X, _Razor.Accel_Y, _Razor.Accel_Z, }; What's the most efficient way to find the largest of these in NETMF? ...

Visual Studio/ReSharper: How to wrap long lines with commas before params?

I've been customizing my formatting desires using ReSharper for code clean-up. So far I've been able to make the clean-up rules match my coding style within:      ReSharper -> Options -> Languages -> C# -> Formatting Style One thing I haven't figured out how to do yet is how to have params/fields/list items wrap with leading commas inst...

Changes in Visual Studio 2008 not 'taking'

I've been consistently having a problem where changes I make to my web form or code-behind doesn't get recognized by the debugger until I quit visual studio and delete the "root" folder located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files. It's very cumbersome and greatly decreases my productivity. Any help...

Is there any way to make Visual Studio stop indenting namespaces?

Visual Studio keeps trying to indent the code inside namespaces. For example: namespace Test { void Testing(); void Testing() { } } Now, if I un-indent it manually then it stays that way. But unfortunately if I add something right before void Testing(); - such as a comment - VS will keep trying to indent it. This is s...

Cannot load assemblies ( windows 7 visual studio 2010 )

I loaded some old assemblies in my project yesterday and now when i cannot load them, they appear with a yellow mark on them in the references. I have no idea what the hell i am doing wrong. I really need some help. ...

Anyway to make Visual Studio ignore the script tag and assume anything in a script tag is html?

I have a lot of templates that are enclosed within script tags. They are pure html, but Visual Studio grays them out. I don't have any in-line Javascript so if Visual Studio simply ignored the script tag and treated the contents inside as it would a normal html document would be really nice. I've grown accustomed to CSS class intellisens...

How to remove a folder from VS2008 Source Control, keeping the local folder intact?

I have a working folder that's synced to a team server. I was wondering if there is a way to remove some of the subfolders (i.e., stop syncing them, and make them invisible to others), without actually deleting them on the local drive? ...

Extending UI Component Class in C#/VS2010

I've only just started using C#/VS this past week and wondered how to do something which, I think, should be quite simple: What I want to do is extend the class used by a UI component and therefore implement my own methods in it - just for one instance of a UI component though. If I was using xcode/objective c I would normally just chan...

highlighting messages in output window

I saw a screencast recently and what really got me interested is that messages in debugger output window were displayed in different colours (different color for warnings, exceptions etc).Unfrotunately I can't find this screencast anymore. Does anyone know if this is a new feature of VS2010 or is it part of 2008 and just need turning on...

Visual Studio - auto generate entities and web front end?

Hey all, I went to the Visual Studio 2010 launch and remember seeing someone generate entites (which I am using and is awesome) from a database, but then taking it a step further and creating a web front end. The front end would allow modification/deletion of existing data and addition of new, and it was all generated. It was ugly, of...

load a webpage into a string ...fastest way

How can I load a web-page into a string in .net ? i want the fastest way possible ... ...

How to manually reload the Visual Studio designer for WPF

Is there any way to force the WPF designer to reload or refresh, without rebuilding the entire project or solution? If there's an error, I get an option in the designer view to refresh the designer. But if I don't have an error, how can I get the designer to refresh after I've made a change? ...

How to replace " in .NET

Simple! How to replace " in .NET with something...? ...

Setup project with two primary outputs using common dependencies

I have a solution in visual studio with 4 projects - 2 windows form applications, a class library and a setup project. The 2 windows forms applications both reference the class library project. My setup project includes the primary outputs for both windows forms application, and the detected dependencies include the class library. I'v...

Crystal Reports Page Width Rendered Incorrectly

I am having a strange issue with a VS2008 application we are distributing where the numerous Crystal Reports are all displayed in the viewer at half width, making most of the reports completely unreadable. The reports also print half page width when printing is attempted. The frustrating thing is, MOST target machines display and print...