das geht leider nicht ,
aber ich hab noch etwas anderes gefunden, vielleicht ist das auch für dieses problem verantwortlich:
also es ist im endeffekt ein labeldesigner für einen industriedrucker.
heißt ich habe eine grundfläche auf dem ich text code128 und datamatrix objekte an bestimmten positionen positionieren will um das dann auf dem drucker abzuspeichern.
um diese elemente darzustellen habe ich Labels benutzt und die natürlich auch in 90Grad Schritten drehbar gemacht. wenn ich also objekte im 0 Grad darstelle kommt die meldung beim Save Dialog.
wenn ich sie im 90Grad gedrehten darstelle muss ich die alt taste drücken.
darauf bin ich gekommen weil ich tool tips einbauen wollte und auch da: solange ich bei 0 grad bleibe ist alles schön, sobald ich auf 90 grad geh verschwinden die tooltips.
ich würde mal die label-klasse posten.
ich denk die ist dran schuld.
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace NovexxLabelEditor.PinterObjects
{
public class PrintObjectCode128 : System.Windows.Forms.Label
{
int puid = 0;
string ptype = "Code 128";
string pfont = "";
int protateangle = 0;
string pnewText = "";
int pwidth = 0;
int pheight = 0;
int pgroesse = 48;
bool prahmen = true;
public FormPropsCode128 formProperties;
#region properties region
public int PoUid
{
get
{
return this.puid;
}
set
{
this.puid = value;
}
}
public int PoRotateAngle
{
get
{
return this.protateangle;
}
set
{
this.protateangle = value;
}
}
internal string PoName
{
get
{
return this.Name;
}
set
{
this.Name = value;
}
}
internal string PoType
{
get
{
return this.ptype;
}
set
{
this.ptype = value;
}
}
internal string PoNewText
{
get
{
return this.pnewText;
}
set
{
this.pnewText = value;
}
}
internal string PoText
{
get
{
return this.Text;
}
set
{
this.Text = value;
}
}
internal string PoFont
{
get
{
return this.pfont;
}
set
{
this.pfont = value;
}
}
internal Point PoPos
{
get
{
return this.Location;
}
set
{
this.Location = value;
}
}
internal Size PoSize
{
get
{
return this.Size;
}
set
{
this.Size = value;
}
}
public bool PoRahmen
{
get
{
return this.prahmen;
}
set
{
this.prahmen = value;
}
}
public int PoWidth
{
get
{
return this.pwidth;
}
set
{
this.pwidth = value;
}
}
public int PoHeight
{
get
{
return this.pheight;
}
set
{
this.pheight = value;
}
}
public int PoGroesse
{
get
{
return this.pgroesse;
}
set
{
this.pgroesse = value;
}
}
#endregion
public PrintObjectCode128()
{
formProperties = new FormPropsCode128(this);
}
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
string NewText = this.Text;
double groesse = (double)this.pgroesse;
groesse = groesse + 0.25;
this.Font = new System.Drawing.Font("Code 128", (float)groesse, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
if (this.prahmen)
{
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
}
else
{
this.BorderStyle = System.Windows.Forms.BorderStyle.None;
}
if (this.PoRotateAngle == 0)
{
this.TextAlign = ContentAlignment.MiddleLeft;
this.Size = new System.Drawing.Size(this.pwidth, this.pheight);
base.OnPaint(e);
}
if (this.PoRotateAngle == 90)
{
this.TextAlign = ContentAlignment.MiddleLeft;
this.Text = "";
Graphics g = e.Graphics;
StringFormat stringFormat = new StringFormat();
stringFormat.Trimming = StringTrimming.None;
Brush textBrush = new SolidBrush(this.ForeColor);
Matrix storedState = g.Transform;
g.RotateTransform(this.PoRotateAngle);
g.TranslateTransform(0, -this.pheight);
Rectangle r = new Rectangle(0, 0, this.pwidth, this.pheight);
g.DrawString(NewText, this.Font, textBrush, r, stringFormat);
g.Transform = storedState;
this.Size = new System.Drawing.Size(this.pheight, this.pwidth);
base.OnPaint(e);
}
if (this.PoRotateAngle == 180)
{
this.TextAlign = ContentAlignment.MiddleCenter;
this.Text = "";
Graphics g = e.Graphics;
StringFormat stringFormat = new StringFormat();
stringFormat.Trimming = StringTrimming.None;
Brush textBrush = new SolidBrush(this.ForeColor);
Matrix storedState = g.Transform;
g.RotateTransform(this.PoRotateAngle);
g.TranslateTransform(-this.pwidth, -this.pheight);
Rectangle r = new Rectangle(0, 0, this.pwidth, this.pheight);
g.DrawString(NewText, this.Font, textBrush, r, stringFormat);
g.Transform = storedState;
this.Size = new System.Drawing.Size(this.pwidth, this.pheight);
base.OnPaint(e);
}
if (this.PoRotateAngle == 270)
{
this.TextAlign = ContentAlignment.MiddleCenter;
this.Text = "";
Graphics g = e.Graphics;
StringFormat stringFormat = new StringFormat();
stringFormat.Trimming = StringTrimming.None;
Brush textBrush = new SolidBrush(this.ForeColor);
Matrix storedState = g.Transform;
g.RotateTransform(-90);
g.TranslateTransform(-this.pwidth, 0);
Rectangle r = new Rectangle(0, 0, this.pwidth, this.pheight);
g.DrawString(NewText, this.Font, textBrush, r, stringFormat);
g.Transform = storedState;
this.Size = new System.Drawing.Size(this.pheight, this.pwidth);
base.OnPaint(e);
}
this.Text = NewText;
}
}
}