VB.NET Code to open MDI window from page

0
0

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.

  • You must to post comments
0
0

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:

  • Set IsMdiContainer = true. You will see the Mdi Child Tabs in the designer. Those are not real mdi children – they are there just at design time to show the look of the tabbed mdi interface, which you can change using the properties of MdiTabProperties.
  • Do not drop controls (like you did in the screenshot you attached) on the mdi container. If you want a form with controls on it, just create the form and Do not set IsMdiContainer.
  • Now you can create your Mdi Child forms. Simply create another window and design it, here you can drop whatever control you want.
  • When you create a show the mdi child, set the MdiParent property to the mdi parent form and call show:
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

  • You must to post comments
0
0

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()

 

  • You must to post comments
0
0

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

 

  • You must to post comments
0
0

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.

Attachment
  • You must to post comments
0
0

Hello,

 

the example i receive from Frank is written in C#, I only can program in vb.net

 

regards,

bjorn

Attachment
  • You must to post comments
0
0

Hi Bjorn.

I suppose you have a sample that doesn’t behave like you expected. Can you attach it please?

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.