Visual Basic.NET
--
Questions
--
Followers
Top Experts
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
https://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.cellstyle(v=vs.110).aspx
I can show a sample little later but working on a project for now and hoping this helps you until someone else jumps in.
Cast or Format column...
SELECT
CAST ( ColumName AS BIGINT )
From yourtable
select cast (21.2432 as int )
select format(21.2333 ,'#')
.Net..
 Int(lnumber)
ToString("column")
Example 5900 make it 5,900
conn.Open()
Dim rd = cmd.ExecuteReader
If rd.Read = True Then
Label60.Text = rd(1).ToString()
myDA.Dispose()
End If
Dim a As Single
Dim b As Double = Convert.ToDouble(Label60.Text)
a = Math.Round(b)
Label60.Text = a & " MB"
conn.Close()






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Format function ..
Format( a , "c")

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Dim a As Single
Dim b As Double = Convert.ToDouble(Label60.Text)
a = Math.Round(b)
Label60.Text = Format(a, "c") & " MB"
Is "C" stands for currency?
Label60.Text = Format(a, "0,000") & " MB"






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Visual Basic.NET
--
Questions
--
Followers
Top Experts
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,