Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > Problem in inherited form (VS.Net 2010, WinForms).


Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2012, 10:08 AM
priyamtheone priyamtheone is offline
Regular
 
Join Date: May 2008
Posts: 69
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?
Reply With Quote
  #2  
Old 08-05-2012, 04:40 PM
Qua's Avatar
Qua Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Location: 127.0.0.1
Posts: 2,171
Default

This is not possible without extending the functionality of Visual Studio. You can, however, display a default text such as the name of your form control.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #3  
Old 08-06-2012, 10:29 AM
priyamtheone priyamtheone is offline
Regular
 
Join Date: May 2008
Posts: 69
Thumbs up

Yeah, it seems the naming of forms is done by the design IDE. It is not part of the Form Class. Thanks. I opted to set a default text in MyForm.
Reply With Quote
Reply

Tags
.net 4.0, csharp, visual basic 2010, visual studio 2010


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->