» Home » picturebox » Page 1
How can I avoid a picturebox to dissapear when I move and place it on another picturebox in runtime?
Category : Programming Languages

I tested the code in this webpage that is for moving a picturebox in runtime: http://www.davidsuarez.es/2007/11/mover-y-soltar-controles-con-drag-drop-visual-basic/

I created a Form with two pictureboxex: Picture1 and Picture2 (the page is in spanish, so I copy the modified code here):

Dim DY As Single
Dim DX As Single
Dim Flag_MouseMove As Boolean

View Replies

PictureBox from file to BLOB to SQL Server database, then from DB to PictureBox
Category : Programming Languages

I have 1 Windows Form with 1 pictureBox, 1 textBox, and 3 buttons: LoadFromFile, SaveToDB, and LoadFromDB.

Using LINQ to SQL connection in App.config and next code in the form:

private void btnLoadFromFile_Click(object sender, EventArgs e)
// open file dialog
OpenFileDialog open = new OpenFileDialog();
// image filters
open.Filter = "Image

View Replies

PictureBox.Refresh() is slow when drawing in a PictureBox
Category : Programming Languages

I have a Windows Form Application in Visual Studio 2008 - PictureBox.Refesh() method causes a delay when drawing on a PictureBox. Is there any method that gives the same result without delay?

View Replies

Moving a picture that is inside a PictureBox to another PictureBox
Category : Programming Languages

How can I move a picture that is inside a picturebox to another picturebox?

I want to use it for moving the pieces of chess game. I have a took picturebox for each place, so I have 64 pictureboxes.

View Replies

Make Picturebox transparent over other picturebox? vb.net
Category : VB & VBnet

I have two Picturebox and both should be transparent background, but the real problem is both transparent for form background but not over each other .

so please help me to make it really transparent ?
here's photo of my problem:

View Replies

Get PictureBox Name
Category : Programming Languages

I have 2 PictureBox , name: pictureBox1, pictureBox2
how i can get the name of pictureBox that i clicked on it?

private void pictureBox1_Click(object sender, EventArgs e)
MessageBox.Show("clicked on: " + ??????);
private void pictureBox2_Click(object sender, EventArgs e)
MessageBox.Show("clicked on: " +

View Replies

TAGS : PictureBox Name

Name of picturebox
Category : Programming Languages

I have many PictureBoxes with the names picturebox_D1, picturebox_D2... D30.

What I'd like to do is to change the images in those PictureBoxes, but in loop. Something like this, but working

for (int i = 0; i < 30; i++)
if (ReceivedDataTextBox.Text[i].ToString()=="1")

View Replies

TAGS : Name picturebox

Picturebox not drawing?
Category : Programming Languages

I have a User Control which is a 640 x 640 window with a 640 x 640 picture box is it. Here is the User Control code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Map_Builder

View Replies

picturebox image :
Category : Programming Languages
myPictureBox.Image = New Bitmap(myPictureBox.ClientSize.Width, _


Using g As Graphics = Graphics.FromImage(myPictureBox.Image)
' do the drawing '
End Using

thanks for your answer. But please tell me where can i place this code.

View Replies

TAGS : picturebox image

Picturebox overlay vb.net
Category : VB & VBnet

I have written the following code but there is an issue which I am not trying to figure out.. I am trying to draw a simple line on the image in my picture box on mouse click. however, paint method is called but doesnt draw it, instead the line at that point is drawn when I scroll the picture in the picture box.. Pls help

Private Sub picCurrentimage_MouseDown(ByVal sender As Syste

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .