.net-2.0

progressbar to be updated on selected index changed of a combo box

hi, i am developing a windows application using C#.net and i am having a combobox with some list items .on selected index changed event of the combo box i need to have the progess bar to be visible and should disappear after retrieving some data. i am trying inthe way: for (int i = progressBar1.Minimum; i <= progressBar1.Maximum; i++) ...

Resizable table layout panel in c#

I find the table layout panel in c# (.net 2.0) to be very primitive. I wanted to allow my users to resize the columns in a table layout panel but there are no ready made options to do so. Is there a way atleast to find out whether the cursor is directly over any borders of a cell and if so, which cell is beneath it ?? May be having this ...

Is it possible to iterate over two IEnumerable objects at the same time?

If I have a List(Of x) and a List(Of y) is it possible to iterate over both at the same time? Something like for each _x as X, _y as Y in List(of x), List(of y) if _x.item = _y.item then 'do something end if next These lists may be of differing sizes. I am using .Net2.0 which I suspect is my downfall here as I ha...

Best way to hide a toolbox associated with a UserControl in .NET 2.0?

I've recently come across the following situation. I have a UserControl that can show a modeless toolbox. If the user has shown the toolbox, I'd like to hide and show it appropriately as the UserControl itself becomes invisible or visible, respectively. The UserControl can be embedded in an arbitrary number of parent containers, such ...

MaskedEdit Extender lost data on postback

I am currently developping an web site that require DateTime entry and I am using MaskEdit extender on the TextBox used to enter the date and time. These DateTime are used as input to compute the total hours and other stuff that need to be displayed back on the same page (for previewing) However, after the postback using MS AJAX, my com...

2.0/3.5 assemblies side-by-side

I have a web application that I expect to intergrate features in assemblies from two separate providers. One set (Set1) of assemblies is build on .NET 2.0 while the other set (Set2) of assemblies ABSOLUTELY requires .NET 3.5. For Set2 assemblies to work, I have to add a (system.codedom) section to web.config and specify the v3.5 compiler...

.net - Glass effect in C# 2.0 applications.

How can I give a Vista or Mac OS X style glass effects on windows forms applications in .net 2.0? ...

C# - Winamp Style 3-Window snapped application

How can I create a Winamp-Style multiple-form snapped application in C# and .net 2.0? ...

How to resolve XSL includes in a Transformation that loads XSL from a String?

.NET 2.0/VS2005 I am trying to use the XslCompiledTransform class to perform a XSL Transformation. I have two XSL files, the first of which includes a reference to the other in the form of an <xsl:include> statement : Main.xsl: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:include href="Incl...

HiddenField control maintaining viewstate

Hi, I have a strange problem. While populating formfields, the values are maintained when clicking a'submit' button that causes the page to proceed to the next stage. I try to populate a hidden field from the code behind on the event of a 'find 'button click (before clicking this 'submit' button and this works. But the value is not mai...

Should I precompile ASP.NET 2.0 sites before deployment or not?

Where I work, we do a very large number very small ASP.NET apps, and it has happened a few times that sites have been deployed in precompiled format, and the app needs to be changed, but the version of the code available in source control is out of date and the developer is not available. The app's dll has to be decompiled and hacked bac...

Using XML datasets for a Crystal Report

We have this XML schema: <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:element name="Log"> <xs:complexType> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="LogEntry" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:sequ...

Can sn.exe utilize the Windows certificate store?

For signing an assembly with sn.exe in .NET, is it possible to specify a public key for which the private key is contained only within the Windows CryptoAPI keystore? I see the option for specifying the CSP name, and the container name. Are there values to use to access the Windows certificates? (i.e. those accessible from Windows EFS,...

Filtering data in GridView in .net2.0

I have a page that uses GridView to display some data taken from a stored procedure <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString1 %>" SelectCommand="p_get_all_students" SelectCommandType="StoredProcedure"> </asp:SqlDataSource> One of the columns re...

Can you create sub-applications within applications in IIS/ASP.Net

We have a global application (well out of my control) that runs a lot of sites. I'd like to create a new application (as I cant extend etc) within a folder so it could be accessed as follows. http://www.domain.com/ < Global App http://www.domain.com/newapp < New App Is this actually possible or just a pipe dream; I'm aware that its p...

GUI to Business Object Mapping VB.Net

The issue I'm currently having is mapping multiple GUI fields to object properties (i.e. Presentation layer to Business Logic Layer mapping). To be more specific, this is in VB.Net 2.0 WinForms. The nature of the solution requires us to have 4 columns which exhibit the same type of behavior on our GUI - each column consisting of 11 tex...

Timeout Errors occuring when calling web service in c# .Net 2.0

I have inherited some code and I'm not very familiar in dealing with web services. Here is how the project is set up: Under "Web References" there is a reference to the web service we are using. In that service's Reference.cs file there is class that inherits from SoapHttpClientProtocol, this class has a function called CandidateAdd()...

Winforms .net 2.0: binding a textbox to a parent property

Hey All, I've got a strongly typed dset, w/two datatables: Parent and Child, w/a relation linking them in the way you'd expect (e.g. parent-has-many-children). On my Child Detail form, I show lots of info on the current child, w/binding calls like so: me.txtBirthDate.DataBindings.add(New Windows.Forms.Binding("Text", MyDataset, "Child...

.NET 2.0 compiled app fails on machine without .NET 3.5 runtime

Hi I have compiled a NET 2.0 application using C# 2005 Express on a machine that also contains VS 2008 Express. When I run the app on a machine with .NET 2.0 SP1 runtime only the application doesn't execute and raises an error about sending report to Microsoft etc. I have the impression that the compiler silently referenced certain 3.5 ...

Compare dataset or a better idea

How do I compare values of one data set from another. 1st dataset["proper records"](coming from sqlserver, with column name [id],[subsNumber]), 2nd dataset["proper and inproper records"](coming from progress database, with diffrent coulums except 1 which is[subsNumber]). how do I go and make another dataset which has all the [subsNumbe...