Access to Desktop properties ?

Closed
0
0

Hello!

In my Wisej app open main Desktop. On this Dektop is Menu toolbar and status label of User(in or out Sign).

Desktop open another Sign form . At this Sign form code cannot to access to Dekstop properties:

Desktop.Label1.text = “User Jan is sign”, this code not work ????

  • You must to post comments
0
1

I add readding project, with .NET8 and Wisej 3.5.7.

 

Attachment
  • Luca (ITG)
    Cast it. This is not a Wisej.NET issue.
  • Frank (ITG)
    ((MyDesktop)Application.Desktop).label1.Text=”Hello from Window1″;
  • Ainars Osmanis
    Thanks You! Now work this test!!!
  • You must to post comments
0
1

I create simple test project in attach, not work Application.Desktop.label1.Text=” Text”;

 

Attachment
  • Luca (ITG)
    Cast it. This is not a Wisej.NET issue.
  • You must to post comments
0
1

HI, Frank!

I am set ar MyDesktop designer this label1 to – public Wisej.Web.Label label1;

At attach pics can see as label1 not accessable !

 

 

Attachment
  • You must to post comments
0
1

Hi Ainars,

please make sure that your label is declared public.
Then you can simply address it with Application.Desktop.Label from anywhere within your application.

Best regards
Frank

  • You must to post comments
Showing 4 results