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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Component.DesignMode, ISupportINitialize Failing in Forms Designer...

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :Windows Application


Now I've come to a very weird turn of events.  My Components worked fine.  I'd Drop them on the form and they would draw themselves quite nicely.  I was checking Me.DesignMode (Inherited through Panel from Component) and all was hunky dorey.  I Proceeded to make some alterations to my Application, which involved tweaking the component library a little, making sure construction events were being triggered as necessary, and the application I was working on compiled fine and runs fine.

I started to jump to another application, which utilizes the same component libraries, and proceeded to drop one of my custom controls onto the form and the control was blank.  Empty, nada, ziltch.  So I tried running the application and the component drew just fine at run-time, but not design-time.  I have since set the control library to use devenv as the hosting process for debugging and through this process found that the Me.DesignMode was false during the Constructor phase of the component creation. 

This strikes me as strange.  Not that DesignMode was false, or that DesignMode is based upon Me.Site, the ISite property which determines the Designer Host.  But that, I Designed, Created, and Used a Set of components that worked just fine on the designer side of things and then suddenly in the middle, this would o

View Complete Post

More Related Resource Links

.NET Internals: Tailor Your Application by Building a Custom Forms Designer with .NET


The design-time architecture of Windows Forms in the .NET Framework has made development much more flexible than it had been with MFC. With Windows Forms, you can drag one of your custom controls from the toolbox and drop it onto the Visual Studio design surface and even though Windows Forms knows nothing about the control, it's able to host it and let you manipulate its properties-not possible in MFC. In this article, the author discusses what's going on under the covers as you design your forms and then walks through the creation of a bare-bones forms designer.

Sayed Y. Hashimi

MSDN Magazine December 2004

Problem with SharePoint Designer 2007 and Custom List Forms


I created several forms (Create/Edit/View) for a SharePoint list, using Custom List Forms.  I'm using Content Types in the list to ensure that each item only has the necessary fields.  When I created the ASPX forms, and inserted the Custom List Forms, I selected the correct Content Type, and I got the right fields inserted in the form.

Now, for some reason I can't identify, every time I create a new form, and insert a Custom List Form, SPD is bringing ALL fields from the list, instead of just bringing the fields included in the selected Content Type.

I have tried many different things to solve the problem, including creating new lists/content types/forms, etc. but SPD is doing the same thing all the time.

Can somebody tell me what may have gone wrong in SPD or MOSS?


Visual Studio 2008 Failing to Add New Controls into *.designer.cs

I've encountered a situation with my current project where, when I add a new control, VS2008 is not adding it into the associated Designer file.  This is occurring with both a Web Page (ASPX) and a User Control (ASCX).At first I thought it was because I was going into the layout page and manually adding a control that way.  But then when I went back to dragging the controls right from the ToolBox the problem persisted.Why is this happening and how can I fix it?Robert

How to display Initiation Forms using SharePoint Designer

hello,   Using Designer 2010 and Sharepoint Foundation, I'd like to implement initiation forms for some of my workflows. However, i can't find a good overview of the process of implementation. I do not have Infopath.  I can see the aspx files on Designer but cannot figure out how to display them to users.  Can anyone direct me to a simple how-to? Thanks! Beth Singley PBM Graphics

how to develop a custom forms designer

Hi, I'm new here in this forum and I'm sure you can help me solving a "little" issue! I'm using VB2008 express on a Windows XP Pro PC. I have to develop a software able to perform some scientific calculations in the field mechanical engineering; to be more precise, this software must be able to predict the torsional vibration behaviour of crankhsfts and drive-trains. To build my model I need a library of pre-configured elements (organised in a toolbox), that I can drag&drop in my working area and then link together properly to build the model itself. Also the load cases and the input data should be organised in a toolbox as pre-configured elements that I can chose and fill-in accordingly. The application I have in mind is something more complex as a drawing pad. To give you an example of such apps I post the link of the description of a similar software architecture, but developed for acoustic simulations (it is a pdf file) http://sidlab.se/res/Presentations/sidlab25acousticsflow.pdf   At pages 20 and 21 you can see the working area of the software with toolbox elements to build the model. I want to create a software like that. In the past I have written some code in VB6 to perform engineering calculations, but so far not a real application where the user can build a model starting from the schratch.     I need really a step by step introduction

