Text over image before save!
Text over image before save!
Text over image before save!
Text over image before save!
Text over image before save!
Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save!
Text over image before save! Text over image before save!
Text over image before save!
Go Back  Xtreme Visual Basic Talk > > > Text over image before save!


Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2014, 08:17 PM
thebro thebro is offline
Newcomer
 
Join Date: Feb 2014
Posts: 1
Default 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!
Reply With Quote
  #2  
Old 04-09-2014, 08:01 AM
JustinCase2 JustinCase2 is offline
Junior Contributor
 
Join Date: Apr 2006
Posts: 324
Default 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:

Code:
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
        Next
    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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Text over image before save!
Text over image before save!
Text over image before save! Text over image before save!
Text over image before save!
Text over image before save!
Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save! Text over image before save!
Text over image before save!
Text over image before save!
 
Text over image before save!
Text over image before save!
 
-->