deery5000's Profile User Rating: -----

Reputation: 86 Whiz
Group:
Active Members
Active Posts:
1,046 (0.49 per day)
Joined:
09-May 09
Profile Views:
10,569
Last Active:
User is online 5 minutes ago
Currently:
Viewing Topic: In need of feedback. anything yo...

Previous Fields

Country:
IE
OS Preference:
Windows
Favorite Browser:
Internet Explorer
Favorite Processor:
Intel
Favorite Gaming Platform:
Playstation
Your Car:
LandRover
Dream Kudos:
0

Latest Visitors

Icon   deery5000 Hobbyist Coder :)

Posts I've Made

  1. In Topic: Update control on a different form

    Posted 17 Feb 2015

    I resolved this

    You need to set a reference to the control , then you can directly update it

    Showing the form and setting the reference
      Dim posterSelector As New Poster_Selector(titleLabel.Text)
            posterSelector.movieDetailsPosterRef = Me.posterPictureBox
            posterSelector.ShowDialog()
    
    


    Public variable
      Public movieDetailsPosterRef As PictureBox
    
    


    Directly updating the control
      'LOAD POSTER INTO MOVIE DETAILS
        Private Sub poster_Clicked(sender As Object, e As EventArgs)
    
            'GET CONTROLS PROPERTIES 
            Dim pic As PictureBox = DirectCast(sender, PictureBox)
    
            Try
    
                'DIPOSE OF EXISTING IMAGE 
                movieDetailsPosterRef.Image.Dispose()
    
                'DELETE OLD POSTER
                If File.Exists(Directory.GetCurrentDirectory + "\MOVIE CONTENTS\POSTERS\" & movieTitle & ".jpg") Then
                    File.Delete(Directory.GetCurrentDirectory + "\MOVIE CONTENTS\POSTERS\" & movieTitle & ".jpg")
                End If
    
                'COPY POSTER TO CORRECT LOCATION
                File.Copy(pic.Tag, Directory.GetCurrentDirectory + "\MOVIE CONTENTS\POSTERS\" & movieTitle & ".jpg", True)
    
                'SET NEW PICTURE IN CONTROL
                Using fs As New System.IO.FileStream(Directory.GetCurrentDirectory + "\MOVIE CONTENTS\POSTERS\" & movieTitle & ".jpg", IO.FileMode.Open, IO.FileAccess.Read) '- how???
                    movieDetailsPosterRef.Image = System.Drawing.Image.FromStream(fs)
                End Using
    
            Catch ex As Exception
                MessageBox.Show(ex.ToString, "oops, something went wrong!", MessageBoxButtons.OK)
            End Try
    
        End Sub
    
    


    Panic over, this was a good one to know :)

    thanks for looking guys
  2. In Topic: Can't open References from My Project settings page

    Posted 13 Feb 2015

    do u mean when your running your application and you attempt to open the references form ?

    this little beast is a nightmare
    Exception has been thrown by the target of an invocation

    tips for you to look at,

    1. debug your code and step over line by line , your looking for an object reference error
    2. if your using threads or background worker ensure you cancel there operation when switching between forms
    3, are you trying to update a form that is currently not open?

    post back with some code
  3. In Topic: youtube music in the background

    Posted 11 Feb 2015

    There is another way!

    You will need to add the flash player control to your project, hide it so its not visible. when you click on your radio put, update the url to the player.

    youtube url
    https://www.youtube.com/watch?v=

    video number (top 40)
    XEthSNI8YXM

    full url
    https://www.youtube....h?v=XEthSNI8YXM

    As many have pointed out , this will break there terms of use, however its up to you!

    There is tons of examples on google, and on youtube (ironic) how to do this :)
  4. In Topic: Load on demand image gallery

    Posted 10 Feb 2015

    I had that before a long time ago before movie to scrolling

    I will implement this tonight, atleast that will get rid of an ugly scroll bar :)


    Thanks :)
  5. In Topic: Rusnak CMS - An easy to use Content Management System

    Posted 9 Feb 2015

    Looks very good

    Congrats :)

My Information

Member Title:
D.I.C Lover
Age:
30 years old
Birthday:
December 28, 1984
Gender:
Location:
Derry / Londonderry
Interests:
Play in the North West Snooker league each year
Programme everyday for fun
PC Repair
Full Name:
Kevin Deery
Years Programming:
6
Programming Languages:
C++, Java, C#, Vb.Net , SQL,

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  deery_5000@hotmail.co.uk
Website URL:
Website URL  http://
LinkedIn:
http://www.linkedin.com/profile/view?id=222123994&trk=nav_responsive_tab_profile
Facebook:
https://www.facebook.com/kevin.deery.9

Friends

Comments

deery5000 has no profile comments yet. Why not say hello?