I have put a background picture in a panel and now i want to drag and drop bitmap images on it.how do i accomplish that?
do you want set it as background for banel after dropping ??
from what you will drag image ?? picture box or outside programm ??
Please see this thread regarding to drag and drop:
Here is another thread in C# if you can port the code:
The VB code provided:
Public Class FormDragDrop Private Sub FormDragDrop_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.AllowDrop = True End Sub Private Sub FormDragDrop_DragEnter(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then e.Effect = DragDropEffects.Copy End If End Sub Private Sub FormDragDrop_DragDrop(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragDrop Dim handle As String() = e.Data.GetData(DataFormats.FileDrop, False) If (handle.Length > 0) Then If (System.IO.File.Exists(handle(0))) Then Me.BackgroundImage = Bitmap.FromFile(handle(0)) End If End If End Sub End Class
You will want to modify the code above to veryify that
Bitmap.FromFile() does not throw an exception if a non-image type resource is dragged on to your panel.
from another panel overlay with pictures.that what i'm trying to do .i have not found a way to do that overlaying also.plz help me if you can
set the overlay of picture by photoshop CS
than set it as background
if u want me to set your picture ,send it to me or put it here as attachment ..
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Hello All ...
Iam Getting An Error With try to excecute the stored procedure .
I have Have Sql database , the stored procedure like so :
USE [MPRS] GO /****** Object: StoredProcedure [dbo].[Search_Licenses_By_Number] Script Date: 26-Nov-16 8:06:52 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Here is the sample output that I ...