Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 11:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB 2010] GDI+ in Picturebox

Discussion on [VB 2010] GDI+ in Picturebox within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Klenix123's Avatar
 
elite*gold: 17
Join Date: Apr 2009
Posts: 769
Received Thanks: 198
[VB 2010] GDI+ in Picturebox

Hallo Leute,
ich habe gerade ein Problem mit GDI+ in VB 2010.
Ich hab ne Picture Box in meiner Form und auf diese Picturebox möchte ich mit GDI+ etwas zeichnen.
Aber sobald die Form geöfnet wird kommt ein error in dem Steht : "Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt" bei:
Dim z as Graphics = Picbox1.createGraphics

Ich hoffe ihr könnt mir helfen...
Klenix123 is offline  
Old 06/25/2011, 12:12   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Wo genau benutzt du es denn? Am besten gleich das Paint-Event der PictureBox selbst nehmen:
PHP Code:
Private Sub PictureBox1_Paint(ByVal sender As System.ObjectByVal e As System.Windows.Forms.PaintEventArgsHandles PictureBox1.Paint
     Dim g 
As Graphics e.Graphics
     g
.DrawLine(...)
End Sub 
Versuchst deins wohl zu benutzen bevor die PictureBox überhaupt erstmal geladen wurde, deshalb der Fehler.
Kraizy​ is offline  
Old 06/26/2011, 06:08   #3
 
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
Fehler klingt als gäbe es die Instanz Picbox1 nicht. Erstelle dir eine PictureBox Instanz.
SmackJew is offline  
Reply


Similar Threads Similar Threads
[VB 2010] Bild aus PictureBox auf FTP Server hochladen
07/15/2011 - .NET Languages - 11 Replies
Wie kann ich ein Bild aus einer PictureBox direkt auf ein FTP Server hochladen ohne sie vorher auf den Computer zu speichern? Ich habe schon viele Codes ausprobiert aber es Funktioniert nicht! Ich habe schon Text oder abgespeicherte Dateien hochgeladen aber Bilder aus einer PictureBox hochladen geht nicht. Ich wäre euch dankbar, wenn ihr mir hilft und den Code schreibt. :)
VB.NET Picturebox Color Transparent Key
06/04/2011 - .NET Languages - 1 Replies
Deleted
VB.NET Picturebox Color Transparent Key
06/02/2011 - Off Topic - 2 Replies
Deleted
[Question] C# Opacity PictureBox
04/02/2010 - .NET Languages - 1 Replies
Hey Coders, I've got a question,, I got a PictureBox in Visual Studio, but i want to make it 50% Transparent, how to do this setting? Thanks



All times are GMT +1. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.