Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Value cannot be null parameter name: context !!!????
 

Value cannot be null parameter name: context !!!????

When i try to Save the changed properties (eg. Anchor) of TableLayoutPanel control (or any other control) in VS 2008 designer an error is being displayed - "Value cannot be null parameter name: context". I am totally stuck.

Some background:

This project (which i am working on) is developed in 1.1 , upgraded to 2.0 and now to 3.5. When I try to open form designer i am getting *** lot of errors. I selected "Ignore and Continue" option of VS 2008 designer. After adding TableLayoutPanel (in my case) control to the form and changing Anchor and Autosize property values when trying to "Save" error is being displayed.

Any Ideas?

Thanks

santoshk1  Thursday, August 28, 2008 7:39 PM

Hi,

Probably there might be some custom properties or other properties in the usercontrol which might not have been initialized.Do check for those.

Subhanet

subhanet  Friday, August 29, 2008 6:00 AM

Hi Santoshk1

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

Best wishes

Jun Wang

Jun Wang Tim  Wednesday, September 03, 2008 6:36 AM
WhenI try to save changed propertiesduring thedesignof a WindowsUserControl with TableLayoutPanel controls and other controls in VS 2008 SP1Designer an error is being displayed - "Value cannot be null parameter name: context".After this other controls are messed up and some I can't even see. For example, I can select some RadioButtons that are inside aGroupBox, but they cannot be selectedin the Designer. Other TextBoxes inside of a TableLayoutPanel that previously had ColumnSpan set are no longer set as designed. The error doesn't happen every time I save, but ithappens often, and it is making development take much longer than expected.I am having to incrementally save and then go back to prior versions when the error happens.I am on a tight development schedule. What can I do?
_dog  Monday, March 23, 2009 3:21 PM
I have the same issue in VS2005 SP2, I just replied here about it : http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/337185b1-b421-4e99-b94b-5d4533f4b044
Stonkie  Friday, September 04, 2009 10:09 PM
I also had this problem with the Error Message andwrong RowSpan in a TextBox when I localize the Application.
When this problem occured, I take a look to the *.Designer.cs File.
In this file there are a lot of properties with null values.
this.AccessibleDescription = null;
this.AccessibleName = null;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = null;
this.Font = null;
this.Icon = null;
this.Name = "Form1";

normally the code must be:
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Name = "Form1";
Pablo1397  Friday, September 25, 2009 9:20 AM

You can use google to search for other answers

Custom Search

More Threads

• Rich text box selection problem
• EditorAttribute issue with Common Types
• Multi select drop down and data binding
• ControlDesigner class not found!!!
• Custom Control: How to move?
• ExpandableObjectConverter - given context, obtain PropertyGrid.SelectedObject ?
• ListView columns property is readonly and disabled in Form designer
• Update listbox selected item
• Accessing component from another form
• Icon transparency fails in ListViews etc.