Problem in inherited form (VS.Net 2010, WinForms).


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Problem in inherited form (VS.Net 2010, WinForms).

  1. #1
    Join Date
    Mar 2009
    Posts
    67

    Question Problem in inherited form (VS.Net 2010, WinForms).

    I built a ClassLibrary where I have created my custom form component (let's say MyForm) that inherits from the Form class. I added the ClassLibrary to my actual WinForms project. Now when I add an inherited form based on MyForm to my project through the 'Add New Item' dialog box for the first time, its Text property remains blank by default. But when you add a standard form to a project, its Text is set to its Name by default. This is what my requirement is. I even tried to set the Text property in MyForm's constructor, yet it isn't working. How to solve this?

  2. #2
    Join Date
    Mar 2009
    Posts
    67
    The naming of forms is done by the design IDE. It is not part of the Form Class. The IDE sets the name of a form to its text by default when it is created from the 'Add New Item' dialog box. But it's not done in case of inherited forms. Seems I have to set a default text in MyForm's constructor.

Similar Threads

  1. VB.Net 2003 FORM KEYDOWN problem
    By Lennie in forum .NET
    Replies: 7
    Last Post: 12-24-2009, 06:06 PM
  2. VS.Net 2005 design mode problem
    By roshan_k in forum ASP.NET
    Replies: 4
    Last Post: 06-08-2007, 07:22 AM
  3. Form inputbox problem
    By DaveC in forum .NET
    Replies: 0
    Last Post: 07-26-2006, 09:24 AM
  4. Problem validating form NEED HELP
    By Steve in forum Web
    Replies: 1
    Last Post: 01-04-2002, 04:32 AM
  5. Form Problem In Netscape
    By Dan in forum Web
    Replies: 3
    Last Post: 11-23-2001, 05:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center