Click here to Skip to main content
15,886,199 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Question: How to specify default property to debugger? Pin
Ricardo Casquete19-Apr-06 6:23
Ricardo Casquete19-Apr-06 6:23 
GeneralRe: Question: How to specify default property to debugger? Pin
Guido_d19-Apr-06 23:11
Guido_d19-Apr-06 23:11 
GeneralRe: Question: How to specify default property to debugger? Pin
Dave Kreskowiak20-Apr-06 2:34
mveDave Kreskowiak20-Apr-06 2:34 
Questioncreating cd-rom database application Pin
vijayendra_shinde18-Apr-06 0:12
vijayendra_shinde18-Apr-06 0:12 
AnswerRe: creating cd-rom database application Pin
Dave Kreskowiak18-Apr-06 2:24
mveDave Kreskowiak18-Apr-06 2:24 
QuestionLow level operations to devices Pin
fvalerin17-Apr-06 9:48
fvalerin17-Apr-06 9:48 
AnswerRe: Low level operations to devices Pin
Dan Neely17-Apr-06 10:40
Dan Neely17-Apr-06 10:40 
QuestionConverse of measurestring Pin
deletethisprofile17-Apr-06 6:18
deletethisprofile17-Apr-06 6:18 
I would like to implement this method in a control I have that is drawing text:

Public Function CharacterIndex(ByVal Position As Point) As Integer
'find the character within the drawn text closest to this Point
End Function

I can already do the opposite, which is to find the point of a given character in the string I'm drawing on my control:
Public Function CharacterPosition(ByVal Index As Integer) As Point
If Index = -1 Then Index = Text.Length
CharacterRanges(0) = New CharacterRange(Index, 1)
StringFormat.SetMeasurableCharacterRanges(CharacterRanges)
Dim Graphics As Graphics = pnlScroll.CreateGraphics
StringRegions = Graphics.MeasureCharacterRanges(Text, Font, LayoutRectangleF, StringFormat)
MeasureRectangleF = StringRegions(0).GetBounds(Graphics)
Graphics.Dispose()
CharacterPosition = New Point(MeasureRectangleF.X, MeasureRectangleF.Y)
End Function

Thanks in advance.

-toddmo
AnswerRe: Converse of measurestring Pin
Guffa17-Apr-06 6:42
Guffa17-Apr-06 6:42 
QuestionASP.NET not working Pin
Petals16-Apr-06 19:59
Petals16-Apr-06 19:59 
AnswerRe: ASP.NET not working Pin
Ravi Bhavnani16-Apr-06 20:12
professionalRavi Bhavnani16-Apr-06 20:12 
GeneralRe: ASP.NET not working Pin
Kevin McFarlane22-Apr-06 5:21
Kevin McFarlane22-Apr-06 5:21 
Questionvisual studio.net 2003 script engine error on parsing script file Pin
Shahid_78615-Apr-06 6:25
Shahid_78615-Apr-06 6:25 
AnswerRe: visual studio.net 2003 script engine error on parsing script file Pin
Dave Kreskowiak16-Apr-06 1:58
mveDave Kreskowiak16-Apr-06 1:58 
QuestionAbout MFC Compilation! Pin
fheinstein14-Apr-06 13:35
fheinstein14-Apr-06 13:35 
AnswerRe: About MFC Compilation! Pin
Dave Kreskowiak14-Apr-06 14:22
mveDave Kreskowiak14-Apr-06 14:22 
Questionhotmail account Pin
TAREQ F ABUZUHRI14-Apr-06 2:08
TAREQ F ABUZUHRI14-Apr-06 2:08 
GeneralRe: hotmail account Pin
Guffa14-Apr-06 2:50
Guffa14-Apr-06 2:50 
AnswerRe: hotmail account Pin
Colin Angus Mackay14-Apr-06 3:04
Colin Angus Mackay14-Apr-06 3:04 
GeneralRe: hotmail account Pin
TAREQ F ABUZUHRI14-Apr-06 3:06
TAREQ F ABUZUHRI14-Apr-06 3:06 
GeneralRe: hotmail account Pin
Paul Watson14-Apr-06 3:21
sitebuilderPaul Watson14-Apr-06 3:21 
AnswerRe: hotmail account Pin
Don Miguel14-Apr-06 3:24
Don Miguel14-Apr-06 3:24 
GeneralRe: hotmail account Pin
Judah Gabriel Himango14-Apr-06 4:45
sponsorJudah Gabriel Himango14-Apr-06 4:45 
GeneralRe: hotmail account Pin
super_ttd15-Apr-06 7:00
super_ttd15-Apr-06 7:00 
QuestionHow to get the language type of the OS? Pin
rushing14-Apr-06 0:47
rushing14-Apr-06 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.