Search found 76 matches

by xinjie
Wed Oct 30, 2024 12:16 pm
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

Hi, Chris,Robert and Fab Thank you very much for your help! I need to digest the default value issue because I have very little dotnet knowledge. Chris,the way you offer the subscription works. Through this period of study and testing, I've realized that for VFP developers, sometimes things can't be ...
by xinjie
Wed Oct 30, 2024 2:51 am
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

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 ...
by xinjie
Wed Oct 30, 2024 1:08 am
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

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 ...
by xinjie
Tue Oct 29, 2024 11:32 pm
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

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 “ ...
by xinjie
Tue Oct 29, 2024 1:11 pm
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

Hi, Chris

Thank you very much for your advice. I think for me personally, using strong types should be easy to adapt to.
I need to change one of my very bad habits which I picked up in VFP. Namely, sometimes using undefined variables just to implement the code quickly.
by xinjie
Tue Oct 29, 2024 11:29 am
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

Hi, Chris I think I might use the macrocompiler although I'm not using it right now. In terms of VFP conventions, I would expect the macrocompiler to recognize locals variable. Here is my personal opinion: For global variables, I try to avoid using them, even in VFP. It reduces the readability and m ...
by xinjie
Tue Oct 29, 2024 10:57 am
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

Hi, Chris Thanks again! The option to enable the memvar switch is actually intended for use with fox2+. This is because the documentation states that “This option is also needed in the FoxPro dialect if you want to make local variables visible to the macro compiler with the -fox2 compilation option.” ...
by xinjie
Tue Oct 29, 2024 2:16 am
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

Hi, Chris

Thanks! Attached is the source code.
test.zip
(1.41 MiB) Downloaded 36 times
by xinjie
Mon Oct 28, 2024 5:07 am
Forum: Visual FoxPro
Topic: Unable to open forms created based on customized winform classes using the form designer
Replies: 21
Views: 577

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

Hi, Development Team I encountered the following problem as I continued my testing. Since my knowledge of DotNet is extremely limited, the following account may be verbose. First, I created a custom class in the class library project that inherits from System.Windows.Forms.Form because I want forms ...