question

ChaniruRajapakse-0323 avatar image
1 Vote"
ChaniruRajapakse-0323 asked ChaniruRajapakse-0323 commented

WinUi 3 in vb.net forms

Is there any way to make windows apps in winui3 using visual basic .net forms app...
And is it works with win7 or other
Thanks.

windows-apidotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered Castorix31 commented

I just tested and I could create a simple window and add a Button for the test
I created a .NET 5 VB project then I added a package and copied the Main function from the DemoBuildCs MS sample (for the DispatcherQueue) + minimum code from App and MainWindow classes
But I could not use Microsoft.UI.Xaml.Application.LoadComponent ("Xaml parsing failed" error, I probably missed something...)

=>

127267-vb-winui-net5.jpg








vb-winui-net5.jpg (20.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

can you please send me an example??

0 Votes 0 ·
Castorix31 avatar image Castorix31 ChaniruRajapakse-0323 ·

I made a better sample, with still some limitaitons, but I used MddBootstrapInitialize for unpakaged apps and it needs Windows 10 >= 20H1 because of a bug
If it is Ok for Windows 10 >= 20H1, I could upload the test project...

148985-vb-winui3.jpg




1 Vote 1 ·
vb-winui3.jpg (134.9 KiB)
AddWebSolution-0525 avatar image
0 Votes"
AddWebSolution-0525 answered rrvenki commented

WinUI 3 will work with every kind of Windows app! WinUI 3 can be used directly as the UI layer for Win32 and UWP apps, or it can be used to modernize a Win32 app's UI gradually, using XAML Islands to mix and match with the following technologies:
-WPF
-WinForms
-MFC
-ComCtl32

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Question was "Can I use VB.NET language to develop apps in WinUI 3?" I don't think there is answer to this question. If you think there is answer can you please tell if there is any template in VS?

0 Votes 0 ·
ThomasMorris-8598 avatar image
1 Vote"
ThomasMorris-8598 answered

Please would you upload and share your example ChaniruRajapakse-0323

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

pkar avatar image
0 Votes"
pkar answered ChaniruRajapakse-0323 commented

If your sample still works (it was almost year ago), please upload it - and gives here link to this sample.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I got these now thanks

0 Votes 0 ·