<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4366671410070576626.post6951611583274342115..comments</id><updated>2011-04-13T02:10:21.527-03:00</updated><category term='worldcup'/><category term='tools'/><category term='DTPT'/><category term='news'/><category term='deployment'/><category term='Best practices'/><category term='optimizations'/><category term='version'/><category term='custom controls'/><category term='general'/><category term='Fleux'/><category term='panorama app'/><category term='activesync'/><category term='samples'/><category term='GUI'/><category term='OAC'/><category term='WMDC'/><category term='Blocks'/><category term='CabWizFixer'/><category term='internet'/><category term='connectivity'/><category term='.Net CF'/><category term='gac'/><category term='Unit Testing'/><category term='training'/><title type='text'>Comments on Mobile PractiCEs: Making Multiline MeasureString work with different...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.mobilepractices.com/feeds/6951611583274342115/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html'/><author><name>Jose Gallardo</name><uri>http://www.blogger.com/profile/06990898488326736094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://www.vl-abogados.com.ar/mobilepractices/josecusco.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-104692488747674486</id><published>2010-07-29T11:13:39.274-03:00</published><updated>2010-07-29T11:13:39.274-03:00</updated><title type='text'>Thanx for the great article.
I&amp;#39;m trying to use...</title><content type='html'>Thanx for the great article.&lt;br /&gt;I&amp;#39;m trying to use it for calculating the TextBox.SelecionStart known a Drawing.Point into the text box client area. I must iterate all substrings starting from len 1 to Lenght and see if the size is outer than the point.&lt;br /&gt;Is there a better way using a simple api to do this ?&lt;br /&gt;&lt;br /&gt;Thanx for any response or suggestion.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/104692488747674486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/104692488747674486'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1280412819274#c104692488747674486' title=''/><author><name>DanceOften</name><uri>http://www.blogger.com/profile/06868218027591321116</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-361701491'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-5772139893249078587</id><published>2010-05-20T07:32:51.461-03:00</published><updated>2010-05-20T07:32:51.461-03:00</updated><title type='text'>This code contains a leak. You should be calling D...</title><content type='html'>This code contains a leak. You should be calling DeleteObject passing the hFont you&amp;#39;re creating, after you have selected it back out of the DC.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/5772139893249078587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/5772139893249078587'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1274351571461#c5772139893249078587' title=''/><author><name>Tim Dawson</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1097382845'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-7990008919273413439</id><published>2009-12-11T16:30:52.709-03:00</published><updated>2009-12-11T16:30:52.709-03:00</updated><title type='text'>Thanks a lot for the solution.</title><content type='html'>Thanks a lot for the solution.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/7990008919273413439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/7990008919273413439'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1260559852709#c7990008919273413439' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1155710041'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-273739842769933416</id><published>2009-12-02T10:23:21.985-03:00</published><updated>2009-12-02T10:23:21.985-03:00</updated><title type='text'>I&amp;#39;ve created the following overload which acce...</title><content type='html'>I&amp;#39;ve created the following overload which accepts a font object instead of a control which was necessary in my situation:&lt;br /&gt;&lt;br /&gt;        static public Size MeasureString(Graphics gr, Font font, string text, Rectangle rect)&lt;br /&gt;        {&lt;br /&gt;            Size result = Size.Empty;&lt;br /&gt;            IntPtr controlFont = font.ToHfont();&lt;br /&gt;            IntPtr hDC = gr.GetHdc();&lt;br /&gt;            using (Graphics g = Graphics.FromHdc(hDC))&lt;br /&gt;            {&lt;br /&gt;                IntPtr originalObject = SelectObject(hDC, controlFont);&lt;br /&gt;                result = MeasureString(g, text, rect, false);&lt;br /&gt;                SelectObject(hDC, originalObject); //Release resources&lt;br /&gt;            }&lt;br /&gt;            gr.ReleaseHdc(hDC);&lt;br /&gt;            return result;&lt;br /&gt;        }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/273739842769933416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/273739842769933416'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1259760201985#c273739842769933416' title=''/><author><name>Jumping Matt Flash</name><uri>http://www.blogger.com/profile/05046970651197267357</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1475074410'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-2917317607072861768</id><published>2009-10-12T06:01:47.609-03:00</published><updated>2009-10-12T06:01:47.609-03:00</updated><title type='text'>Cheers mate, nice one!</title><content type='html'>Cheers mate, nice one!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/2917317607072861768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/2917317607072861768'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1255338107609#c2917317607072861768' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-733327753'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-8048564462009667355</id><published>2009-09-24T05:04:02.440-03:00</published><updated>2009-09-24T05:04:02.440-03:00</updated><title type='text'>Wonderful article, excellent work.</title><content type='html'>Wonderful article, excellent work.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/8048564462009667355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/8048564462009667355'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1253779442440#c8048564462009667355' title=''/><author><name>Maxipower</name><uri>http://www.blogger.com/profile/11165618470569923943</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1543223948'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-1970783446119280359</id><published>2009-09-08T19:20:22.225-03:00</published><updated>2009-09-08T19:20:22.225-03:00</updated><title type='text'>Wanted to thank you a lot! This little post solved...</title><content type='html'>Wanted to thank you a lot! This little post solved a problem I had been wrestling with for a couple of days!&lt;br /&gt;&lt;br /&gt;Because of it, I now have a custom list control that has items that vary in size based on the post text.&lt;br /&gt;&lt;br /&gt;You don&amp;#39;t know how much time you saved me! I wish I would have found it a lot sooner.&lt;br /&gt;&lt;br /&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/1970783446119280359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/1970783446119280359'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1252448422225#c1970783446119280359' title=''/><author><name>Jim Lavin</name><uri>http://codingsmackdown.tv</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1250766022'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-298827883423143945</id><published>2008-12-24T10:51:00.000-02:00</published><updated>2008-12-24T10:51:00.000-02:00</updated><title type='text'>Great Work, Thanks a lot!</title><content type='html'>Great Work, Thanks a lot!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/298827883423143945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/298827883423143945'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1230123060000#c298827883423143945' title=''/><author><name>Srini</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-415291282'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-6381273669627371408</id><published>2008-02-14T12:52:00.000-02:00</published><updated>2008-02-14T12:52:00.000-02:00</updated><title type='text'>this is some great stuff.&lt;br&gt;Excellent work.</title><content type='html'>this is some great stuff.&lt;BR/&gt;Excellent work.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/6381273669627371408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/6951611583274342115/comments/default/6381273669627371408'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html?showComment=1203000720000#c6381273669627371408' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-6951611583274342115' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/6951611583274342115' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1539331671'/></entry></feed>
