473,400 Members | 2,163 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,400 software developers and data experts.

Keyword "Select" in a user control

I'm creating a user control that has a textbox along with a couple of
other controls in it.

I'm mapping most of the textbox methods and properties to my control
using the textbox names. I'm having a problem with the "Select"
method. "Select" is a Visual Basic keyword, so the IDE will not let me
create that method. I'm currently using "Selects" instead, but I like
consistancy.

Anybody know a work around?

Thanks

Public Overloads Sub Selects()
tb.Select()
End Sub

Public Overloads Sub Selects(ByVal Start As Integer, ByVal Length
As Integer)
tb.Select(Start, Length)
End Sub
Nov 20 '05 #1
2 1174
"Shane" <sh***********@yahoo.com> schrieb
I'm creating a user control that has a textbox along with a couple
of other controls in it.

I'm mapping most of the textbox methods and properties to my
control using the textbox names. I'm having a problem with the
"Select" method. "Select" is a Visual Basic keyword, so the IDE will
not let me create that method. I'm currently using "Selects" instead,
but I like consistancy.

Anybody know a work around?

http://msdn.microsoft.com/library/en...asp?frame=true

http://msdn.microsoft.com/library/en...asp?frame=true
("Escaped names")

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* sh***********@yahoo.com (Shane) scripsit:
I'm creating a user control that has a textbox along with a couple of
other controls in it.

I'm mapping most of the textbox methods and properties to my control
using the textbox names. I'm having a problem with the "Select"
method. "Select" is a Visual Basic keyword, so the IDE will not let me
create that method. I'm currently using "Selects" instead, but I like
consistancy.


\\\
Public Overloads Sub [Select]()
...
End Sub
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

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

Similar topics

23
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've...
6
by: roddy | last post by:
Hi there, i've got a problem with the command "SELECT USER". No matter who is logged in and no matter how he is connected (windows authentification or not), the result is always 'dbo'. The same...
1
by: subbarao.puvvada | last post by:
Hi All, I am working on a Windows application, Which browser control on main form itself develped in .NET 1.1. Recently we have migrated it to .NET 2.0. It's combination of Web pages and .NET...
1
by: Jenny | last post by:
Dear all, I have one select which lists one visible element. I want this select can show scrollbar after I click its down arrow, so that i can use the scrollbar to select the element i want. ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
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
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.