- windowsmobile.zip
- WindowsMobile
- FileTransfer.Core
- FileTransfer
- WindowsMobile.sln
- WindowsMobileDXCore.Solution
- AssemblyCache
- 2f77ac75ae6d31d51d97939560b8ab.cache
- 309feae0753ff650e63ee408b82ab36.cache
- 3510f6dfbaf43e3f0f6e13c7833df66.cache
- 355d230db4eb910dd52c432d797e30.cache
- 3b1c59f56f52a2c7d5f3bedaec6f53.cache
- 70584e332ff1ec8ce0d8af57e8d5b54.cache
- 7ff78eda7087b727d3b3e761d80eda7.cache
- a367f2f0a771278850a4236d80aced8.cache
- b9c3ea739c4b4b642d5dc6e2337c1be.cache
- c47f85a4333a8aa89d56cebf5ca05e66.cache
- da8aae92a375baafa973d384d62826a.cache
- daedf418ea1bd9ad1be07859893bf8.cache
- db182eb99632bbdc87a7d6a110945bcb.cache
- def91fe868c626af2c2247de1708cb.cache
- windowsmobileservice.zip
- WindowsMobileService
- Service
- WindowsMobileService.Core
- WindowsMobileService.sln
- WindowsMobileServiceDXCore.Solution
- AssemblyCache
- 12a01da074648ea1185455cfae8fa365.cache
- 2627823dbc7746889387248946c.cache
- 59f4b4d6f26c45a48b549edf7a322.cache
- 64e947902ee5ddf87dafcbe0cf4afa61.cache
- 6e4eeb558eef8d81c6866fad411899ea.cache
- 803f9439f94a3a86b02964225eac2cbe.cache
- df39d9ae8af205f3fe14a9ede4d6cd4.cache
- ed472c622f5e32aadaa4550cabb20.cache
|
namespace RRaveCon.OutLookControl
{
using System;
using System.Drawing;
using System.Windows.Forms;
internal class ToolTip : UserControl
{
public ToolTip()
{
base.Visible = false;
base.BackColor = SystemColors.Info;
base.ForeColor = Color.Black;
base.Text = "";
}
public void MoveTo(Point pt)
{
int num = base.Parent.Width - 20;
Graphics graphics = base.CreateGraphics();
string[] strArray = this.Text.Split(new char[] { '\n' });
int num2 = 6;
int num3 = 8;
foreach (string str in strArray)
{
SizeF ef = graphics.MeasureString(str, this.Font);
num3 = ((int) Math.Min((float) num, Math.Max(ef.Width, (float) num3))) + 8;
num2 += (int) ef.Height;
int length = str.Length;
int startIndex = 0;
while (ef.Width > num)
{
int num6 = 0;
do
{
num6++;
}
while (graphics.MeasureString(str.Substring(startIndex, num6), this.Font).Width < num);
int num7 = (startIndex + num6) - 1;
while (num7 > (startIndex + 1))
{
if (char.IsWhiteSpace(str[num7]))
{
break;
}
num7--;
}
if (num7 == (startIndex + 1))
{
num7 = (startIndex + num6) - 1;
while (num7 < length)
{
if (char.IsWhiteSpace(str[num7]))
{
break;
}
num7++;
}
}
startIndex = num7;
ef = graphics.MeasureString(str.Substring(startIndex), this.Font);
num2 += (int) ef.Height;
}
}
pt.Y -= num2;
if (pt.Y < 0)
{
pt.Y = 0;
}
pt.X -= num3 / 2;
if ((pt.X + num3) > num)
{
pt.X -= (pt.X + num3) - num;
}
if (pt.X <= 0)
{
pt.X = 10;
}
graphics.Dispose();
base.Height = num2;
base.Width = num3;
base.Location = pt;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Rectangle clientRectangle = base.ClientRectangle;
clientRectangle.Width--;
clientRectangle.Height--;
e.Graphics.DrawRectangle(new Pen(Color.Black), clientRectangle);
clientRectangle.X += 4;
clientRectangle.Y += 2;
clientRectangle.Width -= 4;
clientRectangle.Height -= 2;
e.Graphics.DrawString(this.Text, this.Font, new SolidBrush(base.ForeColor), clientRectangle);
}
public void Show(Point pt)
{
this.MoveTo(pt);
base.Visible = true;
base.BringToFront();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
- B.Sc. degree in Computer Science.
- 4+ years experience in Visual C#.net and VB.net
- Obsessed in OOP style design and programming.
- Designing and developing Network security tools.
- Designing and developing a client/server application for sharing files among users in a way other than FTP protocol.
- Designing and implementing GSM gateway applications and bulk messaging.
- Windows Mobile and Symbian Programming
- Having knowledge with ERP solutions
The summary of my skills:
C#, VB.Net#,ASP.net, VC++, Java, WPF,WCF, Oracle, SQL Server, MS Access, Windows NT administration
Cheers
RRave
MCPD,MCTS
http://codegain.com