Question

  • Thread starter Thread starter Frank Kamjunke
  • Start date Start date
F

Frank Kamjunke

I want to make a little vb tool wich are actually looking
for a file and this must be showing the file in this tool.
Its a jpg or a bmp. Wich context must i use to load a
external file in the tool?
Secound question this file are changed and the tool must
be actuallysized every secound?

please help me
 
Hello,

Frank Kamjunke said:
I want to make a little vb tool wich are actually looking
for a file and this must be showing the file in this tool.
Its a jpg or a bmp. Wich context must i use to load a
external file in the tool?

\\\
Me.Picture1.Image = Image.FromFile("C:\bla.jpg")
///

This will lock the file so it cannot be changed. You can use this code if
you do not want to lock the file:

\\\
Dim fs As FileStream = _
New FileStream("C:\WINDOWS\Angler.bmp", FileMode.Open)
Dim bmp As Bitmap = New Bitmap(fs)
fs.Close()
///
Secound question this file are changed and the tool must
be actuallysized every secound?

You may want to use a timer to do that (Interval = 1000).

HTH,
Herfried K. Wagner
 
-----Original Message-----
Hello,



\\\
Me.Picture1.Image = Image.FromFile("C:\bla.jpg")
///

This will lock the file so it cannot be changed. You can use this code if
you do not want to lock the file:

\\\
Dim fs As FileStream = _
New FileStream("C:\WINDOWS\Angler.bmp", FileMode.Open)
Dim bmp As Bitmap = New Bitmap(fs)
fs.Close()
///


You may want to use a timer to do that (Interval = 1000).

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


.

Thank you very much, i wish you a happy end of week and a
nice time ...

BYE FRANK
 
Hallo Frank!

[...]

Es gibt übrigens auch eine deutschsprachige NG zu VB .NET:

news://news.microsoft.com/microsoft.public.de.german.entwickler.dotnet.vb

Grüsse,
Herfried K. Wagner
 
Back
Top