473,408 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How to drag part of image from pictureBox1 to pictureBox2 AllowDrop not exist:

I have this code wich let me the option to draw a Rectangle on pictureBox1. Now i did in the end a function that save to hard disk the Rectangle area from the image in the picturebox1 if i mark some area in the image in the pictureBox1 it will save only the area inside the red Rectangle.

Now i want to do that the user will be able to drag with the mouse the Rectangle with the image part inside to pictureBox2.

First problem is i dont know how to do it. Second thing is every example i looked in the internet is using pictureBox2.AllowDrop but i dont have this property.
In my new form in the constructor im doing pictureBox2.
But AllowDrop dosent exist.


Here is the complete code with the rectangle save and all the things.

Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Drawing.Drawing2D;
  10. using System.Drawing.Imaging;
  11. using System.IO;
  12.  
  13. namespace WindowsFormsApplication1
  14. {
  15.      public partial class ImagesPixelsColorsComparison : Form
  16.     {
  17.          static Label label_section;
  18.         static string selected_section;
  19.         static FolderBrowserDialog section_dialog;
  20.         Bitmap newImage;
  21.         ToolTip mytip1;
  22.         FileInfo fi;
  23.         bool button_switch;
  24.         bool copy_mode;
  25.         Bitmap f1;
  26.         Bitmap f2;
  27.         Bitmap tempBmp;
  28.         ImagesComparison ImagesComparion1;
  29.         Rectangle Rect;
  30.         Rectangle RectImage;
  31.         Bitmap FirstImage = null;
  32.         Bitmap SecondImage = null;
  33.         Bitmap ThirdImage = null;
  34.         Bitmap FourthImage = null;
  35.         bool StopPaint;
  36.         bool StartPaint;
  37.         bool _dontDrawRect = false;
  38.         public ImagesPixelsColorsComparison()
  39.         {
  40.             InitializeComponent();
  41.             this.AllowDrop = true;
  42.             label_section = new Label();
  43.             this.Controls.Add(label_section);
  44.             selected_section = Options_DB.get_selected_section();
  45.             section_dialog = new FolderBrowserDialog();
  46.             if (!Directory.Exists(selected_section))
  47.             {
  48.                 textBox9.Text = "";
  49.             }
  50.             else
  51.             {
  52.                 textBox9.Text = selected_section;
  53.             }
  54.             copy_mode = false;
  55.             button_switch = true;
  56.             ImagesComparion1 = new ImagesComparison();
  57.             textBox6.Text = this.Size.ToString();
  58.             StartPaint = false;
  59.             StopPaint = true;
  60.  
  61.           /*  ThirdImage = Properties.Resources.RadarImageActive;
  62.             FourthImage = Properties.Resources.RadarImageCloseDemo;
  63.             pictureBox1.Size = ThirdImage.Size;
  64.             pictureBox2.Size = FourthImage.Size;
  65.             this.pictureBox1.Image = this.ThirdImage;
  66.             this.pictureBox2.Image = this.FourthImage;*/
  67.             button1.Location = new Point(pictureBox1.Location.X + pictureBox1.Width / 2 - button1.Width / 2 , pictureBox1.Bounds.Location.Y - 28); // חישוב מדוייק של האמצע של הקונטרול והמיקום לש הכפתור בדיוק באמצע. 
  68.             button2.Location = new Point(pictureBox2.Location.X + pictureBox2.Width / 2 - button2.Width / 2, pictureBox2.Bounds.Location.Y - 28);
  69.         }
  70.  
  71.         private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
  72.         {
  73.             if (StopPaint == false)
  74.             {
  75.                 return;
  76.             }
  77.             else
  78.             {
  79.                 if (e.Button == MouseButtons.Left && this._dontDrawRect == false)
  80.                 {
  81.                     textBox1.Text = "";
  82.                     textBox2.Text = "";
  83.                     textBox3.Text = "";
  84.                     StartPaint = true;
  85.                     Rect = new Rectangle(e.X, e.Y, 0, 0);
  86.                     textBox4.Text = "Top " + Rect.Top + " Left " + Rect.Left;
  87.                     pictureBox1.Invalidate();
  88.                 }
  89.             }
  90.         }
  91.  
  92.         private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
  93.         {
  94.             textBox7.Text = "Position on X: " + e.X + "Position on Y: " + e.Y;
  95.             if (StopPaint == false)
  96.             {
  97.                 return;
  98.             }
  99.             else
  100.             {
  101.                 if (e.Button == MouseButtons.Left && this._dontDrawRect == false)
  102.                 {
  103.                     Rect = new Rectangle(Rect.X, Rect.Y, e.X - Rect.X, e.Y - Rect.Y);
  104.                     pictureBox1.Invalidate();
  105.                 }
  106.             }
  107.         }
  108.  
  109.         private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
  110.         {
  111.             if (e.Button == System.Windows.Forms.MouseButtons.Left)
  112.             {
  113.                 if (pictureBox1.Image == null)
  114.                 {
  115.                     return;
  116.                 }
  117.                 tempBmp = new Bitmap(FirstImage);
  118.                 float newLeft = 0;
  119.                 newLeft =  ((float)Rect.Left / (float)pictureBox1.Width) * ((float)FirstImage.Width);
  120.                 float newRight = ((float)Rect.Right/(float)pictureBox1.Width)*((float)FirstImage.Width);
  121.                 float newTop = 0;
  122.                 newTop = ((float)Rect.Top / (float)pictureBox1.Height) * ((float)FirstImage.Height);
  123.                 float newBottom = ((float)Rect.Bottom/(float)pictureBox1.Height)*((float)FirstImage.Height);
  124.                 RectImage = new Rectangle((int)newLeft, (int)newTop, (int)newRight - (int)newLeft, (int)newBottom - (int)newTop);
  125.                 // you saw that the Rect region is outside of the picture box..
  126.                 // and you don't check the 4 points you get from the mouse..
  127.                 // you must  as always  .. make an input check on parameters..
  128.                 // in this case it means that you must check left right top bottom..
  129.                 // or the Rect you got.. to see that it is not too big.. or too fat or too small or too anything..
  130.                 // that might be not ok to continue with this parameters..
  131.                 // in the for the i went from left to right.. and since right was calaculated
  132.                 // to be more than 512 (its 614 i think when i did it ) .. than of course
  133.                 // the for will fail when the GetColor try to get a pixel from 512,y..
  134.                 // so in the case the RectImage bounds are not "good" put a message to the user
  135.                 // and don't continue to doing the rest..
  136.  
  137.  
  138.  
  139.  
  140.                 if (e.X > pictureBox1.Size.Width || e.Y > pictureBox1.Size.Height)
  141.  
  142.                 // || RectImage.Bottom > pictureBox1.Bottom) //|| RectImage.Bottom > pictureBox1.Bottom) //||
  143.                    // RectImage.Size.Width > pictureBox1.Bounds.Left || RectImage.Width > pictureBox1.Bounds.Right)    //bounds are not ok )
  144.                 {
  145.                     MessageBox.Show("You are out of region!");
  146.  
  147.                     return; // not doing the rest cause the "input parameters"(the mouse coordinates) are not legal to continue
  148.                 }
  149.  
  150.  
  151.                 // if cound are ok.. the program will continue here... and it will work fine..
  152.  
  153.                 int i, j;
  154.                 for (i=RectImage.Left;i<RectImage.Right;i++)
  155.                     for (j = RectImage.Top; j < RectImage.Bottom; j++)
  156.                     {
  157.                         Color c = FirstImage.GetPixel(i, j);
  158.                         tempBmp.SetPixel(i, j, c);
  159.                     }
  160.                 pictureBox1.Image = tempBmp;
  161.                 Copy(FirstImage, RectImage);
  162.                 textBox5.Text = "Right " + RectImage.Right + " Bottom " + RectImage.Bottom;
  163.                 textBox4.Text = "Left " + RectImage.Left + " Top " + RectImage.Top;
  164.                 //check, if picture-variables are set
  165.                 if (FirstImage != null && SecondImage != null)
  166.                 {
  167.                     //check, if selected the correct rectangle for comparing,
  168.                     //if so, set further rectangle-selecting to false
  169.                     if (this._dontDrawRect == false)
  170.                     {
  171.                         if (MessageBox.Show("Use this Rectangle for comparing?", "Question",
  172.                          MessageBoxButtons.YesNo, MessageBoxIcon.Question) ==
  173.                          System.Windows.Forms.DialogResult.Yes)
  174.                         {
  175.                             this._dontDrawRect = true;
  176.                         }
  177.                     }
  178.  
  179.                     //if correct rectangle selected, do the job
  180.                     if (_dontDrawRect)
  181.                     {
  182.                         if (copy_mode == true)
  183.                         {
  184.                             MessageBox.Show("hi");
  185.                         }
  186.                         else
  187.                         {
  188.                             if (ImagesComparion1.ImageComparison(FirstImage, SecondImage, Rect)) // לבדוק איך להעביר נתונים מהצד השני לכאן לטקסט בוקסים.
  189.                             {
  190.                                 textBox1.Text = ImagesComparion1.textbox1;
  191.                                 textBox2.Text = ImagesComparion1.textbox2;
  192.                                 textBox3.Text = ImagesComparion1.textbox3;
  193.                                 MessageBox.Show("identical");
  194.                             }
  195.                             else
  196.                             {
  197.                                 textBox1.Text = ImagesComparion1.textbox1;
  198.                                 textBox2.Text = ImagesComparion1.textbox2;
  199.                                 textBox3.Text = ImagesComparion1.textbox3;
  200.                                 MessageBox.Show("different");
  201.                             }
  202.                         }
  203.                     }
  204.                 }
  205.             }
  206.             else if (e.Button == System.Windows.Forms.MouseButtons.Right)
  207.                 this._dontDrawRect = false;
  208.  
  209.         }
  210.  
  211.         private void pictureBox1_Paint(object sender, PaintEventArgs e)
  212.         {
  213.             using (Pen pen = new Pen(Color.Red, 2))
  214.             {
  215.                 if (StartPaint == true)
  216.                 {
  217.                     e.Graphics.DrawRectangle(pen, Rect);
  218.                     pictureBox2.Invalidate();
  219.                     pictureBox2.Paint += new PaintEventHandler(pictureBox2_Paint);
  220.                 }
  221.             }
  222.         }
  223.  
  224.         private void ImagesPixelsColorsComparison_FormClosing(object sender, FormClosingEventArgs e)
  225.         {
  226.             //dispose
  227.             if (FirstImage != null)
  228.                 FirstImage.Dispose();
  229.             if (SecondImage != null)
  230.                 SecondImage.Dispose();
  231.             if (ThirdImage != null)
  232.                 ThirdImage.Dispose();
  233.             if (FourthImage != null)
  234.                 FourthImage.Dispose();
  235.         }
  236.  
  237.         private void ImagesPixelsColorsComparison_Resize(object sender, EventArgs e)
  238.         {
  239.             textBox6.Text = this.Size.ToString();
  240.         }
  241.  
  242.         private void pictureBox2_Paint(object sender, PaintEventArgs e)
  243.         {
  244.             using (Pen pen = new Pen(Color.Red, 2))
  245.             {
  246.                     e.Graphics.DrawRectangle(pen, Rect);
  247.             }
  248.         }
  249.  
  250.         private void button1_Click(object sender, EventArgs e)
  251.         {
  252.             openFileDialog1.Title = "Select Bitmap file or Jpg file to load into the pictureBox";
  253.             openFileDialog1.InitialDirectory = "c:\\";
  254.             openFileDialog1.FileName = null;
  255.             openFileDialog1.Filter = "First Bitmap Or Jpg File|*.bmp;*.jpg|Bitmap Or Jpg File|*.bmp;*.jpg";
  256.             openFileDialog1.FilterIndex = 1;
  257.             openFileDialog1.RestoreDirectory = true;
  258.             DialogResult result1 = openFileDialog1.ShowDialog();
  259.             string file1 = openFileDialog1.FileName;
  260.             if (result1 == DialogResult.OK)
  261.             {
  262.                 f1 = new Bitmap(file1);
  263.                 FirstImage = f1;
  264.                 pictureBox1.Image = f1; // ScalImage(f1, pictureBox1.Size);
  265.               //  pictureBox1.Size = f1.Size;
  266.                 fi = new FileInfo(file1);
  267.                // textBox1.Text = fi.DirectoryName;
  268.                // textBox2.Text = fi.Extension;
  269.             }
  270.         }
  271.  
  272.         private void button2_Click(object sender, EventArgs e)
  273.         {
  274.             openFileDialog2.Title = "Select Bitmap file or Jpg to load into the pictureBox";
  275.             openFileDialog2.InitialDirectory = "c:\\";
  276.             openFileDialog2.FileName = null;
  277.             openFileDialog2.Filter = "Second Bitmap Or Jpg File|*.bmp;*.jpg|Bitmap Or Jpg File|*.bmp;*.jpg";
  278.             openFileDialog2.FilterIndex = 1;
  279.             openFileDialog2.RestoreDirectory = true;
  280.             DialogResult result2 = openFileDialog2.ShowDialog();
  281.             string file2 = openFileDialog2.FileName;
  282.             if (result2 == DialogResult.OK)
  283.             {
  284.                 f2 = new Bitmap(file2);
  285.                 SecondImage = f2;
  286.                 pictureBox2.Image = f2; // ScalImage(f2, pictureBox2.Size);
  287.              //   pictureBox2.Size = f2.Size;
  288.             }
  289.         }
  290.  
  291.         private void ImagesPixelsColorsComparison_MouseMove(object sender, MouseEventArgs e)
  292.         {
  293.             textBox8.Text = "Position on X: " + e.X + " Position on Y: " + e.Y;
  294.         }
  295.  
  296.         private void button3_Click(object sender, EventArgs e)
  297.         {
  298.             if (StopPaint)
  299.             {
  300.                 StartPaint = true;
  301.                 StopPaint = false;
  302.                 label10.Text = "Currently on automatic paint mode";
  303.                 button3.Text = "Manual paint mode";
  304.                 Rect = new Rectangle(25, 240, 366, 279);
  305.             }
  306.             else
  307.             {
  308.                 StopPaint = true;
  309.                 label10.Text = "Currently on manual paint mode";
  310.                 button3.Text = "Automatic paint mode";
  311.                 Rect = new Rectangle(-1, -1, 0, 0);
  312.             }
  313.             this.pictureBox1.Invalidate();
  314.             this.pictureBox2.Invalidate();
  315.         }
  316.  
  317.  
  318.          //*** This function put image on image and  create a black and white image from two colors or black and white images ***\\
  319.          public  Bitmap black_and_white(Bitmap image1, Bitmap image2)
  320.          {
  321.              if (pictureBox1.Image == null || pictureBox2.Image == null)
  322.              {
  323.                  return null;
  324.              }
  325.                  Color newColor;
  326.                  Bitmap image_scan;
  327.                  image_scan = new Bitmap(512, 512);
  328.                  newImage = new Bitmap(image1.Width, image1.Height);
  329.                  int x, y;
  330.  
  331.                  if (image1.Width != image2.Width || image1.Height != image2.Height)
  332.                  {
  333.                      MessageBox.Show("Images are different Size");
  334.                      return null;
  335.                  }
  336.  
  337.                  for (x = 0; x < newImage.Width; x++)
  338.                  {
  339.                      for (y = 0; y < newImage.Height; y++)
  340.                      {
  341.                          Color originalColor = image1.GetPixel(x, y);
  342.                          Color originalColor1 = image2.GetPixel(x, y);
  343.                          int WhiteBlack = (int)((originalColor.R) + (originalColor.G)
  344.                    + (originalColor.B));
  345.                          int WhiteBlack1 = (int)((originalColor1.R) + (originalColor1.G)
  346.                   + (originalColor1.B));
  347.                          if (WhiteBlack == WhiteBlack1)
  348.                              newColor = Color.FromArgb(0,0,0);
  349.                          else
  350.                              newColor = Color.FromArgb(255, 255, 255);
  351.                              newImage.SetPixel(x, y, newColor);
  352.                      }
  353.                  }
  354.                  newImage.Save(@"d:\newImage.bmp", System.Drawing.Imaging.ImageFormat.Bmp);
  355.                  pictureBox3.Image = newImage;
  356.                  return newImage;
  357.          }
  358.  
  359.          private void button4_Click(object sender, EventArgs e)
  360.          {
  361.              black_and_white (f1,f2);
  362.          }
  363.  
  364.          private void pictureBox3_Click(object sender, EventArgs e)
  365.          {
  366.              if (button_switch == true)
  367.              {
  368.                  button_switch = false;
  369.                  pictureBox3.Dock = DockStyle.Fill;
  370.                  pictureBox3.BringToFront();
  371.              }
  372.              else
  373.              {
  374.                  button_switch = true;
  375.                  pictureBox3.Dock = DockStyle.None;
  376.              }
  377.          }
  378.  
  379.          private void pictureBox1_MouseEnter(object sender, EventArgs e)
  380.          {
  381.              if (pictureBox1.Image == null)
  382.              {
  383.              }
  384.              else
  385.              {
  386.                  mytip1 = new ToolTip();
  387.                  mytip1.UseFading = true;
  388.                  mytip1.Show(fi.Extension, label4, 5000);
  389.              }
  390.          }
  391.  
  392.          private void pictureBox1_MouseLeave(object sender, EventArgs e)
  393.          {
  394.              if (pictureBox1.Image == null)
  395.              {
  396.              }
  397.              else
  398.              {
  399.                  mytip1.Dispose();
  400.              }
  401.          }
  402.  
  403.          private void button5_Click(object sender, EventArgs e)
  404.          {
  405.              copy_mode = true;
  406.          }
  407.  
  408.          static public Bitmap Copy(Bitmap srcBitmap, Rectangle section)
  409.          {
  410.              Bitmap bmp;
  411.              bmp = new Bitmap(section.Width, section.Height);
  412.  
  413.  
  414.                      Graphics g = Graphics.FromImage(bmp);
  415.  
  416.                      // Draw the specified section of the source bitmap to the new one
  417.                      g.DrawImage(srcBitmap, 0, 0, section, GraphicsUnit.Pixel);
  418.  
  419.                      // Clean up
  420.                      g.Dispose();
  421.  
  422.                      // Return the bitmap
  423.                      if (!Directory.Exists(selected_section))
  424.                      {
  425.  
  426.                      }
  427.                      else
  428.                      {
  429.                          bmp.Save(selected_section + @"\section.bmp", ImageFormat.Bmp);
  430.                          label_section.Enabled = true;
  431.                          label_section.Visible = true;
  432.                          label_section.Location = new Point(7, 530);
  433.                          label_section.Width = 300;
  434.                          label_section.Text = "Image selected area saved";
  435.  
  436.                      }
  437.  
  438.              // Create the new bitmap and associated graphics object
  439.              return bmp;
  440.  
  441.          }
  442.  
  443.          private void button5_Click_1(object sender, EventArgs e)
  444.          {
  445.               section_dialog.Description = "Select/Change the default directory for saving specific selection of image";
  446.               if (section_dialog.ShowDialog() == DialogResult.OK)
  447.               {
  448.                   string message = "Are you sure you want to save the image to this location ?";
  449.                   string caption = "Operation cancelled";
  450.                   MessageBoxButtons buttons = MessageBoxButtons.YesNo;
  451.                   DialogResult result;
  452.                   result = MessageBox.Show(message, caption, buttons);
  453.  
  454.                   if (result == System.Windows.Forms.DialogResult.Yes)
  455.                   {
  456.                       selected_section = section_dialog.SelectedPath;
  457.                       textBox9.Text = selected_section;
  458.                       Options_DB.set_selected_section(selected_section);
  459.                   }
  460.               }
  461.          }
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.        }
  474. }
  475.  

