473,486 Members | 2,277 Online
Bytes | Software Development & Data Engineering Community
Create 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 920

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
1844
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
1372
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
1467
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
1286
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
914
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
1042
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
1312
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
1194
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
7105
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
6967
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
7180
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...
0
7341
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
5439
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,...
1
4870
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...
0
4564
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
3076
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
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.