Search found 1148 matches

by cogier
Tuesday 15th October 2024 4:29pm
Forum: General
Topic: add command text output to textarea.
Replies: 12
Views: 651

Re: add command text output to textarea.

Try this: -

Public Sub Form_Open()
  
  Dim sResult As String
  
  Shell "ls -a" To sResult  
  TextArea1.Text = sResult
  
End
by cogier
Monday 14th October 2024 2:15pm
Forum: Beginners
Topic: get expressvpn status on load
Replies: 6
Views: 384

Re: get expressvpn status on load

What's wrong with living on an island? We are all very nice, you know!!!
by cogier
Monday 30th September 2024 3:35pm
Forum: Beginners
Topic: Load available printers to a combobox
Replies: 5
Views: 1036

Re: Load available printers to a combobox

Well, here is my solution. The code requires that ComboBox1 to be on the Form. Public Sub ListPrinters() Dim sPrinters As String[] 'To store the printers Dim sList, sDefault As String 'sList will store all the Printers, sDefault will store the Default Printer Dim iLoop As Integer 'Loop counter Shell...
by cogier
Monday 9th September 2024 2:10pm
Forum: General
Topic: Open a form in code
Replies: 11
Views: 5861

Re: Open a form in code

Sorry Bill, but I don't understand. Can you post some code we can look at.
by cogier
Monday 9th September 2024 2:06pm
Forum: Beginners
Topic: gbr3: unable to load component: gb.gui
Replies: 5
Views: 1691

Re: gbr3: unable to load component: gb.gui

To use Synaptic:- Open Synaptic, click on 'Search', enter 'gambas3' and click on Search. https://www.cogier.com/gambas/Synaptic-1.png When the search is complete, click on any of the items and select all with [Ctrl]+A. Now right click and select "Mark for complete removal". Now click "...
by cogier
Sunday 8th September 2024 2:20pm
Forum: General
Topic: Open a form in code
Replies: 11
Views: 5861

Re: Open a form in code

Does this help? Public TheForm As Form Public Sub Form_Open() Me.Close With TheForm = New Form As "TheForm" .H = 300 .W = 300 .Background = Color.Blue .Center .Show End With Wait 3 TheForm.Hide Wait 3 TheForm.Show Wait 3 TheForm.Close End
by cogier
Sunday 8th September 2024 10:09am
Forum: Beginners
Topic: gbr3: unable to load component: gb.gui
Replies: 5
Views: 1691

Re: gbr3: unable to load component: gb.gui

Welcome to the forum. The repos version of Gambas in Ubuntu 22.04 was not very good. I suggest you use Synaptic to COMPLETELY remove Gambas, then run the following command that will install the latest stable version from the ppa. sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt...
by cogier
Friday 6th September 2024 2:28pm
Forum: General
Topic: Need another approach for program
Replies: 13
Views: 4050

Re: Need another approach for program

I don't know if I fully understand your request, but have a look at the attached program.
Timers-0.0.1.tar.gz
(7.76 KiB) Downloaded 287 times
by cogier
Friday 6th September 2024 7:16am
Forum: General
Topic: Where these documents now?
Replies: 1
Views: 939

Re: Where these documents now?

Have a look here https://gambaswiki.org/wiki. If that's not what your after let us know.
by cogier
Thursday 29th August 2024 2:44pm
Forum: Beginners
Topic: iconView control
Replies: 10
Views: 4030

Re: iconView control

Try changing the Click to MouseDown

Public Sub IconView1_MouseDown()
  
  
  IconView1.Add("Test1", "Test text", Picture[Application.Path &/ "icon.png"])
  
End