473,222 Members | 1,813 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,222 software developers and data experts.

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 916

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

Similar topics

0
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
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
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
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
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
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
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
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
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
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.