Some differences betwen Visual Studio .NET and the Compact Edition:
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.RotateTransform(45, MatrixOrder.Append);
e.Graphics.FillRectangle(Brushes.Red,0,0,20,20);
}
The above code works in VC#.NET "standard" edition but not in CE
as far as I can figure.
//Thanks to Ben Bederson
string temp = GetType().Module.FullyQualifiedName;
int lastdir = temp.LastIndexOf('\\');
string appPath = temp.Substring(0, lastdir + 1);
or (with thanks to Adam Clamage) by making sure you add the file you
want to access to the project with the Build Action Property
to Content and then use
GetType().Module.Assembly.GetManifestResourceStream(...) to
access the file from your program.
|
This page last modified on Saturday, 24-Aug-2002 14:23:36 EDT. |