When you develop a custom web part in visual studio 2010, you can set this chrome type to none. So that the title will not appear at the time of web part adding.
To do this, open the .webpart file of relevant visual webpart, and set the following property under properties
<property name="ChromeType" type="chrometype">None</property>
The complete .webpart file look like this.
<?xml version="1.0" encoding="utf-8"?>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Gadgets.Weather.Weather, $SharePoint.Project.AssemblyFullName$" />
<importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">Weather</property>
<property name="Description" type="string">My Visual WebPart</property>
<property name="ChromeType" type="chrometype">None</property>
</properties>
</data>
</webPart>
</webParts>
Very nice and precise article. Cheers :)
ReplyDelete