MOSS 2007 - SharePoint Designer Workflow failing when using group vs individual user

I am creating a simple workflow in SharePoint designer that will email a selected user when a list is modified.  I am applying the condition "if modified by" in Designer.  This condition works fine and the email is sent when I select a specific user myDomain\username.  It does not work when I attempt to associate a SharePoint group with the "if modified by" filter. In my example the list has only one SharePoint group associated with it, this is the only group with permissions for the list.  The group contains multiple users. The workflow is successful with the following scenario: if modified by myDomain\user1 or if modified by myDomain\user2 The workflow fails with the follwoing scenario: if modified by mySharePointGroupName  (which includes myDomain\user1 and myDomain\user2) This would be an ungodly if statement with a large membership SharePoint group.  This would also be a nightmare as people leave the organization and their account credentials are left in the large if statement in the workflow.  Looking for the modified condition when associated with a group seems like the logical way of doing this. I also tried "myDomain\domain users" which accounts for all user in my domain, this failed as well. Any advice would be greatly appreciated.

WPF Designer failing to load in Windows 7 (x64)

I have a new, "Clean" install of Windows 7 x64 edition (hard drive re-format and all).  Installed VS 2008 + SP1 from teh MSDN DVD's.  I do have a couple of third party component sets installed.  I've searched for the errors I'm getting, and based on the common responses, I have :

1) Removed and re-installed Visual Studio.  THis changed the message, but still fails.  I did not note the first message, sorry.
2) Do not have silverlight installed (unless it comes automagically with Windows 7)
3) Have never installed any beta versions of SP1
4) Tried removing third party components.  No effect.

If I now create a brand new, empty WPF project, and try to open the designer on the main dialog, I receive the following exception :

Could not load file or assembly 'WindowsBase, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.Initialize(DefaultDomainProxy proxy)
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.Initialize(DefaultDomainProxy proxy)
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identity, Assemb

How to create a login forms in sharepoint 2010 using designer


Hello friends,

                  I am mohammad siddiqali new to sharepoint  ,I need to know how to create a login form for a sharepoint 2010



Mohammad Siddiqali

Forms Authentication with IIS 7.5 Failing


I'm working with a website that has been moved to a new server.  The forms authentication quit working.  The new server uses IIS 7.5 and windows server 2008.  After messing with the settings I got the website to work under the cookieless setting, but if change it to use cookies it doesn't work.  Anybody have any ideas of what I'm missing?



Removing forms from the List Item Menu with SharePoint Designer

In SharePoint Designer 2010, if one removes one of the default forms (say "EditForm.aspx"), how does he also remove the "Edit" option from the List Item Menu? The default forms are not represented in the "Custom Actions" pane when looking at the form settings page in SharePoint Designer.  The background is that we have created a custom form that is really add, edit and view combined into one.  We need to eliminate two of the pages and only link to the one that is left.
Rob Wilson - MCT. MCTS, MCITP, MCPD SharePoint. http://sharepointblog.kellerschroeder.com http://www.therobman.com/blog

SharePoint Designer - custom forms - DateTime fields


Whenever I create a new custom display form using SharePoint Designer the DateTime fields display value using wrong format and the time is not correct.

For example:
Default display form: 29/03/2011 11:39
Custom display form: 2011-03-29T10:39:17Z
(not only different format, but also different time)

Why is that and how can I display correct date and time using the correct format?

How to host Workflow Designer in Windows Forms


I want to host windows workflow foundation designer into windows forms so that our client can use this designer to change his design according to his needs in the future once project is completed.

But I am not getting the idea of designer hosting and which functionalities to provide while re-hosting workflow which is designed in Visual Studio.

I want to re-host the same workflow designed in visual studio in Windows Forms.


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.

Application Architecture in Windows Forms 2.0

Applications have special support in Windows Forms. For starters, you can manage and tailor your application's lifetime, and, when the work flow is disrupted by an unhandled exception, you can choose from several methods of response. Then, there are several application models that you can employ, including Single Document Interface (SDI) and Multiple Document Interface (MDI) applications, each of which can support either multiple-instance or single-instance mode, the former the VS05 default and the latter requiring special consideration. All applications, however, can discover and use a wide variety of information about the system and environment they execute in.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Explained: Forms Authentication in ASP.NET

This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.
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