473,800 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C Sharp stx and etx characters visible

Hallo,
In an application that I'm creating I want to display ☻ and ♥ in a
standard textbox. In this message they are displayed correctly. But
when I'm programming in Visual Studio my textbox displays a square. How
can i solve this minor problem.
PS
I tried different fonts including Lucinda Console, but i still see
squares or pipes like ( | )

Please give me a hint

Frank van der Horst
Netherlands

May 21 '06 #1
2 6600
Frank,

I assume you used dingbats or something like that to show those symbols.
For a textbox, you won't really be able to show this, since the font doesn't
have actual characters (you are limited to one font).

You will either have to custom paint the text, or use something else,
like a webbrowser control or rich text box which you can use to display text
in more than one font.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<Fr**********@g mail.com> wrote in message
news:11******** **************@ g10g2000cwb.goo glegroups.com.. .
Hallo,
In an application that I'm creating I want to display ? and ? in a
standard textbox. In this message they are displayed correctly. But
when I'm programming in Visual Studio my textbox displays a square. How
can i solve this minor problem.
PS
I tried different fonts including Lucinda Console, but i still see
squares or pipes like ( | )

Please give me a hint

Frank van der Horst
Netherlands
May 21 '06 #2
Fr**********@gm ail.com wrote:
[displaying smiley and heart symbol]


If you're using the low character values (the actual STX and ETX
values in ASCII), they won't render correctly because they are control
codes - even though I remember that MS-DOS used to display symbols for
some of them.

I think you should be using the Unicode characters '\u263b' (black
smiling face) and '\u2665' (black hearts suit).

Eq.
May 21 '06 #3

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

Similar topics

0
1603
by: Stuart Newton | last post by:
We have just migrated a pile of ASP-driven content-managed websites from Win2000/SQL7 to Win2003/SQL2000 and noticed that, on some of them, certain characters such as the pound sign (£), 66..99 "curly quotes" and curly apostrophes were appearing as several characters in the HTML output unless Internet Explorer was forced into "View -> Encoding -> Unicode" For example, a £ appeared as "£" and a curly apostrophe as something with a in...
4
2514
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got hard time to understand vb syntax. I don't know if anyone in here can point out which is the equivalent object used in c sharp. Translate these two lines to C sharp: Sub Next_Click(Sender As Object, e As EventArgs) Select Case...
2
3900
by: HishHish | last post by:
I have a Java code that I want to convert it to C-sharp in order to put it in my ASP.NET web application. I used the JLCA (Java Language Conversion Assistant) for conversion, but it gave me many errors indicating that there are not matches in .NET for those Java classes!! The Java code is: ***************************************************************** import java.util.Properties; import javax.mail.*;
1
6933
by: j | last post by:
Hi, I've been trying to do line/character counts on documents that are being uploaded. As well as the "counting" I also have to remove certain sections from the file. So, firstly I was working with uploaded MS WORD .doc files. Using code like that below: strLine = sr.ReadLine While Not IsNothing(strLine) 'Not eof If Trim(strLine) <> "" Then 'Not blank
2
1878
by: Micah | last post by:
Hi, I'm looking for a tool to do the following 2 things: 1) Given a string (ie. file, std input, whatever), replace all whitespace characters with visible characters (like their Unicode value or something). The end result will be one long unbroken line 2) Given a string altered as in step 1, "decode" it back to the original string.
20
2625
by: windandwaves | last post by:
Hi Folk I am a PHP programmer, but I like to learn c-sharp as it seems to be in hot demand around here. My questions are: - how does c-sharp relate to PHP - do you like c-sharp and its cousins - are there better things to do then c-sharp? Thanks a million
3
2655
by: somebody | last post by:
Hi all, I have been working on a php script lately that merges results from a db and an xml source and then populates a PDF through FDF. I have gotten nearly everything to work except multi line javascript. I have tried both of the following attacks on the problem to no avail. First I tried setting the set_on_import directly... then I tried to set all the javascript in a function and then call the function on load... both of them...
3
2412
by: Gandalf | last post by:
Sharp effect is one of the photoshop effect on letters. some one a javascript script that create the same effect? thanks
6
4439
by: Joe | last post by:
Every thing I have fount was for C Sharp 2005, and I can't get any thing to work. Can some some show me a code for a telnet server in C Sharp 2008 that will a allow more then one connection.
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10501
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10250
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7574
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.