PC Review


Reply
Thread Tools Rate Thread

Can not display a load image in compact framework vb.net

 
 
Justin Champion
Guest
Posts: n/a
 
      18th Aug 2004
hello I am using the following code to display an image inside of an
emualtor

Dim myimage As Bitmap
myimage = New Bitmap("Sample.jpg")
PictureBox1.Image = CType(myimage, Image)

I have added the image file to the project so it is transferred and checked
that it is actually transferred. Every time I run the code I get a image
missing error ! Has nyone else had this error

Thanks,



Justin.

--
----------------------------------------------------------------------------
--------
"There's no point in being grown up if you can't be childish sometimes"
Fourth Doctor Who(Tom Baker)
Doctor Who Web Site www.doctorwho.hopto.org




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      18th Aug 2004
You need to specify a full path to the image:

Dim path =
System.IO.Path.GetDirectory(System.Reflection.Assembly.GetExecutingAssembly().GetModules(0).FullName)
+ "\Sample.jpg"
myimage = New Bitmap(path)

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Justin Champion" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hello I am using the following code to display an image inside of an
> emualtor
>
> Dim myimage As Bitmap
> myimage = New Bitmap("Sample.jpg")
> PictureBox1.Image = CType(myimage, Image)
>
> I have added the image file to the project so it is transferred and
> checked
> that it is actually transferred. Every time I run the code I get a image
> missing error ! Has nyone else had this error
>
> Thanks,
>
>
>
> Justin.
>
> --
> ----------------------------------------------------------------------------
> --------
> "There's no point in being grown up if you can't be childish sometimes"
> Fourth Doctor Who(Tom Baker)
> Doctor Who Web Site www.doctorwho.hopto.org
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
>
>



 
Reply With Quote
 
Justin Champion
Guest
Posts: n/a
 
      18th Aug 2004
thank you I will try this out tommorrow.


Justin.

--
----------------------------------------------------------------------------
--------
"There's no point in being grown up if you can't be childish sometimes"
Fourth Doctor Who(Tom Baker)
Doctor Who Web Site www.doctorwho.hopto.org


"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> You need to specify a full path to the image:
>
> Dim path =
>

System.IO.Path.GetDirectory(System.Reflection.Assembly.GetExecutingAssembly(
).GetModules(0).FullName)
> + "\Sample.jpg"
> myimage = New Bitmap(path)
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Justin Champion" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > hello I am using the following code to display an image inside of an
> > emualtor
> >
> > Dim myimage As Bitmap
> > myimage = New Bitmap("Sample.jpg")
> > PictureBox1.Image = CType(myimage, Image)
> >
> > I have added the image file to the project so it is transferred and
> > checked
> > that it is actually transferred. Every time I run the code I get a image
> > missing error ! Has nyone else had this error
> >
> > Thanks,
> >
> >
> >
> > Justin.
> >
> > --

>
> --------------------------------------------------------------------------

--
> > --------
> > "There's no point in being grown up if you can't be childish sometimes"
> > Fourth Doctor Who(Tom Baker)
> > Doctor Who Web Site www.doctorwho.hopto.org
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
> >
> >

>
>



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004


 
Reply With Quote
 
Justin Champion
Guest
Posts: n/a
 
      19th Aug 2004
I am afriad that this did not work as a lot of the functionality is not
availble in .NET
Do you know what the file structure of .NET on a pocket PC is ?

--
----------------------------------------------------------------------------
--------
"There's no point in being grown up if you can't be childish sometimes"
Fourth Doctor Who(Tom Baker)
Doctor Who Web Site www.doctorwho.hopto.org


"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> You need to specify a full path to the image:
>
> Dim path =
>

System.IO.Path.GetDirectory(System.Reflection.Assembly.GetExecutingAssembly(
).GetModules(0).FullName)
> + "\Sample.jpg"
> myimage = New Bitmap(path)
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Justin Champion" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > hello I am using the following code to display an image inside of an
> > emualtor
> >
> > Dim myimage As Bitmap
> > myimage = New Bitmap("Sample.jpg")
> > PictureBox1.Image = CType(myimage, Image)
> >
> > I have added the image file to the project so it is transferred and
> > checked
> > that it is actually transferred. Every time I run the code I get a image
> > missing error ! Has nyone else had this error
> >
> > Thanks,
> >
> >
> >
> > Justin.
> >
> > --

>
> --------------------------------------------------------------------------

--
> > --------
> > "There's no point in being grown up if you can't be childish sometimes"
> > Fourth Doctor Who(Tom Baker)
> > Doctor Who Web Site www.doctorwho.hopto.org
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
> >
> >

>
>

I am afriad that this did not work as a lot of the functionality is not
availble in .NET
Do you know what the file structure of .NET on a pocket PC is ?

--
----------------------------------------------------------------------------
--------
"There's no point in being grown up if you can't be childish sometimes"
Fourth Doctor Who(Tom Baker)
Doctor Who Web Site www.doctorwho.hopto.org


"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> You need to specify a full path to the image:
>
> Dim path =
>

