Page 2 of 2
Re: Unable to open forms created based on customized winform classes using the form designer
Posted: Tue Oct 29, 2024 4:32 pm
by Chris
Hi xinjie,
You're welcome! Well, most of us I think come from the Clipper days, where everything was untyped and that was ok for that time, but since then computer languages have evolved a lot, and still not using strong typing may be handy at times, but loses so much in many aspects of writing code...
Re: Unable to open forms created based on customized winform classes using the form designer
Posted: Tue Oct 29, 2024 11:32 pm
by xinjie
Hi, Chris
I think I may have found another X# bug.
You can easily verify this using the attachment I provided(
assuming that the issues raised earlier have been resolved ):
In Form1 of the Windows Forms Application project,If you type "
This." or "
self:",The list of members displayed is also “incomplete”.
It is similar to the previous “Questions about object members lists(
https://www.xsharp.eu/forum/topic/4854)”.
But other controls based on custom classes (e.g. commands/labels, etc.) seem to show the normal list of members.
Re: Unable to open forms created based on customized winform classes using the form designer
Posted: Tue Oct 29, 2024 11:42 pm
by Chris
Hi xinjie,
xinjie wrote: ↑Tue Oct 29, 2024 11:32 pm
I think I may have found another X# bug.
You can easily verify this using the attachment I provided(
assuming that the issues raised earlier have been resolved ):
In Form1 of the Windows Forms Application project,If you type "
This." or "
self:",The list of members displayed is also “incomplete”.
It is similar to the previous “Questions about object members lists(
https://www.xsharp.eu/forum/topic/4854)”.
Yes, that's the same bug.
Re: Unable to open forms created based on customized winform classes using the form designer
Posted: Wed Oct 30, 2024 1:08 am
by xinjie
Hi, Chris
I have one more question:
If I use “This.Size = System.Drawing.Size{200, 200}” in the constructor of my custom form class "Form1", then after adjusting the Size of myForm inherited from Form1, I can use the shortcut menu in the properties window to “Reset” the Size of myForm.
However, if it is another custom class, such as Command, then the Size “reset” is not the Size specified in the custom Command class, but the Size of DotNet's Command.
I haven't tested the other properties, but I'm guessing that this situation may be a manifestation of the other properties as well.
Is this a bug?
Re: Unable to open forms created based on customized winform classes using the form designer
Posted: Wed Oct 30, 2024 1:35 am
by Chris
Hi xinjie,
Sorry, I do not think I understood what you mean this time, which context menu are you using the to reset the size, and what is the Command class? Maybe you can show a couple screenshots to explain more?
Re: Unable to open forms created based on customized winform classes using the form designer
Posted: Wed Oct 30, 2024 2:51 am
by xinjie
Hi, Chris
The following screenshots are arranged according to the operation steps:
The operation shown in the above screenshot is reasonable.
However, if you are adding a custom button class to the form (that's what I mean by Command, sorry, I'm used to using VFP), then this operation will not restore the Size defined in the custom button class.