|
-
Jun 2nd, 2000, 07:53 AM
#1
Thread Starter
_______
ok..I use one form to show pictures and another to add and delete pictures.
When I delete all the pictures and go back to the view form I still see the last picture that was displayed but I shouldn't see any because I have deleted all the pictures.
After delete I've even gone so far as to do another sql
and then reload another recordset * from pictures so in fact at this point it should have nothing in it if I've
deleted the last picture.
When I use this code
frmOne.visible=false
frmTwo.visible = true
does this code not trigger the activate and load events of
frmTwo???
Since in activate and load I have a Select * from pictures and a if eof and bof go...bla bla it should not show a picture...
when I shut the app down and restart it does what it should and not show a picture.
What is the scoop on this crap..I've wasted a week on this stupid go round and round
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 2nd, 2000, 08:32 AM
#2
Hyperactive Member
Do you refresh recordset after delete?
-
Jun 2nd, 2000, 09:12 AM
#3
Thread Starter
_______
yes...first I refreshed the recordset and then as
an alternataive I used a new sql selection * form the table and that should only give what is left...
surprise...it still shows a picture when nothing is in the
image file or in the database.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 2nd, 2000, 09:49 AM
#4
Addicted Member
You also need to clear the picture box as the application makes a copy of the picture in memory rather than loading it from it's source each time.
use
[pictureboxname].cls
Regards
Regards
Matt Brown
Hamilton, NZ
VB6 C++ in Visual Studio 6sp4
VB.net Beta 1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|