Questions tagged as 'picturebox'

1
answer

How can I manipulate margins in C # dynamically?

I would like to know how to give margins to the pictureBox in C #, I currently have this code: posX = posX + 100; PictureBox pic = new PictureBox(); pic.Location = new Point(posX, 50); pic.Name = "pic" + z; pic.Size = new S...
asked by 05.04.2017 / 22:40
1
answer

Save picturebox image in bd access with C #

I have a BD Access 2016 with a table that contains an OLE object field, in Visual Studio 2012 I have a WF project where I have a form that contains a pictureBox to attach the logo. I have an insert button that calls the statement made in...
asked by 29.05.2016 / 12:08
0
answers

how to save a square image when the original image is rectangular?

I'm trying to store in a folder called Photos only square images but I can not do it, any ideas? private void btnFoto_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDial...
asked by 29.03.2018 / 18:23
1
answer

Access a control of a form from another class C #

If you help me please. I have a form with a PictureBox and I want to move it from another class, it compiles but it does not do anything. On Form1 I have my PictureBox1 and from the class I have the following: public void mover_derecha(object...
asked by 02.03.2018 / 21:07
1
answer

Property: Show / Hide controls within a User Control

I am trying to create a Categoría for controles (components) within a Control de Usuario so that they are reflected in Propiedades of Visual Studio, to make visible / not visible a PictureBox , between other opt...
asked by 12.01.2018 / 19:16
0
answers

PictureBox moves when it should not in Event MouseDown c #

Good morning! I have a problem with an application that I am developing. I have my own class that inherits from PictureBox, with several events. Among them a MouseDown and a MouseMove. The fact is that when I click on that object in my cla...
asked by 08.03.2017 / 08:58