Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with C# (Specific)

  • Utilizing Generics to make a Class structure more mutable…

    While the ASP.NET GridView control supports automatic paging I found it faster to use custom paging in several situations.  I found myself rewriting the same code over and over just to add the basic sorting capabilities to an ASP.NET GridView object.  So today I took just a little bit of time to encapsulate it all into a Class I can use and reuse on any page with a GridView.  In fact, it will probably take longer to write this blog entry than it took to encapsulate the functionality.

  • XML Driven Wizard in C#

    I am putting together a Wizard Form - you know, the type that asks many questions in a sequence - in C# for Windows UIs.  So far, it seems to be working out quite well.  The basic form of my XML is something like:

  • How to: Call a C# Windows Form from a VB6 application?

    OK. Here is the problem space: I need to prove the concept of step-by-step migration from VB6 to .NET (Windows application). To accomplish this, I would like to take a small piece of the application (new functionality) and do it in a C# Windows app *that can be hosted within a framework inside of the VB6 app*...

    I was on a project with another company (short term) where they had done this. I am not sure how they hooked into the VB MDI form but they had. They had built a container form (VB6) that hosted the C# form(s). It worked very well and allowed them to continue moving that piece of the application forward in .NET while maintaining the other pieces in VB6. As time permitted, they would redo an entire chunk into .NET. The plan was to have the entire thing ported in 12-18 months while not losing ground with an entire re-write.

    Any suggestions on how to do this?