Visual Basic Forum

Visual Basic Forum
für VB6 und VB.NET Programmierer
 
RegistrierenRegistrieren  LoginLogin
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB.NET] Fragen - Antworten
Autor
Nachricht
ShadowLenny
Tutorial Leser
Tutorial Leser

Anmeldedatum: 25.05.2008
Beiträge: 54

PictuerBox2.Location.X um 1 erhöhen.
Verfasst am: 21.08.2008, 19:37

Moin, Leute.
ich habe mal eine kurze und kleine Frage:
Wie kann man die Kkordinate einer PictureBox um 1 erhöhen?
Wie man eine neue Location bestimmt weiß ich, aber wie man eine einzelne koordinate erhöht, leider nicht.

Bitte um Hilfe.

Gruß,Lenny.
 
^^kev####
Überflieger
Überflieger

Anmeldedatum: 01.05.2008
Beiträge: 476
Wohnort: Haan


Verfasst am: 21.08.2008, 20:18

So :p

Visual Basic: [code]PictureBox1.Location = New System.Drawing.Point(PictureBox1.Location.X + 1, PictureBox1.Location.Y + 1)[/code]
 
ShadowLenny
Tutorial Leser
Tutorial Leser

Anmeldedatum: 25.05.2008
Beiträge: 54


Verfasst am: 22.08.2008, 13:27

Aaaah^^ Klasse! Vielen Dank^^
 
Metropoler
Newbie
Newbie



Anmeldedatum: 20.02.2009
Beiträge: 4
Wohnort: Düsseldorf


Verfasst am: 20.02.2009, 03:09

^^kev#### hat Folgendes geschrieben:
So :p<br /><br />Visual Basic:
Code:
PictureBox1.Location = New System.Drawing.Point(PictureBox1.Location.X + 1, PictureBox1.Location.Y + 1)


Hallo,
reicht nicht einfach
Code:
[...] = New Point[...]

? da ich nur das bisher kenne. Nicht dieses System.Drawing.
Is zwar älter das Problem, aber wäre dennoch über eine Antwort erfreut Very Happy
 
belyj
Newbie
Newbie

Anmeldedatum: 06.03.2009
Beiträge: 1


Verfasst am: 06.03.2009, 07:50


Code:
Hoch
PictureBox1.Location = New Point(PictureBox1.Location.X + 0, PictureBox1.Location.Y - 2)

Runter
PictureBox1.Location = New Point(PictureBox1.Location.X + 0, PictureBox1.Location.Y + 2)

Links
PictureBox1.Location = New Point(PictureBox1.Location.X - 2 , PictureBox1.Location.Y + 0)

Rechts
PictureBox1.Location = New Point(PictureBox1.Location.X + 2 , PictureBox1.Location.Y + 0)


So hab ich das Problem gelöst... Cool
 
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB.NET] Fragen - Antworten

Tags: neue location, erhöhen, picturebox

 
 Verwandte Themen   Aufrufe   Letzter Beitrag 
Keine neuen Beiträge Keygen - Hilfe bitte 1104 29.08.2007, 10:38
Keine neuen Beiträge Screenshot , hilfe ;) Speichern bzw jo 711 27.05.2007, 10:30
Keine neuen Beiträge hilfe bei ini maker 709 30.04.2007, 22:26
Keine neuen Beiträge [VB] suche hilfe beim 1. projekt 858 02.04.2007, 01:39
Keine neuen Beiträge proxy checker hilfe 1015 30.03.2007, 10:21
 


[ Time: 0.0770s ][ Queries: 92 (0.0358s) ][ GZIP on - Debug on ]