[Gambas-user] Form open - simple question

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Apr 20 17:39:06 CEST 2013


Public Sub Form_Open()

 Timer1.Start()
 Timer2.Start()

End

Public Sub Timer1_Timer()

  Timer1.Stop

   '' Here start your progress.

End

Public Sub Timer2_Timer()

   '' Here refresh progressbar.

End


Jussi




On Sat, Apr 20, 2013 at 6:28 PM, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

> Or even better put timer to your form.
> Start the timer in Form_Open(), and in every _Timer() event refresh the
> progress bar (etc).
>
> Jussi
>
>
> On Sat, Apr 20, 2013 at 6:21 PM, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:
>
>> Use code like this to show your form:
>>
>> Dim hForm As New MyForm
>>
>> hForm.Show()
>>
>> And your form should have method to show the progress, example:
>>
>> Do
>> hForm.RefreshProgress()
>> Loop Until ProgressIsReady = True
>>
>> Jussi
>>
>>
>>
>>
>> On Sat, Apr 20, 2013 at 12:14 PM, bill-lancaster <
>> bill-lancaster at ...2231...> wrote:
>>
>>> I want to open a form and immediatly display the progress of a process.
>>>
>>> If I do it in the form_open event the form isn't displayed untill the
>>> process is complete.
>>>
>>> I can't find an event for the form that will do this simple thing!
>>>
>>> Any ideas?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728.html
>>> Sent from the gambas-user mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for
>>> building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>>
>



More information about the User mailing list