.net

Loading .dll to use in Visual Studio 2010

Hello all, complete newb quesiton here, but I'm new to C# and Visual Studio 2010. How do I load .dll's into Visual Studio 2010 so I can write C# programs using their methods? More specifically, I'm trying to write a twitter application using TweetSharp that will be run via command line. ...

Problem in DLL update in .Net

My site stops working when I drop a new DLL in the bin of my virtual directory. It took to much time to work properly again. Sometimes I have to reset the IIS. Its happening since I upgraded my .Net framework from 1.1 to 3.5 ...

secondary y axis on WPF toolkit chart

I want to plot two line series in a WPF toolkit chart. (http://wpf.codeplex.com/) Can I set Y-axis of one data series as a secondary y-axis? ...

Key combinations for a Hot key

We are developing a hot key for one of our application. A key combination that is easy to remember easy to press (especially for people with small fingers) certainly not ctrl-alt-del ;) Which key combination do you suggest for a hot-key? EDIT: Please suggest any specific character instead of generic ones. ...

Winforms fixed single border on custom shaped control

Hi all, I have created a custom control inheriting from a panel in .NET 3.5 The panel has a custom polygon border, which comes from a pointF array (In diagram, control is highlighted yellow). Fig 1 shows the control with BorderStyle none. Fig 2 with BorderStyle fixed-single As shown in Fig 2, the border follows the Rectangle bounding...

Configuration file reading. Best practice

Application stores configuration data in custom section of configuration file. This information is used all over the application. Nowadays I use helper static class to to provide access like this (some code omitted or simplified): [XmlRoot("webSiteSection")] public class WebSiteConfig : IConfigurationSectionHandler { public stati...

microsoft certification in c# 3.5 and its tutorials

i am 2010 passed out. i am interested in completing a certification in c#. certifications available are MCTS Exam 70 536 (for framework 3.5 / 2) and MCTS Exam 70 515(for framework 4.0). wer wil i get its proper study material and tutorials. is there any recommendation from u about, from which exam a beginner in c# should start with.. p...

NServiceBus Testing Framework and NAnt Issue?

Hi Guys, This is my first post here, and I'm new to NService Bus world. After play around for a couple days, and found that it's really powerful framework to creat service and easy to use. :) Now, I came across a small question. I created a project which uses NServiceBus, it got normal message handlers and Saga handlers. And also I c...

.NET equivalent to Perl regular expressions

I need to convert a Perl script to VB.NET. I have managed almost the entire conversion, but some Perl (seemingly simple) regex are causing an headache. Can someone suggest me .NET equivalent of the following perl regex: 1) $letter =~ s/Users //,; $letter =~ s/Mailboxes //,; if($letter =~ m/$first_char/i){ 2) unless($storegroup =~ /...

Native.* assemblyIdentity with Registration-free com

I set Isolated=true to some COM library that I need to use registration free. Visual studio now created Native.* manifest files for each of my assemblies: Why "Native"? Can I change this? Can someone point me to info I can read? (googling native / assembly / manifest is yield a lot of non-related info ) Is there a way I can embed thes...

What is Silverlight? (In one sentence, in an interview)

Consider you are in an interview for a .NET/C# job, and are asked: What is Silverlight, in one sentence? EDIT: OK, some took it the funny way:-) I have accepted one of the more serious approaches though. However, thanks to all posters. ...

Force php through the .net engine in iis7

I have converted a php to asp.net mvc and have it hosted with the Rackspace cloud. All works great apart from some php links are still linked from other sites and within search engines. My question is what do I need to add to my web.config to force php sites to go through the .net engine? These links work as expected as I can catch the ...

Passing a SAFEARRAY from C# to COM

I use 3rd party COM to find faces in a picture. One of the methods has the following signature, from SDK: long FindMultipleFaces( IUnknown* pIDibImage, VARIANTARG* FacePositionArray ); Parameters: pIDibImage[in] - The image to search. FacePositionArray[out]- The array of FacePosition2 objects into which face informa...

WinForms form freezes

On a form (F1) i have a button, from which if i create another form (lets call it F2) and show it there's no problem but i'd like to do something like this Some thread in my app is running a connection and listens for messages from a server. when a message arrives, my main form is registered to get an event that runs a function. From t...

Can i call/request a .net handler (ashx) using javascript?

Is it possible to call a handler using javascript code? e.g. i have a handler deployed at this location http://mysitename.com/getMyData.ashx. Can I call this handler or just request it using javascript? Is it even possible or not? Please suggest. ...

free, recommendable Tools for data modeling?

Hello, are there free, recommendable Tools for data modeling? ERM/ORM Diagrams Creating database models (SQL SERVER 2005) As Simple to use as Visio(no license here) Code generation is only a nice to have (VB.Net) ...

how to create setup for window service

I have created setup for window application but not for window service. Could you please help me? ...

How-To handle AutoExpiring Shopping Carts

Hi, I'm currently developping a online shopping store and the question of expiring carts comes. Should i use event based self timed cart entity, or should i make kind of polling task to cleanup old empty carts ? Thanks ...

Write Null/Nothing value with Databinding

I have extended a MaskedTextBox component to add some functionality. The text property of the extended MaskedTextBox is bound to a DateTime? property and the format of binding is set to a time format of "HH:mm:ss" (i.e. 24hr time). So that this masked text box will capture the display a time. The extra functionality I have added is to ...

C# property ending with ?

What does that mean ? public bool? Verbose { get; set; } When applied to string? , there is an error Error 11 The type 'string' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'System.Nullable' ...