Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1098839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:38:30+00:00 2026-05-17T00:38:30+00:00

How can I add a string to my visual basic form? I’m creating a

  • 0

How can I add a string to my visual basic form?

I’m creating a study application for myself and this is what I have:

Imports System.Diagnostics
Public Class Form1

Dim amounts As Integer


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Processes.Tick
    Dim proc() As Process = Process.GetProcesses
    Dim newproc As New Process
    amounts = 0
    For Each newproc In proc
        If newproc.ProcessName = "firefox" Then
            newproc.Kill()
            amounts = +1

        Else

        End If
    Next
End Sub

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

End Sub

End Class

I’m trying to display a line of text on my form saying.. “Prevented firefox from running X times.

X being my “amounts” variable.

Here’s what my form looks like: http://img696.imageshack.us/img696/8162/programq.png

So how can I put my amounts variable in place of the X?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:38:30+00:00Added an answer on May 17, 2026 at 12:38 am

    Assuming that you have a label named yourLabel:

    ''# my personally preferred way
    yourLabel.Text = String.Format("Prevented FireFox from running {0} times", _
                                   amounts)
    
    ''# straight-forward concatenation
    yourLabel.Text = "Prevented FireFox from running " & amount & " times"
    
    ''# using String.Concat (which is what the above code will be compiled to)
    yourLabel.Text = String.Concat("Prevented FireFox from running ",amount," times")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Everything I've googled just says you can add them as a string array, but
How can I use emacs string-insert-rectangle operation to add a vector of numbers to
I can add and remove the last line in my dynamic form and calculate
I have a MultiThreading issue and conceptual question using Visual Basic (but it applies
Hi I would like to create a Visual Studio snippet that I can have
Within a Visual Basic Project I have added a resource file (resx) that contains
Ok so I have an assembly, written in C#, using Visual Studio 2010. This
I am pretty new in Visual Basic. I have a tab control in my
I'm creating an application in Visual Studio 2010 C# and MySQL where the user
The following code is visual basic, .NET, ASP... all of the above? Can anybody

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.