Csharp 2005, mon problème est simple mais....
Résolu
snipper1986
Messages postés
7
Date d'inscription
Statut
Membre
Dernière intervention
-
snipper1986 Messages postés 7 Date d'inscription Statut Membre Dernière intervention -
snipper1986 Messages postés 7 Date d'inscription Statut Membre Dernière intervention -
Bonjour, merci de m'aider svp
je veux savoir commet une label devient transparent sur une pictureBox ou de façon générale parce que toujours l'arrière plan est visible même lorsque j'ai précisé la propriété transparent à cette label
merciiiiiii d'avance
je veux savoir commet une label devient transparent sur une pictureBox ou de façon générale parce que toujours l'arrière plan est visible même lorsque j'ai précisé la propriété transparent à cette label
merciiiiiii d'avance
A voir également:
- Csharp 2005, mon problème est simple mais....
- Money 2005 - Télécharger - Comptabilité & Facturation
- Iphone 14 simple - Guide
- Simple pdf - Télécharger - PDF
- Simple ocr - Télécharger - Bureautique
- Simple file locker - Télécharger - Sécurité
UNE LABEL TRANSPARENTE SUR UNE PICTUREBOX 2 SOLUTIONS
1- SOIT PAR LE CODE, VOICI LES ÉTAPES & CODE :
Problème de label transparent
1) Create a PictureBox with an image, name it picBack
2) create a lot of labels
3) in properties of PictureBox clicke events and doubleckick Paint
event
4) insert following code:
//picBack is PictureBox control
private void picBack_Paint(object sender, PaintEventArgs e)
{
foreach (Control C in this.Controls)
{
if (C is Label)
{
Label L = (Label)C;
L.Visible = false;
e.Graphics.DrawString(L.Text, L.Font, new
SolidBrush(L.ForeColor), L.Left - picBack.Left, L.Top - picBack.Top);
}
}
}
2- SOIT PAR LES PROPRIETES DES CONTRÔLES
VOUS POUVEZ METTRE L'IMAGE COMME BACKGROUND_IMAGE DE LA FORM ET TU PLACE UNE FORM ET TU PRÉCISE BACKCOLOR DU LABEL à TRANSPARENT ( WEB PUIS CHOISIR TRANSPARENT)
ET ENFIN VOILA MES 2 SOLUTIONS QUE J'AI TROUVÉ.
MERCI