473,396 Members | 1,834 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,396 software developers and data experts.

Show the front and end of a string

yxq
Hello,
When show a string in a fixed extent label control, if this string is too
long, then it can not be shown inextenso.
How to only show the front and the end of the string, the middle section
will be replaced with suspension points? like the windows progress dialog
box of copying or moving file.

Thank you
Nov 21 '05 #1
2 1265
"yxq" <ga***@163.net> schrieb:
How to only show the front and the end of the string, the middle section
will be replaced with suspension points? like the windows progress dialog
box of copying or moving file.


Compacting a path to a certain number of pixels
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=compactpath&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
yxq
Thank you very much!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> дÈëÏûÏ¢ÐÂÎÅ:uA**************@TK2MSFTNGP10.phx.gbl ...
"yxq" <ga***@163.net> schrieb:
How to only show the front and the end of the string, the middle section
will be replaced with suspension points? like the windows progress dialog
box of copying or moving file.


Compacting a path to a certain number of pixels
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=compactpath&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

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

Similar topics

1
by: Filips Benoit | last post by:
Dear All, What's the equivalent in VBA of clicking a formname in menu window to show a form. How can I check if the form is present in the window-menu. Thanks, Filip
5
by: Water Cooler v2 | last post by:
I see this @ character a lot in front of C# strings. I searched the documentation online but coult not come up with the page that explains this symbol. What is it used for?
6
by: eight02645999 | last post by:
hi wish to ask a qns on strip i wish to strip all spaces in front of a line (in text file) f = open("textfile","rU") while (1): line = f.readline().strip() if line == '': break print line
5
by: rdemyan via AccessMonster.com | last post by:
I have code in my front end that opens a form for backing up the front end. I'll give a brief description of what the form does: 1) When the backup form opens, it closes all open forms except for...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
8
by: JohnC | last post by:
RE: Access 2003 My application has been split and the front end runs on client PCs with the back end on a LAN file server. Also I have an updater routine that copies an updated client from the...
5
by: Steve | last post by:
I'm getting string returned from my Database with a space in front of it, it sometimes it looks like this 8 9 10 1 and so one, how can I remove the white space in front of the numbers? Its...
0
by: Curious | last post by:
Hi, I used MessageBox.Show method to show message boxes to alert about issues. However, it seems that they're always minimized at the bottom of the screen. Is there anyway I can make them...
2
by: Prats | last post by:
MessageBox::Show(Window, String) How do I pass the value for the Window parameter, rather how do I get the value for the active window Also,there are two forms open at the same time, one...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.