473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Format Percentage

Hi Everybody

I am using VB.NET Express with SQL ServerExpress

In VB6 and Access 2000 you could specify a number to display as a
percentage to 2 decimal places.

How can you do this with VB.NET Express with SQL ServerExpress.

I have been into Properties>> Data>>DataBindings>>Advanced and put a
"P" in the custom format... but no joy

Please Help

Bob

Dec 31 '05 #1
3 10590
Bop,

In VB.Net it depends where you use the data, the data stays the data..

(More if it is a complex datacontrol as a DataGridView or a simple Control
as a label)

So give us an example where you want to use it.

Cor
Hi Everybody

I am using VB.NET Express with SQL ServerExpress

In VB6 and Access 2000 you could specify a number to display as a
percentage to 2 decimal places.

How can you do this with VB.NET Express with SQL ServerExpress.

I have been into Properties>> Data>>DataBindings>>Advanced and put a
"P" in the custom format... but no joy

Please Help

Bob

Dec 31 '05 #2
Hi Cor

Thanks for a quick reply

It is a form with a text box that is bound to a
number (int) that I need to enter say 0.7
and it displays as 70%

Thanks Bob

Dec 31 '05 #3
Bob,

It is not the direct answer on your question, however I think that for this
the new Masked textbox will be your best chooise.

http://msdn2.microsoft.com/en-us/lib...edtextbox.aspx

Otherwise the ToString(Iformatprovider) methods (for simple controls)

http://msdn.microsoft.com/library/de...classtopic.asp

There is much more to do this kind of things by the way.

I hope this helps,

Cor

Dec 31 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: stevek | last post by:
How do I format an integer. Add commas. 1234565 1,234,565 TIA
5
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
5
by: Carrie | last post by:
Good Morning, I have a combobox whose list is bound to DataSet1.Sales Growth Options.Sales Growth. The data is double and I would like it displayed as a percentage. I have tried two things: ...
0
by: fake ID | last post by:
Since you can't search for these symbols used in asp.net "<%#" or '<%=' I thought i'd post this to make things a little easier to find. Potential search word combinations: -lessthan Percentage...
0
by: rose | last post by:
I have an ACCESS graph and when I turn on show data tables, the data table displays a whole number instead of the percentage like the graph. I have formatted the sourc query to be percentage, but I...
2
by: hunslair | last post by:
This is a really basic question. I am taking a teach yourself beginners course on Access 2003 and have run into a road block on one practice. In a select query, I have created a simple calculation...
2
by: John | last post by:
Arrggg…Format String Hell…Hello there, I am attempting to format a decimal value as a % (percentage). That is; I want .12 to be displayed and edited as 12% No matter what I try I cant get it to...
5
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. ...
1
by: yogarajan | last post by:
hello friend this is my code TableCell c1td1 = new TableCell(); DateTime dbdate = Convert.ToDateTime(dr); string strhr = dbdate.ToString("h:mm tt"); ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.