Sunday, November 05, 2006

Microsoft recently have made the Windows Mobile Network Analyzer available for download. It's a Power Toy that runs on a device and can be used for troubleshooting network connectivity issues. It includes utilities such as ping and ipconfig as well as captures network traffic to a .cap file which you can later view with Network Monitor tool or the Ethereal tool.

11/5/2006 4:51:50 PM (GMT Standard Time, UTC+00:00)  #    Comments [2]  | 
1/23/2007 11:55:30 PM (GMT Standard Time, UTC+00:00)
Hi, I just found a function you wrote on 12/24/03 as posted in this blog. The wrapping extension you added to MeasureString. I'm going to use this to maximize font size for different length strings...and autoscale font so to speak, and I was wondering if you had a more current solution. I'm going to implement it, but I'm afraid on the Pocket PC it's going to be a bit slow if I put it in a loop because of the massive string operations topped with the graphics calculations.

Thanks for saving me the time of writing the function. If it's slow, I'm in C# and probably will dig down and use the GetTextExtentExPoint if I need, but that's the reason I'm using .Net is to not do all that crap all the time.

If you have no updates, no biggie, I'm just hoping to save some time. If I somehow make it faster I'll drop it on here. The original article does not allow for comments anymore.

Here is my FitString function to start in windows:
public static void FitStringToTextBox(System.Windows.Forms.Control txtText, float minFontSize, float maxFontSize)
{
Graphics g = txtText.CreateGraphics();
Font curFont = null;
float curSize = maxFontSize;
while (curSize >= minFontSize)
{
curFont = new Font(txtText.Font.Name, curSize, txtText.Font.Style);
SizeF size = g.MeasureString(txtText.Text, curFont, txtText.Width);
if (size.Height < txtText.Height) break;
curSize--;
}
txtText.Font = curFont;
}
1/25/2007 1:41:24 AM (GMT Standard Time, UTC+00:00)
Hi i found a article on how to make a rounded corners button in this blog, it was writing in 04/01/04 for compact framework. When i try to use the script that is in the blog i have the next problem three of the corners are rounded and one is rectangle, i dont know why is happening, if you know what is the problem please can you send me a mail or answer this post.
thanks
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):