473,508 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extensibility bug??

I think I have found a bug in the VS text editor but would like someone
to confirm or deny it.

Consider the following sub:

Private Sub TestMe()
'lllllllLLLLLLL
End Sub

The comment line has a number of lower case L's followed by some upper
case L's. When I use a FIXED width font, the Ln, Col, and Ch
indicators at the bottom of the code windows indicate the correct
results. If I switch to a PROPORTIONAL font, the values are not
correct.

I discovered this when using this macro to try to get the current line
and column number, but the values returned were incorrect.

Sub TestMe()
Dim sel As TextSelection = DTE.ActiveDocument.Selection
Dim iLine As Integer = sel.CurrentLine
Dim iCol As Integer = sel.CurrentColumn
MsgBox("Line: " & iLine.ToString & ", Column: " & iCol.ToString)
End Sub

As I moved the caret to different postions in the line, the values
returned were wrong.

Can anyone confirm or deny this? Am I missing something? If this is
by design, how can I find the current line number and column number
accurately if the user is using a proportional font?

Thanks,

Chris

Jul 21 '05 #1
0 921

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

Similar topics

0
1538
by: relaxedrob | last post by:
Hi All! I have been reading from this document in order to understand just what an extensibility element is: Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language...
0
1163
by: Jason | last post by:
I created an Excel Add-In using Extensibility. I made some methods public so the user can call them from VBA code. The question is, can I create overloaded versions of the method? Obviously I can...
4
1846
by: Richard | last post by:
All, I have coded an Outlook automation Addin in C# and .NET. I created the project using the Extensibility wizard. The Addin installs and runs Ok on my machine. However I am unable to...
1
1375
by: Sachin | last post by:
Is there a active forum on issues and discussion on Extensibility projects dealing with Office addins using .net? Thanks Sachin.
1
1468
by: frenchyyy | last post by:
Hello, I'm developing an add-in for Word2003 and I have some troubles. I’m using VS .NET 2003 ->extensibility project. The add-in works fine with the first document in Word I create/open...
1
1291
by: Brian Keating | last post by:
Hi there, any you may know in vs2005 (possibly early versions) that you can click on the propertys folder in the solution explorer then click on the settings tab and add a setting for your...
0
915
by: Bill Barker | last post by:
I wish to create a new com add-in for a msoffice product To do this I create a new project, selecting "Extensibility Projects" in the "Other Projects" dialog, however I only have "DataBase Project"...
0
1043
by: tavita | last post by:
I know that the UltraGrid has many extensibility features. But i don't know all of them. Can you give me a list of them. Thanks a lot.
9
1314
by: Francis Johnson | last post by:
I've been having a discussion with some folks here about the wisdom or otherwise of "building extensibility into an API". Consider your favorite function in one of your libraries, perhaps void...
0
1195
by: Eric Davies | last post by:
The existing server extensibilities in modern DBMSs have been critical in our company's development of software products that improve database performance for certain scientific computing...
0
7223
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
7114
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
7488
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
5623
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,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
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 ...
0
412
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...

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.