Tiago fernando Posted January 3, 2008 at 06:16 PM Report Share #157654 Posted January 3, 2008 at 06:16 PM óla pessoal eu sou novo nisto de programar, como disse anteriormente em outro tópico eu estou a fazer um catálogo para os meus cds e dvds. Vamos ao que interessa eu tenho uma picture box com imagens de uma base de dados e queria criar um botão ou algo do genero que fize-se com que a imagem amplia-se. valeu 😉 Link to comment Share on other sites More sharing options...
Cybernavigator Posted January 3, 2008 at 08:46 PM Report Share #157680 Posted January 3, 2008 at 08:46 PM Insere uma picturebox no teu projecto e 2 butões, com o nome dos 3 objectos por default e copia e passa o seguinte código: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.Size = New System.Drawing.Size((PictureBox1.Size.Width + 20), (PictureBox1.Size.Height + 10)) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load PictureBox1.ImageLocation = "http://www.portugal-a-programar.org/forum/Themes/saf-mc1/images/pap.jpg" End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click PictureBox1.Size = New System.Drawing.Size((PictureBox1.Size.Width - 20), (PictureBox1.Size.Height - 10)) End Sub End Class E pronto está aí 😉 Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico*** Link to comment Share on other sites More sharing options...
Tiago fernando Posted January 4, 2008 at 12:32 PM Author Report Share #157763 Posted January 4, 2008 at 12:32 PM Obrigado mais uma vez Cybernavigator Tens me ajudado muito. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now