.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Creating / Working with Custom Forms in Visual Studio

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
 

This is what I *want* to do, but am not sure of best practices, etc:

I create and deploy my lists from Visual Studio. I now want to modify the default dispForm for the list. Open Sharepoint Designer, make all of the desired changes in my display form (eg link to another list and display related items). Now I want to get that form into Visual Studio so that I can deploy it as part of my solution.

Tried viewing generated code in Sharepoint Designer, and bringing it in to the schema.xml of my list, in the <form> section, wrapped in CDATA - that didn't go.

Tried saving my entire site (with custom form) as a package, saved .wsp, renamed to .cab, opened, grabbed modules/elements.xml and opened. Pulled out the custom form section (<File Url="myForm.aspx">...</File>) and added it into a module under my list instance. Referenced it from the <forms> section of schema. Like:

      <Form
        Type="DisplayForm"
        Url="myForm.aspx"
        SetupPath="pages\form.aspx"
        WebPartZoneID="Main"
        UseDefaultListFormWebPart="False"



View Complete Post


More Related Resource Links

Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverlight 3

  
Learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverli

  
Watch the video that accompanies the MSDN article and learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Creating Custom Extensions for SharePoint 2010 Development Tools in Visual Studio 2010 (Visual How T

  
Watch the video and explore the code as you learn to create custom extensions using the SharePoint 2010 development tools in Visual Studio 2010.

Video: Creating Custom Extensions for SharePoint 2010 Development Tools in Visual Studio 2010

  
Watch this visual how-to video and learn to create custom extensions using the SharePoint 2010 development tools in Visual Studio 2010.

Toolbox: Database and OR/M Tools, Oren Eini and Custom Visual Studio Tabs

  

This month we look at tools for enhancing the LINQ to SQL and Entity Framework designers, Oren Eini's .NET development blog, Visual Studio tab customization, and more.

Scott Mitchell

MSDN Magazine December 2009


Smart Tags: Simplify UI Development with Custom Designer Actions in Visual Studio

  

Windows Forms 2.0 components expose smart tags by utilizing Designer Actions. By taking advantage of this feature, you can add smart tags to your own custom components to make setting their properties and other actions much easier and developer-friendly.

Michael Weinhardt

MSDN Magazine July 2005


Visual Studio .NET: Building Windows Forms Controls and Components with Rich Design-Time Features, P

  

This is the second of two articles discussing the extremely rich design-time features of the .NET Framework. Part 1 discussed the basics, showing you where to start and how to extend your control implementation through attributes and interfaces, as well as their effects on the property browser, code serialization, and other controls. Part 2 continues the journey by concentrating on design-time functionality that you can implement beyond your components and controls, including TypeConverters, UITypeEditors, and Designers. It would be impossible to cover everything you can do in two short articles, which is a testament to just how all-encompassing and flexible the design-time capability of the .NET Framework is.

Michael Weinhardt and Chris Sells

MSDN Magazine May 2003


Visual Studio .NET: Building Windows Forms Controls and Components with Rich Design-Time Features

  

Visual Studio .NET provides support for designing rich features into your controls and components, allowing you to set properties, set form placement, inherit from base classes, and much more. So how does Visual Studio .NET do all this? What does the Windows Forms designer do? What's the difference between a control and a component? How does Visual Studio integrate your controls so that they can access features of the .NET Framework?In this article, the authors answer these common questions by building a clock control and taking the reader along for the ride. In building the control, hosts and containers are illustrated, the property browser is explained, debugging is discussed, and a general overview of the design-time infrastructure is presented.

Michael Weinhardt and Chris Sells

MSDN Magazine April 2003


Go International!: Let Your Apps Span the Globe with Windows Forms and Visual Studio .NET

  

How would an English speaker feel if his car's owner's manual was written in German or if the dash board markings were written in Japanese because the car was manufactured in that country? This is an experience common to computer users all over the world who don't speak English as their primary language, and it's becomming more important. The Microsoft .NET Framework not only makes it possible to build international applications, but many of the tools such as Visual Studio .NET make it quite easy. This article looks at internationalization with .NET and presents real tools you can use to make all of your Windows Forms applications global-ready.

Jason R. Bell

MSDN Magazine June 2002


Visual Studio .NET: Custom Add-Ins Help You Maximize the Productivity of Visual Studio .NET

  

Regardless of how great an integrated development environment (IDE) is, there will always be features that developers wish had been included. For that reason, the Visual Studio .NET IDE provides an extensive add-in facility that allows you to add nearly unlimited numbers of features and functionalities written in Visual Basic, C, C++, C#, or any .NET-compliant language. This article explains how add-ins work in Visual Studio .NET. It then shows how to add custom text editing by creating an add-in with two editing functions, a simple text insert of the current date, and a more complex function to reformat paragraphs of text. Finally, you'll learn how to add a page to the Options dialog.

Leo A. Notenboom

MSDN Magazine February 2002


Video: SharePoint 2010: Creating .NET Assembly Connectors in Visual Studio 2010 Support

  
Learn how the inclusion of Business Connectivity Services (BCS) creates opportunities to leverage SharePoint features and APIs against your existing line of business data that is available via direct database access or via Web services. (Length: 5:41)

Video: Creating SharePoint 2010 Workflows in Visual Studio 2010

  
This demonstration shows how to create a site workflow by using Visual Studio 2010. (Length: 6:19)

make a form parent to all other forms in visual studio c#

  
i have created 2 forms child.cs and parent.cs. I have added the menustrip in parent form. I want that menu strip to be displayed in the child form also. How can i do that? Or else I want to make the parent.cs as the common form to my child.cs. Please help me with the coding that i can understand

Visual Studio Hangs when Creating a New Website or Project

  
Greetings, Just as the subject says, my VS'05 installation hangs when trying to create a new website.  I even installed a fresh version of VS08 along side '05 and '08 is doing the same.  Any ideas on a fix or where to look? Thank you in advance. 

InfoPath Forms library in visual studio 2010

  
If I create a list definition of document library type, and add some new fields to the list.  Is there any way to only allow infopath forms to be submitted to the list?  And also can I change the "add new item" link on the default list to point to my infopath form?

Accessing code in InfoPath 2003 forms from Visual Studio 2005

  
Can vbscript code contained in an InfoPath 2003 form be accessed from VS2005 on a machine running Office 2010? We are testing Office 2010 our our PC's and the custom task pane code that works just fine on PC's running Office/InfoPath 2007 does not run on the test PC's. I've been reading that the vbscript code in the form can't be edited directly when opening the form in InfoPath 2010, but that's not what I'm trying to do. I want to access the vbscript code through the .Extension property of the XDocument object from client side javascript code on an .aspx page like we have done for years. The existing code, which runs perfectly on PC's with Office/InfoPath 2007,  looks like this ... var xDoc = window.external.Window.XDocument; xDoc.Extension.UserLookupDone (userid); When run on PC's with Office/InfoPath 2010 the code throws error "Class doesn't support Automation". Are we trying something that is no longer possible? Any help is appreciated.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend