473,811 Members | 4,050 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upper Text in a TreeView

Hello,

In a textbox it is possible set charapters to upper with this property :
CharacterCasing = Upper

In a treeView not is possible...

In Vb i set in a Event form KeyPress --> keyascii =
asc(ucase(chr(k eyascii)))

in dotnet ?
Nov 21 '05 #1
9 1849
hi, i didnt understand anything...

"Tony" wrote:
Hello,

In a textbox it is possible set charapters to upper with this property :
CharacterCasing = Upper

In a treeView not is possible...

In Vb i set in a Event form KeyPress --> keyascii =
asc(ucase(chr(k eyascii)))

in dotnet ?

Nov 21 '05 #2
"Rothariger " <Ro********@msn .com> schrieb:
hi, i didnt understand anything...


I think the OP wants to restrict the user when editing nodes' labels to
enter uppercase characters only.

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

Nov 21 '05 #3
In the same KeyPress event, have:

KeyPressEventAr gs.KeyChar = Char.ToUpper (e.KeyChar)
(or)
KeyPressEventAr gs.KeyChar = UCase (e.KeyChar)

"Tony" <G@G.it> wrote in message
news:e6******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

In a textbox it is possible set charapters to upper with this property :
CharacterCasing = Upper

In a treeView not is possible...

In Vb i set in a Event form KeyPress --> keyascii =
asc(ucase(chr(k eyascii)))

in dotnet ?

Nov 21 '05 #4
Error : KeyChar is ReadOnly
Nov 21 '05 #5
You Have Understand..

How do?
Nov 21 '05 #6
"Gigi" <G@G.it> schrieb:
You Have Understand..

How do?


I feel sorry, but I don't have any idea.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #7
Is possible in Form_keypress Upper all text.

In VB6:
form_keypress
keyascci = asc(ucase(chr(k eyascii)))

dotnet?
Nov 21 '05 #8
"Tony" <G@G.it>'s wild thoughts were released on Wed, 20 Jul
2005 16:59:17 +0200 bearing the following fruit:
Hello,

In a textbox it is possible set charapters to upper with this property :
CharacterCasin g = Upper

In a treeView not is possible...

In Vb i set in a Event form KeyPress --> keyascii =
asc(ucase(chr( keyascii)))

in dotnet ?


I haven't actually used the treeview in dotnet yet but would
this suffice?

Private Sub TreeView1_After LabelEdit(ByVal sender As
Object, ByVal e As
System.Windows. Forms.NodeLabel EditEventArgs) Handles
TreeView1.After LabelEdit
e.Node.Text = e.Label.ToUpper
e.CancelEdit = True
End Sub


Jan Hyde (VB MVP)

--
The best remedy for forgetfulness is milk of amnesia
(Richard Lederer)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Nov 21 '05 #9
Sorry, I didn't realize it's a TreeView for a minute.

Ok, one option to make the node text upper is to handle the AfterLabelEdit
event like this:

e.Node.Text = e.Label.ToUpper ()
e.CancelEdit = True

Though it allows to enter lower-case characters, when the user exits label
editing, the label text is made upper-case.

Will this work for you?

"Gigi" <G@G.it> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Error : KeyChar is ReadOnly

Nov 21 '05 #10

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

Similar topics

4
13072
by: programmerforhire | last post by:
Hello all, Is there a way to setup an ms-access table so that when I enter text in the 'datasheet' mode, it will automatically be converted tp upper case. Or must I use a Form for this? rex
8
65121
by: Brian Conway | last post by:
How do I convert a field that is filled in to uppercase within the C3 code? I see the ToUpper in there, but how do I get the text box to convert this to upper when you change focus or move to another text box?
2
3772
by: Elton Pruitt | last post by:
The documentation on the ASP.NET 2.0 TreeView control, located at http://msdn2.microsoft.com/en-us/k5c13faz(VS.80).aspx says that "Node text ... can be displayed as either plain text or hyperlinks." Has anyone found a way to actually display the node text as plain text? I need to do that but can't figure out how, nor can I find any documentation other than this one snippet to even indicate that it is possible.
5
21471
by: bob | last post by:
Now this ought to be a simple matter. But nothing's simple in the Net world, I'm finding. In vb6 you could use "!" to force text to upper case in the format function. I've searched the vb.net help system and can't find any help on formatting text. There's plenty of help formatting numbers, dates, and times, though. I'm in the phase of converting from 6 to Net and it seems that even the simplest thing is very, very complicated. And it...
1
21629
by: watsod1 | last post by:
Hello, This is my first post, Hello to all. This also a test post to make sure that I am doing the right thing and following rules etc. I have been searching for a way to make the treeview display multiple lines of text on each treeview node (treenode). After searching for answers and not finding any, I stumbled on the solution in the msdn help files (search for TreeView.DrawNode Event). It has source code that shows how to display...
1
4103
by: Darsin | last post by:
What i am doing is to pull the data from a CMS and import it to Word 2007 Beta and i also have to export the data from Word 2007 Beta back to that CMS. We have with us two Web Services of the CMS. The Web Services are explained as follows: IMPORT WEB SERVICE:
0
12794
by: jiing | last post by:
Hi all, I want to use sting(the same as Node.Text) to judge if a node exists in TreeView. I've tried several ways, but seems all failed. could anybody help me? Thanks in advance. //My TreeView is defined to has depth =3 only.
4
3011
by: Xenomorph | last post by:
I have a program where you click an item on the TreeView on the left, and then work with whatever pops up on the right. There are many entries on the TreeView, and when you click something on the right, the item on the TreeView is no longer highlighted, making it hard to keep track of which item you clicked on the TreeView. I want the item clicked on in the TreeView to turn BOLD, or get underlined, or change color or something. Just so...
0
941
by: vincent90152900 | last post by:
How to pop up different text base on the selected TreeNode? I want to pop up different Text base on the selected TreeNode of the TreeView component. So, I create a TreeView and a ModalPopupExtender. Following is my codes. Default.aspx <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:TreeView ID="TreeView1" runat="server" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"> ...
0
9734
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
10397
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10413
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
10138
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...
1
7674
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
5565
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...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3879
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.