I tried this on one of my programs:
-add notify icon (new1 + add)
- add flb.minimizebox
- cancelclose on the form_close
now the main form has X instead of OK, and it minimizes. In today screen the icon is on the bottom right.
To close the application - you must find a way (there is always the reset...)
Sub App_Start
Form1.Show
ni.new1
ni.add
hardware.New1
End Sub
Sub Button1_Click
flag = 1
AppClose
End Sub
Sub form1_close
If flag = 0 Then
form1.cancelclose
hardware.ShowTodayScreen
End If
End Sub
Sub ni_click
form1.show
End Sub
flb.New1("form1" ,B4PObject(1) )
flb.MinimizeBox = True
Error Compiling program.
Error message: error CS1525: ')' è un termine non valido nell'espressione
Line number: x
Line: ni.new1
With this code, I can minimize the Form on device but I can't see the icon, because I receive the usual error if I add the NotifyIcon library and try to compile it!derez; said:Or, with Formlib instead of hardware, using minimizebox (again, since I don't see the icon - I can't check it):
B4X:flb.New1("form1" ,B4PObject(1) ) flb.MinimizeBox = True
I am not shure if the attached program does what you are looking for.
It uses the Door library and the Form Activated event.
Best regards.
Ghale !
Just to cause you heart aches...
See the attached notify icon of my navigation program, but I don't know why it works there.
I will look at it thoroughly tomorrow.
derez said:I couldn't wait till tomorrow, found it :icon_clap:
You must have an icon for the program, then this icon will appear minimized...
Tha attached program works.
Error Compiling program.
Error message: error CS1525: ')' [I]è un termine non valido nell'espressione[/I].
Line number: 8
Line: ni.new1
You need to add the ni(notify icon???) dll, through the usual way... components, etc..
Ehm, Cableguy... I always added the dll...
The error is for the constructor ni, but the error is not referred to an uniniziatized object.
You draw me really noob!
Sorry!!!It was NOT intented to...:sign0013::sign0188:
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?