Hello,
can somebody send me an example vb.net code to open a MDIWindow from a normal page?
I will use it to edit a database record. thanks in advance.
Hi Bjorn,
For the MdiParent form the programming model is identical to WinForms (in VB.NET as well as C#, and F# or even Python.NET or any other .NET language. OT: In fact I believe you can create COBOL .NET web apps with Wisej…) You create an Mdi Parent creating a Form (the template is Empty Window), then:
Dim mdi as New Form1() ' <-- this is the one with IsMdiContainer = true Dim form1 as New Form1() ' <-- this is the mdi child. form1.MdiParent = mdi form1.Show() mdi.Show()
As for the Page container, that’s a page, it will the browser and you can drop control on it. It’s not needed to work with forms. They can work together though. There is a nice sample that you can run to see all the different containers interacting, it’s UIContainers on GitHub.
HTH
Hello,
i found the code on the internet.
this ticket can be closed
vb.net code to open popup window
Dim window1 As New Window1
window1.ShowDialog()
Hi, thanks for the link but it doesn’t contain what i really need.
i have add “MDI Window” but I need to know how I can active/show/close from my page1 ??
maybe i add the wrong item but what i would like to have is, that my page stays open, but that a popup shows up.
and after update i can close this popup window. any idea ?
be aware i’m using vb.net language.
regards,
bjorn
Hi Bjorn,
The example you attached is the one on our GitHub Wisej-Examples repository. I’m afraid all our samples are C#. I must say the technical documentation is language agnostic and thus is usefull for both C# and VB.NET.
Anyway I used Instant VB – C# to VB.NET Converter/ to convert the project to VB (see attached file). There are other C# to VB converters around, some of them online like https://codeconverter.icsharpcode.net/
Using one of these converters and the Wisej online documentation, you can have a look at the examples and see how things are done.
Hello,
the example i receive from Frank is written in C#, I only can program in vb.net
regards,
bjorn
Hi Bjorn.
I suppose you have a sample that doesn’t behave like you expected. Can you attach it please?
Please login first to submit.