Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   .NET Office Automation (http://www.xtremevbtalk.com/-net-office-automation/)
-   -   Text over image before save! (http://www.xtremevbtalk.com/-net-office-automation/326824-text-image-save.html)

thebro 02-09-2014 07:17 PM

Text over image before save!
Hello! I am The Bro.

I have very limited skills in visual basic but Im trying to help out my friend by creating a thumbnail "generator/creator" for his new hobby, making youtube vids.

I want the program to have drag and drop that resizes the original image to 320x180 and that inserts the text from 3 different textboxes onto the resized image before saving it.

My Idea

Check the link to see what I mean.

As of now I have a panel with a fixed size of 320x180, I cant get drag and drop to work and change its background.
I have 3 textboxes that changes the text on 3 labels that are above the panel.
I can get browse to work, but I much much rather have drag and drop.

I hope I make any sense and that you guys can help me with this!

JustinCase2 04-09-2014 07:01 AM

Should be simple enough
If I understand you correctly, it is the "Drag Drop" part you are having difficulties with. All you need to do is:

Set the forms "AllowDrop" property to True.

Add this in the codebehind:


Private Sub Form1_DragDrop(sender As Object, e As DragEventArgs) Handles Me.DragDrop
        Dim AllFiles() As String = e.Data.GetData(DataFormats.FileDrop)
        For Each s as string In AllFiles
            ' variable s now holds the path to the file. The "For each" handles dropping several files at once
    End Sub

    Private Sub Form1_DragEnter(sender As Object, e As DragEventArgs) Handles Me.DragEnter
        If e.Data.GetDataPresent(DataFormats.FileDrop) Then
            e.Effect = DragDropEffects.Copy
        End If
    End Sub

All times are GMT -6. The time now is 09:42 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.