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 ? 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 ?
"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/>
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 ?
Error : KeyChar is ReadOnly
You Have Understand..
How do?
"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/>
Is possible in Form_keypress Upper all text.
In VB6:
form_keypress
keyascci = asc(ucase(chr(k eyascii)))
dotnet?
"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/]
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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?
|
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.
|
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...
|
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...
| |
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:
|
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.
|
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...
|
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">
...
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |