DevTrain Startseite Advanced Developers Conference vom 14.-15. Februar 2011  
  
  
SUCHEN:  
ARTIKEL ONLINE: 525   

Kategorien
.NET
Datenbanken
Web
XML

Allgemein
Camp
Foren
Events
Persönliche Einstellungen
Registrieren
Prämien Shop
Kontakt
Impressum
Über DevTrain

Autoren



 

Forum: VB.NET | Thema: Re: bissi listbox, bissi picturebox | Von: Daniel Röber ( 13.12.2005 11:02)

Für die picturebox:

Quick and dirty, aber es tut .. :)


Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Try
'save the size of the picturebox
Dim width As Integer = Me.PictureBox1.Width
Dim height As Integer = Me.PictureBox1.Height
'grab the picturebox's image
Dim img As Image = Me.PictureBox1.Image
'rotate the image
img.RotateFlip(RotateFlipType.Rotate90FlipNone)
'set the picturebox's image
Me.PictureBox1.Image = img
'swop the width and the height of the picturebox
Me.PictureBox1.Width = height
Me.PictureBox1.Height = width
Catch ex As Exception
MessageBox.Show(ex.GetBaseException.Message)
End Try
End Sub

Für die Listbox:

ListBox2.Items.AddRange(ListBox1.Items)


DAN



Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!

 Betreff:
 Nachricht: Den Beitrag finden Sie nun unter: http://beta.devtrain.de/foren Die Benutzerdaten und Foreninhalte von beta.devtrain.de und www.devtrain.de sind die selben.
Sie können sich dort sogar per RSS über neue Inhalte informieren lassen.
Bei Problemen bitte direkt Mail an asp [AT] ppedv.de.

 Signatur:

  



Login
Username:


Passwort:






Passwort vergessen?

Building und Connecting Know-how

© Copyright 2003 ppedv AG