.net C# windows Form Application : open popup window
I am using Windows Form application. I want to open a small textbox on a window to enter user's name or Email in Starting for the program. How can I achieve this? ...
I am using Windows Form application. I want to open a small textbox on a window to enter user's name or Email in Starting for the program. How can I achieve this? ...
Are there any 3rd part WinForms controls out there that give me ajax type effects. For example I want an effect where if I have a list box or a DataGrid control and someone clicks a field to mark it as complete I want that field to fade away not just instantly disappear. The standard controls get the job done but are not the best looking...
I have a c# application that uses the Office PIAs to enable the application to export data to an Excel file. This works great on my development machine and other desktop machines. When I run the application on a Terminal Server (which has Office available) I get a SecurityException and the application crashes. The debugger recommends ...
I am trying to install Microsoft .NET RIA services Preview (RiaServices.msi) on a machine running Windows 7 RC + Visual Studio 2008 SP1, and get the following error: "2908. Error while installing assembly System.Web.DomainServices.Tools.VisualStudio, version 1.0.0.0.." Anybody else had this problem? What should I look at? ...
I have a class that needs to run in both Silverlight and non-Silverlight runtimes. However, the behavior is slightly different so I need something like... if(isRunningInSilverlight) { // do this } else { // do that } How do I correctly assign isRunningInSilverlight? ...
Hello, I've got a <asp:Repeater> in my webpage, which is bound to a programatically created dataset. The purpose of this repeater is to create an index from A-Z, which, when clicked, refreshes the information on the page. The repeater has a link button like so: <asp:LinkButton ID="indexLetter" Text='<%#DataBinder.Eval(Container.DataIt...
Basically i am looking for the top half of this. I am using a listbox for the left side where it says All, Active, Inactive etc. Now i need the right side, what control is that? I need something that will highlight an entire row and allow me to order (ASC and DESC) based on the column i click. ...
A BinaryFormatter-serialized array of 128³ doubles, takes up 50 MB of space. Serializing an array of 128³ structs with two double fields takes up 150 MB and over 20 seconds to process. Are there fast simple alternatives that would generate compact files? My expectation is that the above examples would take up 16 and 32 MB, respectively,...
Is there a way to determine programmatically if a SQL Server stored procedure parameter has a default? (Bonus points if you can determine what the default is.) SqlCommandBuilder.DeriveParameters() doesn't even try. Thanks in advance for your help! EDIT: I honestly don't care if it's a SQL Query, an SMO object, etc. ...
I'm trying to work out a simple DirectSound app, but the lack of .net documentation has me frustrated. I'd like to capture the audio from one device and play it back to another. (like an audio repeater) I've got the capture part, but I don't know how to send the capturebuffer out to a secondarybuffer. Does anyone know of a .net example...
Not sure what I'm doing wrong here. The extension method is not recognized. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using StringExtensions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ...
I'm looking into how best to automate integration tests (by which I mean complete use cases entirely within our application) The questions Correct Approach for Unit Testing Complex Interactions What are the pros and cons of automated Unit Tests vs automated Integration tests? cover the "why" and "what" aspects very well. The questi...
The following does not work: var EtxtDOB = $get('<%=FormView1.FindControl("frmEditPerson").FindControl("EtxtDOB").ClientID %>'); How can I find this nested control in javascript? ...
We use the Fluent nHibernate repository model in a .net MVC project that I'm working on. While running a sql profile to check for areas of improvement we noticed that some objects were getting UPDATEd without an explicit Save. Does anybody know why nHibernate would choose to update an object when I select it? Class: public class Req...
We're trying to serialize some data, and one of the items in a collection is a "deferred execution linq statement" (actually it's the result of a Concat call on a collection). The problem is how to persist that object. It doesn't support ISerializable. The actual type is something along the lines of System.Linq.Enumerable.WhereSelectLi...
I have old code that call a .net webservices that throws this error if the .net code is cold (not in memory) msxml6.dll error '80072ee2' The operation timed out A reload always fixes this Can I change the timeout? Can I stop the .net from going cold? Can I trap the error in classic asp and do reload to stop the user see the error...
What are the differences between using SqlDataAdapter vs SqlDataReader for getting data from a DB? I am specifically looking into their Pros and Cons as well as their speed and memory performances. Thanks ...
I am new (as of today) to NUnit and TDD. However, I am very interested in the technique and I am trying to learn. I have a test case I would like to read from a file if it exists, otherwise I will grab from the registry. How do I test both conditions? Here is an example of the code I would like to write a test case for: public s...
I am trying to register a type like IRequestHandler1[GenericTestRequest1[T]] which will be implemented by GenericTestRequestHandler`1[T] but I am currently getting an error from Windsor "Castle.MicroKernel.ComponentNotFoundException : No component for supporting the service " Is this type of operation supported? Or is it to far removed ...
I'm making a sample GUI for a new application we are developing at work. The language has already been decided for me, but I am allowed to use any 3rd party DLLs or add-ins or whatever I need in order to make the GUI work as seamlessly as possible. They want it very mac/ubuntu/vista/Windows 7-like, so I've come up with some very intere...