Thanks.
May 31 '11 #1

✓ answered by GaryTexmo

I feel like we talked about this in another thread when you were asking about your selection drawing rectangle. I seem to recall saying you would have trouble with this based on the way you were calculating the rectangle. I also seem to think you said you didn't want to deal with it then :P :P (http://bytes.com/topic/c-sharp/answe...tangle-borders)

Put a breakpoint on that line and see what section.Width and section.Height are. I'm wondering if they are negative and that's why your bitmap is coming out null. If so, I'm pretty sure you just need the absolute value of the dimensions. However, when you copy for your offset you'll need the min of the click points as your start coordinate. Unless you copy backwards... but it's easier to just swap the coordinates :D

3 2517
GaryTexmo
1,501 Expert 1GB
I believe drag/drop on a picture box doesn't work. There was a thread on a similar topic that I was involved in a while back. I'll try to find it but no promises, haha.

Anyway, the general solution was to just do drag/drop on a panel that contained pictureboxes. You can drag the picturebox, but you can't drop to one. I think it was something like that.

*Edit: Found the thread... hope it helps!
http://bytes.com/topic/c-sharp/answe...-windows-forms
May 31 '11 #2
Great thanks for the thread.
Another problem in this new form code near the end in the bottom of this code im using Copy function and a variable called bmp

