[SOLVED] Web Page Application and Desktop

Answered Closed
0
0

Hi Team,

I Have a web page application.

On Page I put a Desktop where show the wiswj.web.forms.

On load event of page1 i put the follow code:

Private Sub Page1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

Application.Desktop = Desktop1

Dim f As New Form
f.Show()

End Sub

If I understand correctly the form should be shown inside the desktop.

But as shown in the attached image this does not happen. I forgot something?

I have also attached a sample project.

Thanks in advance

 

 

 

  • You must to post comments
Great Answer
0
0

Hi Angelo,

The fix for this issue is released in Wise 2.5.26 .

Best,

Alaa

  • You must to post comments
0
0

Hi Alaa,

I just tried and it works

thanks

  • You must to post comments
0
0

Hi Alaa,

I just tried and it works

thanks

  • You must to post comments
0
0

Angelo

The fix of this issue will be available in the next release

Regards and thanks

  • You must to post comments
0
0

Hi Luca,

I tried your suggestion in the Desktop_test_1.zip test application I attached, but it still doesn’t work for me.
Can you attach a working version?
My Wisej version is 2.5.24.

Tankhs

  • You must to post comments
0
0

There is a regression introduced because of trying to prevent assigning both Application.Desktop and Application.MainPage. Both cannot work when the MainPage also has a desktop and the window ended up showing in the the other desktop – there can be only one active desktop.

In any case, your code should work correctly (after removing the Application.Deskop assignment) after we fix the current regression in this upcoming release build. If you need a workaround, do this in your code

 

Private Sub Page1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
   Dim f As New MyForm
   f.Show()
   Application.Desktop = Me.Desktop11

End Sub

 

  • You must to post comments
0
0

Thanks Alaa for the answere.

But that’s not wath i want. I try to explain better my need.

I want to open a page on browse from sub main.

Public Sub Main()

Application.Desktop = New Desktop1
Dim f As New Page1
f.Show()

End Sub

Inside page I put some controls and one desktop.

Inside desktop I want to open my forms.

See  image and sample attached.

 

  • You must to post comments
0
0

Hi Angelo,

What you need to do is to create a component that’s based on the Desktop component AND set Application.Desktop to it in the Main method of the Program.vb file.

And from there you can also show a particular Form.

I modified your sample so that it meets your needs, otherwise, you can always create a new desktop application directly from a template.

HTH,
Alaa

Attachment
  • You must to post comments
Showing 8 results