[NF] Winforms

2021-08-17 Thread Graham Brown
Hi all Are there any VB.NET Winforms gurus around. I am struggling with custom controls in Winforms. So when I start a new project in Visfox I create custom VCXs for the different forms and form controls. I then use these custom controls throughout the project. I can create an inherited form w

[NF] Winforms

2021-08-19 Thread Graham Brown
Hi all Are there any VB.NET Winforms gurus around. I am struggling with custom controls in Winforms. So when I start a new project in Visfox I create custom VCXs for the different forms and form controls. I then use these custom controls throughout the project. I can create an inherited form wit

Re: [NF] Winforms

2021-08-18 Thread Alan Bourke
It's been many years since I used WinForms but if I remember visual inheritance and WinForms designer support in Visual Studio don't work the same as you would be used to from VFP or VB6. Basically you have to programmatically add designer support, or as you say programmatically update any contr

Re: [NF] Winforms

2021-08-18 Thread Stephen Russell
You could create a project where you subclassed any form widget in your way. Then in every new solution, you include that project and use those classes at the top instead of: using System.Windows.Forms.Form you would use : using MyUberCoolSystem.Windows.Forms.Form Just like you had to do in VF

RE: [NF] Winforms

2021-08-18 Thread Graham Brown
-- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Stephen Russell Sent: 18 August 2021 17:12 To: ProFox Email List Subject: Re: [NF] Winforms You could create a project where you subclassed any form widget in your way. Then in every new solution, you include that project and use those cla

RE: [NF] Winforms

2021-08-18 Thread Graham Brown
om Subject: Re: [NF] Winforms It's been many years since I used WinForms but if I remember visual inheritance and WinForms designer support in Visual Studio don't work the same as you would be used to from VFP or VB6. Basically you have to programmatically add designer support, or as you

Re: [NF] Winforms

2021-08-20 Thread Alan Bourke
On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote: > What am I missing? You're not missing anything. Visual inheritance in the Windows Forms designer does not work like VFP, Delphi or whatever. It didn't in 2002, and on inspection still doesn't now. This is how you do it with a UserControl

Re: [NF] Winforms

2021-08-20 Thread Matt Slay
Here’s a YouTube video I made about WinForms UserControl and how it does not work like our beloved FoxPro does. https://youtu.be/gWONvlLSq3U Matt Slay > On Aug 20, 2021, at 6:01 AM, Alan Bourke wrote: > > On Wed, 18 Aug 2021, at 5:34 PM, Graham Brown wrote: > >> What am I missing? >

Re: [NF] Winforms

2021-08-20 Thread Alan Bourke
Graham I'd definitely consider Windows Presentation Foundation over Winforms if this inheritance thing is a problem for you, because WPF *does* support that sort of visual inheritance, and i will set you up for WinUI going forward. -- Alan Bourke alanpbourke (at) fastmail (dot) fm ___

Re: [NF] Winforms

2021-08-20 Thread Ted Roche
On Fri, Aug 20, 2021 at 8:44 AM Matt Slay wrote: > Here’s a YouTube video I made about WinForms UserControl and how it does > not work like our beloved FoxPro does. > > https://youtu.be/gWONvlLSq3U > > > That's a great demo, Matt! --- StripMime Report -- processed MIME parts --- multipart/alter

Re: [NF] Winforms

2021-08-20 Thread Stephen Russell
That text goes into the details of how I said to do it. Thus I agree that it can be done and re-used. Now the Q I have is WHY? If you have branded UI button styles? What else are you extracting to re-use with your enhancements on time and again? Create the control library project Define a cus

Re: [NF] Winforms

2021-08-20 Thread Christof Wollenhaupt
> I'd definitely consider Windows Presentation Foundation over Winforms if this > inheritance thing is a problem for you, because WPF *does* support that sort > of visual inheritance, and i will set you up for WinUI going forward. Coincidentally, there is also a session about using WPF in Visual

Re: [NF] Winforms

2021-08-20 Thread MB Software Solutions, LLC
Wow...I see you created that in 2019.  I can't believe what I saw...I'd have expected it to work much better than that.  VFP has been off-support officially for 4+ years by that time yet the "old girl" still looks better for designers given this obvious shortfall. On 8/20/2021 8:44 AM, Matt S

RE: [NF] Winforms

2021-08-20 Thread Graham Brown
o: profoxt...@leafe.com Subject: Re: [NF] Winforms Graham I'd definitely consider Windows Presentation Foundation over Winforms if this inheritance thing is a problem for you, because WPF *does* support that sort of visual inheritance, and i will set you up for WinUI going forward. --

Re: [NF] Winforms

2021-08-20 Thread Eric Selje
That is a shortfall, but WPF does a lot of things that we would LOVE to have in VFP (e.g. CSS llke Styles, much better responsiveness than our anchors, etc.) Eric On Fri, Aug 20, 2021 at 12:26 PM MB Software Solutions, LLC < mbsoftwaresoluti...@mbsoftwaresolutions.com> wrote: > Wow...I see you c

Re: [NF] Winforms

2021-08-24 Thread Alan Bourke
> Thanks for all your replies. Don't understand why Microsoft haven't sorted > visual inheritance properly. You're assuming that they view it as a problem. If they did they'd have fixed it in the .NET Core version of WinForms. -- Alan Bourke alanpbourke (at) fastmail (dot) fm _