If i draw the rectangle to the right or bottom its ok but if i draw try to draw the rectangle in the pictueBox1 to the top up or to the right it dosent draw anything witch is ok but it also throw me exception on the bmp variable in the Copy function say its null.

On this line: bmp = new Bitmap(section.Width, section.Height);
bmp is null.
And only when i try to draw to the right or up. I mean when i press the mouse left click button without leaving it and drag it to the left or up it dosent draw a rectangle and thats fine but it also throw exception that bmp is null.

How can i avoid or check for this null thing ? I tried but without success.

And this drawing to the left and up dosent got anything with the draging the image from pictureBox to pictureBox.

I just dont understand why bmp is null and what to do ? I tried to check if bmp is null above the line bmp = new Bitmap(section.Width, section.Height); but then it says using unsigned bmp...

Thanks for helping.
May 31 '11 #3
GaryTexmo
1,501 Expert 1GB
I feel like we talked about this in another thread when you were asking about your selection drawing rectangle. I seem to recall saying you would have trouble with this based on the way you were calculating the rectangle. I also seem to think you said you didn't want to deal with it then :P :P (http://bytes.com/topic/c-sharp/answe...tangle-borders)

Put a breakpoint on that line and see what section.Width and section.Height are. I'm wondering if they are negative and that's why your bitmap is coming out null. If so, I'm pretty sure you just need the absolute value of the dimensions. However, when you copy for your offset you'll need the min of the click points as your start coordinate. Unless you copy backwards... but it's easier to just swap the coordinates :D
May 31 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Thorpe | last post by:
I am currentl writting an c# application but I need a few pointers. I want to allow a user to drag an image from the windows desktop to my application. I know this is possible with c++ but can...
0
by: Remis | last post by:
I have pictures on DB. (use 1.1 framework) When use Response.ContentType = "Image/Gif' Response.OutputStream.Write(DR("Pic_Data"), 0, DR("Pic_Size"))
2
by: William | last post by:
I am creating an application to categorize images from websites. I have tried a few sets of sample code to try to copy the image when it is dropped into my vb.net application but it seem that the...
2
by: Carl Gilbert | last post by:
Hi I am looking for either a component or technique to allow me to do the following: * Provide a panel with a background image * Resize the image to best fit the panel to maintain aspect...
0
by: joey.powell | last post by:
I have a Windows Forms application where I need to be able to drag and then drop onto a datagridview control. I already have the code necessary to make the drag part work. I am having problems,...
0
by: goldie2k | last post by:
OK. There must be a fairly easy way to do this. Below is my code for reference, but im stuck on how to pass the product_id pulled from the DB into the if statement to check if the file exists. ...
5
by: kishored | last post by:
Hello everybody I would like to know how to drag an image using mouse and drop it somewhere else in the same form. Can anyone help me.
4
by: MikeP123 | last post by:
Hi, I'm pretty much a .NET n00b, and I was wondering if there is a (hopefully fast) way to see if two images are the same. I have a little test project with two PictureBoxes loaded with the exact...
1
by: Bart Steur | last post by:
Hello, I'm using VB 2005 Express. I want to implement a functionality into my app that allows users to drag an image file from explorer onto a picture box control in my app. I can't get it to...
1
by: ashwinigopi | last post by:
Hi I am trying to drag and drop image to a picture box in the form. I using this code but doesnt seem to work. Here is the code, private void Form1_DragEnter(object sender, DragEventArgs e) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.