Unable to open forms created based on customized winform classes using the form designer

This forum is meant for questions about the Visual FoxPro Language support in X#.

User avatar
Chris
Posts: 4845
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Unable to open forms created based on customized winform classes using the form designer

Post 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...
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
xinjie
Posts: 99
Joined: Wed May 20, 2020 10:05 am
Location: China
Contact:

Re: Unable to open forms created based on customized winform classes using the form designer

Post 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.
Last edited by xinjie on Tue Oct 29, 2024 11:44 pm, edited 1 time in total.
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
User avatar
Chris
Posts: 4845
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Unable to open forms created based on customized winform classes using the form designer

Post 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.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
xinjie
Posts: 99
Joined: Wed May 20, 2020 10:05 am
Location: China
Contact:

Re: Unable to open forms created based on customized winform classes using the form designer

Post 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?
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
User avatar
Chris
Posts: 4845
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Unable to open forms created based on customized winform classes using the form designer

Post 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?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
xinjie
Posts: 99
Joined: Wed May 20, 2020 10:05 am
Location: China
Contact:

Re: Unable to open forms created based on customized winform classes using the form designer

Post by xinjie »

Hi, Chris

The following screenshots are arranged according to the operation steps:
step1.png
step2.png
step3.png
step4.png
step5.png
step2.png
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.
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
Post Reply