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

Reputation: 86 Whiz
Group:
Active Members
Active Posts:
1,050 (0.49 per day)
Joined:
09-May 09
Profile Views:
10,768
Last Active:
User is offline Mar 27 2015 08:58 AM
Currently:
Offline

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: How to select combo box item (Windows store app XAML VB.Net)

    Posted 17 Mar 2015

    Complete madness for something so simple!!!

    I can iterate through the collection of items and get the content value, compare the value with my object and set the item

      For Each item In cboOccurrance.Items
                    Dim value = CType(item, ComboBoxItem).Content
                    If value = customer.occurrance Then
                        cboOccurrance.SelectedValue = item
                    End If
                Next
    
    


    anybody have a better way of doing this?
  2. In Topic: Get User Image in Picturebox

    Posted 4 Mar 2015

    I know you received your solution however there is a means of setting the path within the picture box

    picturebox1.Tag = StoredPath

    you can always access the properties of the control to get this path when u need it
  3. 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
  4. 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
  5. 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 :)

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?