My project is on .Net V2.0, some of controls are in public, when change form in design mode this controls changed to private. how can i fix this? thanks. When Modifier changed to private, in Property Tool Box Modifier property not show. many of controls go to
below section of form in picture 2.
Asked
Active
Viewed 1,982 times
1

Hajitsu
- 764
- 17
- 49
-
I've seen this kind of total designer failure before. As yet, never diagnosed by the victim. You'll need to consider restoring the last working version from source control to recover from this. – Hans Passant Jul 14 '13 at 10:08
2 Answers
3
I assume you are making the controls public by editing the Designer.cs
file, there is a reason they put the warning in there that your changes will be lost.
The correct way is to mark the control's Modifers
setting to public
in design view from the properties menu for your control.
EDIT: Well I'll be damned, you don't have a modifiers option. Well, here is a workaround, create a property that is public that you control that can point at the private member.
public RadPageView pgvTabsPublic
{
get {return pgvTabs;}
}
Using this you can have other classes call yourForm.pgvTabsPublic
and it will point them to the internal private pgvTabs
member.

Scott Chamberlain
- 124,994
- 33
- 282
- 431
-
I changed in `Designer.cs` but after change the form, modifiers changed automaticly. In design Mode i can't select the control – Hajitsu Jul 14 '13 at 07:25
-
Why can't you select the control? Does it not show up in the dropdown (where it says "**button1** System.Windows.Forms.Button" on my image)? – Scott Chamberlain Jul 14 '13 at 07:27
-
Yes, only can select from DropDown but in property list, Modifier don't be show. – Hajitsu Jul 14 '13 at 07:29
-
So if you selected it from the dropdown list, `Modifers` does not show up under the list of settings you can set? I hate to say I don't believe you, but can you edit your original question and include a screenshot of the `Modifiers` option being missing? – Scott Chamberlain Jul 14 '13 at 07:31
-
-
@1mohammadi.ir I am sorry for not believing you, I have updated my answer with a workaround you can use. – Scott Chamberlain Jul 14 '13 at 07:46
0
This problem for Version of telerik i use, before i use version 2012 and now use 2013,fix it and work it, thanks

Hajitsu
- 764
- 17
- 49