473,804 Members | 3,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to display a picture while a long process is carried out ?

I have an animated gif in an image control:
Me.ImageProgres s1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgres s1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click

ExecuteLongTask ()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam

Aug 14 '06 #1
4 1372
What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@l ibero.it wrote:
I have an animated gif in an image control:
Me.ImageProgres s1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgres s1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click

ExecuteLongTask ()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #2
I tried but it does not work. See a blank page.
Can anyone show a simple working example?

-pam

Ray Booysen ha scritto:
What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@l ibero.it wrote:
I have an animated gif in an image control:
Me.ImageProgres s1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgres s1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click

ExecuteLongTask ()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #3
How about some more of the code you're writing?

pa***********@l ibero.it wrote:
I tried but it does not work. See a blank page.
Can anyone show a simple working example?

-pam

Ray Booysen ha scritto:
>What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@l ibero.it wrote:
>>I have an animated gif in an image control:
Me.ImageProgr ess1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgr ess1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click

ExecuteLongTask ()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #4
Hi Ray, Do you know how to do it?

I have

Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click

ExecuteLongTask ()

End Sub

then I grabbed this from internet:

<script language="javas cript">
function toggle(e) {
if (e.style.displa y == "none") {
e.style.display = "";
} else {
e.style.display = "none";
}
}
</script>

I placed after
<title></title>

Also I placed
<body onload="toggle( progress)">

Then under onclick() event of button1 I placed: = "toggle(progres s)"

where progress is a DIV which contains the image with the GIF

<div id="progress"My AnimatedImage </div>
No luck!!
I am a beginner and I am probably missing something basic.
Some simple working example in code would be great.
-Pam

Ray Booysen ha scritto:
How about some more of the code you're writing?

pa***********@l ibero.it wrote:
I tried but it does not work. See a blank page.
Can anyone show a simple working example?

-pam

Ray Booysen ha scritto:
What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@l ibero.it wrote:
I have an animated gif in an image control:
Me.ImageProgre ss1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgre ss1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click

ExecuteLongTask ()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5179
by: Bill | last post by:
Hello all, I found the following visual basic 6.0 source code on the web for displaying web cam video in a GUI. However, I want to display video from a camera which is hooked up through firewire (IEEE 1394), not USB. What portion of the code would I need to change in order to achieve this? Thanks in advance, -Bill
3
10671
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to browse/add one picture at a time to a system. Now he would like to 'view' all of the thumbnails associated with any system on a single form. I can setup a main/subform scenario, but how do I show all of the pictures as thumbnails. I was using the...
1
2690
by: bborden | last post by:
Novice Access programmer here. I would like to display an image using the Toolbox Image object by calling the images file name using: =fPictureFiles(!!,1) in the Picture control. Below is the function which DOES actually returns a valid file
1
1268
by: Lee810 | last post by:
The xml doc has pictures but in the format of a very long character string. I'm not sure what this format is called so I do not know what type of converter I should be looking for. May have something to do with base64. I want to read it from the xml doc and display it in a windows form pictureBox. I'm programming in c#. example(it actually has a lot more characters than this) ...
2
8004
by: Erwin Moller | last post by:
Hi group, I have this obscure problem that really needs to be fixed, but I am out of ideas. Because the original script is very big, I'll try to summarize its functionality. Setup: - many form-elements that will 'activate' a part of the form based on the selection made.
9
2605
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo" runat="server"/> <asp:Label ID="CompanyPicture" runat="server"/> I have 2 links that open the windows to preview these images. The previewed images are done on separate html pages that do nothing but display the
14
23175
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So, we're looking for a way to display the page with a "please wait..." message while the process is running, and then, when the process is done, update the page with the actual results/page content. We have a page that opens another browser/page...
2
16693
by: smorrison64 | last post by:
I have a form that is coded to open a File Dialog boc to pick a picture to display on that particular item on a subform. My form is not based on query, but rather two separate tables (one primary, one sub). That code is working properly. How do I get that to translate to my report? I use VBA code because I use formats other than BMP for the pictures. Would basing the form on the qury that the report is based on solve the issue without...
1
3383
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for image upload in database: -----------Upload.jsp---------------- <html> <head> <title>Account Details </title>
0
9588
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.