System.IO.Path.GetDirectory(System.Reflection.Assembly.GetExecutingAssembly(
).GetModules(0).FullName)
> + "\Sample.jpg"
> myimage = New Bitmap(path)
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Justin Champion" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > hello I am using the following code to display an image inside of an
> > emualtor
> >
> > Dim myimage As Bitmap
> > myimage = New Bitmap("Sample.jpg")
> > PictureBox1.Image = CType(myimage, Image)
> >
> > I have added the image file to the project so it is transferred and
> > checked
> > that it is actually transferred. Every time I run the code I get a image
> > missing error ! Has nyone else had this error
> >
> > Thanks,
> >
> >
> >
> > Justin.
> >
> > --

>
> --------------------------------------------------------------------------

--
> > --------
> > "There's no point in being grown up if you can't be childish sometimes"
> > Fourth Doctor Who(Tom Baker)
> > Doctor Who Web Site www.doctorwho.hopto.org
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
> >
> >

>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      19th Aug 2004
What did not work?
Perhaps it is because I typed FullName instead of FullyQualifeidName - but
I'm sure you caught a minor typo with the help of Intellisense

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Justin Champion" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am afriad that this did not work as a lot of the functionality is not
> availble in .NET
> Do you know what the file structure of .NET on a pocket PC is ?
>
> --
> ----------------------------------------------------------------------------
> --------
> "There's no point in being grown up if you can't be childish sometimes"
> Fourth Doctor Who(Tom Baker)
> Doctor Who Web Site www.doctorwho.hopto.org
>
>
> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> news:u$(E-Mail Removed)...
>> You need to specify a full path to the image:
>>
>> Dim path =
>>

> System.IO.Path.GetDirectory(System.Reflection.Assembly.GetExecutingAssembly(
> ).GetModules(0).FullName)
>> + "\Sample.jpg"
>> myimage = New Bitmap(path)
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Justin Champion" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > hello I am using the following code to display an image inside of an
>> > emualtor
>> >
>> > Dim myimage As Bitmap
>> > myimage = New Bitmap("Sample.jpg")
>> > PictureBox1.Image = CType(myimage, Image)
>> >
>> > I have added the image file to the project so it is transferred and
>> > checked
>> > that it is actually transferred. Every time I run the code I get a
>> > image
>> > missing error ! Has nyone else had this error
>> >
>> > Thanks,
>> >
>> >
>> >
>> > Justin.
>> >
>> > --

>>
>> --------------------------------------------------------------------------

> --
>> > --------
>> > "There's no point in being grown up if you can't be childish sometimes"
>> > Fourth Doctor Who(Tom Baker)
>> > Doctor Who Web Site www.doctorwho.hopto.org
>> >
>> >
>> >
>> >
>> > ---
>> > Outgoing mail is certified Virus Free.
>> > Checked by AVG anti-virus system (http://www.grisoft.com).
>> > Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
>> >
>> >

>>
>>

> I am afriad that this did not work as a lot of the functionality is not
> availble in .NET
> Do you know what the file structure of .NET on a pocket PC is ?
>
> --
> ----------------------------------------------------------------------------
> --------
> "There's no point in being grown up if you can't be childish sometimes"
> Fourth Doctor Who(Tom Baker)
> Doctor Who Web Site www.doctorwho.hopto.org
>
>
> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> news:u$(E-Mail Removed)...
>> You need to specify a full path to the image:
>>
>> Dim path =
>>

> System.IO.Path.GetDirectory(System.Reflection.Assembly.GetExecutingAssembly(
> ).GetModules(0).FullName)
>> + "\Sample.jpg"
>> myimage = New Bitmap(path)
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Justin Champion" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > hello I am using the following code to display an image inside of an
>> > emualtor
>> >
>> > Dim myimage As Bitmap
>> > myimage = New Bitmap("Sample.jpg")
>> > PictureBox1.Image = CType(myimage, Image)
>> >
>> > I have added the image file to the project so it is transferred and
>> > checked
>> > that it is actually transferred. Every time I run the code I get a
>> > image
>> > missing error ! Has nyone else had this error
>> >
>> > Thanks,
>> >
>> >
>> >
>> > Justin.
>> >
>> > --

>>
>> --------------------------------------------------------------------------

> --
>> > --------
>> > "There's no point in being grown up if you can't be childish sometimes"
>> > Fourth Doctor Who(Tom Baker)
>> > Doctor Who Web Site www.doctorwho.hopto.org
>> >
>> >
>> >
>> >
>> > ---
>> > Outgoing mail is certified Virus Free.
>> > Checked by AVG anti-virus system (http://www.grisoft.com).
>> > Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading an Image within the Compact Framework in C# Greg Microsoft C# .NET 3 11th Nov 2007 07:10 PM
Load correct version of .NET compact framework =?Utf-8?B?ZHJ1bXJlZA==?= Microsoft Dot NET Compact Framework 3 17th Mar 2007 12:44 PM
Load thumbnail from .JPG on Compact Framework =?Utf-8?B?RGF2ZQ==?= Microsoft Dot NET Framework 0 7th Feb 2005 07:51 PM
How can i load a csv file into a dataset in .Net Compact framework Shrage H. Smilowitz Microsoft Dot NET Compact Framework 10 18th Aug 2004 10:22 PM
Trying to load a DLL from .NET Compact Framework. Originally used eVC 3.0 devgru Microsoft Dot NET 0 29th Jul 2003 10:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:50 PM.