Jump to content
bt.ionut

vb2010 intrebare

Recommended Posts

Posted

Salut,

vreau sa fac un generator de text(keys) insa vreau sa aiba si un progess bar, cand apesi pe generate, sa se incarce progress barul, cu un text pe el "connect to...." apoi cand e la sfarsit sa apara key-ul.

thanks.

Posted (edited)

Scrii pe button1:

Label1.text = "Connect to..."

Timer1.start()

Adaugi un Timer, dai dublu click ?i scrii:

ProgressBar1.Increment(1)

If ProgressBar1.Value = ProgressBar1.Maximum Then

Timer1.stop()

Label1.text = "Generated!"

Progressbar1.value = 0

Edited by LegioNRST
Posted

Foloseste multithreading daca tot vrei sa faci ceva calumea.

Si un generator de text ar trebui sa iti dea rezultatul instant. Bineinteles, depinde de procesul de generare dar in principiu nu ai nevoie de un progress bar pentru asa ceva.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...