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


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

creating instances of diffrent forms

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :Windows Application
 
hi. my application have a main form which is mdi container, and a couple of forms say form1 to form10. in form main i a have 10 buttons, every button onclick event  has a code similar to: Snippet   from1= new form1();                 from1.MdiParent = this                 from1.Show(); how i can refactor this code as a method and reuse them i buttons. thanks.  


View Complete Post


More Related Resource Links

creating instances of diffrent forms

  
hi. my application have a main form which is mdi container, and a couple of forms say form1 to form10. in form main i a have 10 buttons, every button onclick event  has a code similar to: Snippet   from1= new form1();                 from1.MdiParent = this                 from1.Show(); how i can refactor this code as a method and reuse them i buttons. thanks.  

Video: Creating Workflow Forms in SharePoint 2010

  
This video demonstrates how to add, design, and develop workflow initiation forms for SharePoint 2010. (Length: 3:58)

Creating report from Infopath library/submitted forms

  
Hi, I got a form that has repeating table containg data. The form is submitted to a form library on MOSS 2007 site. Some of the key fields from the form has been promoted to the library, which allows creating views and gives the user a quick report based on the filter. Now, the user wants similar function, however the data is stored in the repeating table. I can use double eval function to combine data from each columns and promote them to the library. But obviously, it doesn't give the user accurate/the kind of report he is looking for using the views. Do you have any suggestion? The only option I can think of is storing each row from repeating table into an Access database or sharepoint list. But that'll also involve making sure correct data is being updated in these secondary data source when updating the form.  Pman http://www.pmansLab.com/

Creating Web Forms Best Practice?

  
Hey all, Quick question. What is the best approach for developing web based forms in SharePoint. I have a lot of requests to take paper forms and put them online. Infopath is not really an option currently for reason I rather not get into ;-) My thoughts are you can either create a submission form by creating a custom web part and just get rid of the title bar, and things like that so it looks like a plain old form. OR Create an aspx page with an associated assembly for the submission logic and then put that assembly in the bin/gac and put the page layout into a site collection Am I way off base here?

Creating windows Forms

  

Hi, im creating windows form for project. but i realized that when I did me.show() or me.hide() for transition between pages. it has a blinking effect, instead of smooth transition. 

May I know what has caused this? 


thanks.


Claims Walkthrough: Creating Forms-Based Authentication for Claims-Based SharePont 2010 Web Applicat

  
Learn how to create forms-based authentication for claims-based web applications by using a custom membership and role provider.

Creating Menu Dynamically and Show form dynamically in Windows Forms

  

Dear All,

I am using a splitter control in windows forms. Left panel is having menus which I have populated from Database. And Right panel should display forms according to the selection from left pan.

For Eg. I  have a Main menu called Forms and got 5 Sub menus names  form1,form2,form3,form4 and form5 .When I click Form1 in Menustrip it should display Form1 on the right panel . And the same goes for all the menus.

Can you somebody guide me how can I achieve that

Best Regards

Ihsan


Sample: Creating Claims Providers for Forms-Based Authentication Web Applications for SharePoint 201

  
Explore the code as you learn how to create a claims provider for a Microsoft SharePoint 2010 forms-based authentication web application.

Claims Walkthrough: Creating Forms-Based Authentication for Claims-Based Web Applications Using ASP.

  
Learn how to create forms-based authentication for claims-based web applications by using ASP.NET SQL membership and role providers.

Sample: Claims Walkthrough: Creating Forms-Based Authentication for Claims-Based Web Applications Us

  
Explore the code as you learn to create forms-based authentication for claims-based web applications by using ASP.NET SQL membership and role providers.

Creating / Working with Custom Forms in Visual Studio

  

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"

Creating your SharePoint Governance Plan

  
One of the most common questions that I get from prospects as I'm talking to them about the creation of a governance plan and process is what does it look like. In other words, there are materials available which describe what should be in a governance plan but there isn't a ton of guidance on what the process of creating a governance plan and process are.

Creating Paging for a Repeater Control

  
A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Creating an AJAX Repeater in ASP.NET MVC

  
The "TaskList" is a tried an true example of the most basic thing that you can do in any framework. Unfortunately, I had some problems finding a really good example of all the steps necessary to get a task list to work in ASP.NET MVC 1.0.

Creating a Generic Entity Framework 4.0 Repository

  
With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

Creating a Simple Class in C#

  
The second article in the C# Object-Oriented Programming tutorial describes how classes are created in C# and how behaviour, in the form of publicly visible and private, hidden methods can be added. This demonstrates some of the uses of encapsulation

Routing for Web Forms in ASP.NET 4.0

  
posted a prototype demonstrating how one could use Routing within Web Forms. This is something you can do today with ASP.NET 3.5 SP1, because of the work we did to separate Routing from ASP.NET MVC. I would have liked to include Web Form Routing as part of the Routing feature when we were working on SP1, but we didn't have the time to do so in a robust manner before SP1 was locked down.
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