Jump to content

Problem with Sampleapp


Recommended Posts

' Download the thumbnail for a note; then display it on this app's form.
Dim thumbnail As Byte() = ENSession.SharedSession.DownloadThumbnailForNote(myResultsList(0).NoteRef, 120)
Try
    Dim ms As New MemoryStream(thumbnail, 0, thumbnail.Length)
    ms.Position = 0
    Dim image1 As System.Drawing.Image = System.Drawing.Image.FromStream(ms, FalseFalse)
 
    PictureBoxThumbnail.Image = image1
Catch ex As Exception
    Throw New Exception(ex.Message)
End Try

 

 

' Display a note's content as HTML in a WebBrowser control.
           Dim myContent = myDownloadedNote.HtmlContent
           WebBrowser1.DocumentText = myContent
       End If

 

with these 2 blocks of code from the included "Sampleapp"  

i am getting the following errors....

Error    1    'PictureBoxThumbnail' is not declared. It may be inaccessible due to its protection level.    H:\Michael-Documents\Visual Studio 2013\Projects\WindowsApplication1\WindowsApplication1\Form1.vb    84    17    WindowsApplication1
 

 

Error    2    'WebBrowser1' is not declared. It may be inaccessible due to its protection level.    H:\Michael-Documents\Visual Studio 2013\Projects\WindowsApplication1\WindowsApplication1\Form1.vb    91    13    WindowsApplication1
 

 

could anyone give me a helping hand, as to what is wrong. Sometimes the Head does not want to think. :-)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...