.net

.NET WinForms INotifyPropertyChanged updates all bindings when one is changed. Better way?

In a windows forms application, a property change that triggers INotifyPropertyChanged, will result in the form reading EVERY property from my bound object, not just the property changed. (See example code below) This seems absurdly wasteful since the interface requires the name of the changing property. It is causing a lot of clockin...

Http Hanlder must be reset with each deployment. How can I add this functionality to the web.config

My application is a dotnet 4 hybrid - MVC in some areas, web forms in others. This application was recently upgraded to dotnet 4 and includes a lot of older code and some mismatched parts. Unfortunately it includes a telerik component that requires me to run the Application pool in classic mode. In order to fix this (in IIS7) I have to ...

Writing Eclipse plug-ins based on .Net controls?

Is it possible to host a .Net WinForms control within eclipse. We have a set of editor controls that we would like to make available as an Eclipse plug-in, but they are written in .Net. Is there any way to use them as the basis of a Eclipse plug-in? I’ve seen references to IBM’s “Interoperability Tool for Eclipse and .NET WinForms”, bu...

WPF Properties Panel simliar to Visual Studio's

Just wondering is their any examples or elements which can look very similar to the Properties panel used in Visual Studio? My guess the one in Visual Studio 2010 is built upon WPF, almost definitely a treeview? ...

Which kind of method signature do you prefer and why?

Ok, this is probably highly subjective but here it comes: Let's assume I'm writing a method that will take a printscreen of some region of the screen. Which method signature would you prefer and why? Bitmap DoPrintScreen(int x, int y, int width, int height); Bitmap DoPrintScreen(Rectangle rect); Bitmap DoPrintScreen(Point point, Size ...

Windows handle if a control is set to visible = false (.NET)

Hello, Quick question, do controls in .NET have handles (hWnd) if they are set to invisible? Marlon ...

What is the recomended setup for a small .net/php development shop?

First of all I don't know if it this question belongs here if not please tell me. I've recently evolved from freelancer to a small .net/php development shop and we're trying to figure out what the best tools for team development will be (code repository, continuos integration server, automated testing, etc.). Do you have some recommend...

ReportViewer report to PDF files

Using Winforms, C#, .Net 3.5, and Microsoft ReportViewer 2008: I have a 3 page report in ReportViewer that I want to send to PDF as different pages. I have the code below that will copy all 3 pages to PDF but is there a way of splitting up the pages or specifying which page to render into PDF? It knows there are 3 pages... so seems like...

How to get the Signature of a Self-Signed Certificate using X509Certificate or other .NET Class?

Hello I am trying to verify a root/self-signed certificate by trying to decrypt the signature with a known/trusted Public Key, then checking if the decrypted hash matches the original certificate hash. I get the remote certificate by using RemoteCertificateValidation callback on the sslStream class. The certificate is given as a X509C...

How can I take a screenshot of a website w/ .NET?

I'm looking for ideas on how to take screenshots of websites within a .NET application. This application will be a windows service. Thanks! ...

TinyMCE with AJAX (Update Panel) never has a value.

I wanted to use a Rich Text Editor for a text area inside an update panel. I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors via this question: http://stackoverflow.com/questions/1207382/need-asp-net-mvc-rich-text-editor Decided to go with TinyMCE as I used it before in non AJAX s...

Automatically presenting information stored in class to user

Hi, I am retrieving info from a web service and saving it in a class which has several fields including arrays. I just want a way to present that info to the user. Is there a component that takes the class as argument and just organizes the info and shows them in a datagridview (for example)? Thank you. ...

Usercontrol databinding within a databound datagridview

Good day. I'm developing a Windows application and working with Windows Forms; .Net 2.0. I have an issue databinding a generic List of Car Rental Companies to a DataGridView when that list contains (one of its properties) anoother generic List of Car Makes. I also have a UserControl that I need to bind to this [inner] generic list ......

How can I unbind a socket in C#?

I'm having some problems reusing a server socket in a test application I've made. Basically, I have a program that implements both the client side and the server side. I run two instances of this program for testing purposes, one instance starts to host and the other connects. This is the listening code: private void Listen_Click(object...

How to make dynamically generated .net service client read configuration from another location than *.config files

Hi, I've currently written code to use the ServiceContractGenerator to generate web service client code based on a wsdl, and then compile it into an assembly in memory using the code dom. I'm then using reflection to set up the binding, endpoint, service values/types, and then ultimately invoke the web service method based on xml config...

accept text when button is clicked

c# visual Studio 2010 how can I capture the text from last TextBox control that had focus on a click of a button. thanks TIA ...

How do I run my application while a UAC dialog window is showing?

I have an application that I wrote in .NET. It needs to remain running and have access the desktop that the UAC dialog windows open on and interact with that desktop using keyboard and mouse events. It's sort of like a VNC program. Imagine you are running a VNC program and a UAC window pops up, you want your VNC program to still be abl...

Visual Studio ASP.Net MVC undo set as start page action

I have an web application that I'm working on, it was working fine until my curiosity got the better of me and I right-clicked on a view and chose Set As Start Page option. Now, whenever I run my application it takes me to the Resource Not Found error page. I have the default register route set in my Global config route which was worki...

.Net, XML, & Regex - How to match a specific collection item?

So I have an xml file with the following simplified xml file contents: <CollectionItems> <CollectionItem> <Element1>Value1</Element1> <Element2> <SubElement1>SubValue1</SubElement1> <SubElement2>SubValue2</SubElement2> <SubElement3>SubValue3</SubElement3> </Element2> ...

Creating a Non-Databound Report in Winforms

I am using Visual Studio 2008 and all the components that come with it as well as Infragisitics for Winforms. I need to design a label that will print to a label printer. None of the controls are databound and will most likely be set in code eg/Label.Text = "My Heading"; as there will be minimal information on the label. One piece of...