You are viewing our Forum Archives. To view or take place in current topics click here.
Help With Text Box Code...
Posted:

Help With Text Box Code...Posted:

Bind
  • TTG Senior
Status: Offline
Joined: Jun 12, 200915Year Member
Posts: 1,703
Reputation Power: 93
Status: Offline
Joined: Jun 12, 200915Year Member
Posts: 1,703
Reputation Power: 93
Alright, this is simple and i need to memorize it

When a person builds his file it starts the timer... which makes the progress bar go after they have saved the file to a file directory, well when its going threw the diffrent values inside the progress bar i want the text box above that to show some text like this...

If ProgressX1.Value = 25 Then
TextBoxX10.Text = "Please Wait..."
End If

when it hits a diffrent value i want that text to stay but start another line of text saying something... how could i do this?
#2. Posted:
TomLandonHoppus
  • New Member
Status: Offline
Joined: Jan 10, 201311Year Member
Posts: 15
Reputation Power: 0
Status: Offline
Joined: Jan 10, 201311Year Member
Posts: 15
Reputation Power: 0
Dexoned wrote Alright, this is simple and i need to memorize it

When a person builds his file it starts the timer... which makes the progress bar go after they have saved the file to a file directory, well when its going threw the diffrent values inside the progress bar i want the text box above that to show some text like this...

If ProgressX1.Value = 25 Then
TextBoxX10.Text = "Please Wait..."
End If

when it hits a different value i want that text to stay but start another line of text saying something... how could i do this?


I found it difficult comprehending what you're trying to ask, but I gave it my best shot...

Are you trying to do something like this?

VB.NET

If ProgressX1.Value < 100 Then
   TextBoxX10.Text = "Please wait... " & ProgressX1.Value.Tostring() & "% complete"
Else

   TextBoxX10.Text = "Finished"
End If


C#

if (ProgressX1.Value < 100)
{
    TextBoxX10.Text = "Please wait... " + ProgressX1.Value.Tostring() + "% complete";
}

else
{
   TextBoxX10.Text = "Finished";
}
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.