473,836 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Window Form refresh

All,

is there window form refresh property? I try to set up window form refresh
per minute. Thanks
Jul 7 '06 #1
12 6050
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.
I suggest to describe in more detail what exactly you want to archieve.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 7 '06 #2
i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.

I try to use timer to call form_load, but it fails. so any advice?

Thanks

"Herfried K. Wagner [MVP]" wrote:
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.

I suggest to describe in more detail what exactly you want to archieve.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 7 '06 #3
Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)

Sub RefreshMyThings
'any refresh here
end sub

you can get this sub called by a timer. Just add the timer and schedule
the refresh

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub

.... what this would be good for is a mistery ! :)

-Tom

martin1 ha scritto:
i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.

I try to use timer to call form_load, but it fails. so any advice?

Thanks

"Herfried K. Wagner [MVP]" wrote:
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.
I suggest to describe in more detail what exactly you want to archieve.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 7 '06 #4
Thank you, Tom,

I knew what you said, take refresh thing into sub, then timer control the
sub. what i want to do is refresh the window application every minute since
starting run.

one solution may or may not correct, that is timer to refresh form_load
event to meet this requirement since form_load is initilize the application,
but it doesn't work. any more advice?

Thanks

"to************ **@uniroma1.it" wrote:
Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)

Sub RefreshMyThings
'any refresh here
end sub

you can get this sub called by a timer. Just add the timer and schedule
the refresh

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub

.... what this would be good for is a mistery ! :)

-Tom

martin1 ha scritto:
i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.

I try to use timer to call form_load, but it fails. so any advice?

Thanks

"Herfried K. Wagner [MVP]" wrote:
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.
>
I suggest to describe in more detail what exactly you want to archieve.
>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
>
>

Jul 7 '06 #5
what are you actually trying to do? Can you post some simple code to
explain the main idea?

-tom
martin1 ha scritto:
Thank you, Tom,

I knew what you said, take refresh thing into sub, then timer control the
sub. what i want to do is refresh the window application every minute since
starting run.

one solution may or may not correct, that is timer to refresh form_load
event to meet this requirement since form_load is initilize the application,
but it doesn't work. any more advice?

Thanks

"to************ **@uniroma1.it" wrote:
Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)

Sub RefreshMyThings
'any refresh here
end sub

you can get this sub called by a timer. Just add the timer and schedule
the refresh

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub

.... what this would be good for is a mistery ! :)

-Tom

martin1 ha scritto:
i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.
>
I try to use timer to call form_load, but it fails. so any advice?
>
Thanks
>
"Herfried K. Wagner [MVP]" wrote:
>
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.

I suggest to describe in more detail what exactly you want to archieve.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 7 '06 #6
Hi, Tom,

what i want to do is like web-based application refresh by setting up
<meta-equiv="refresh" content ="60">. Thanks

"to************ **@uniroma1.it" wrote:
what are you actually trying to do? Can you post some simple code to
explain the main idea?

-tom
martin1 ha scritto:
Thank you, Tom,

I knew what you said, take refresh thing into sub, then timer control the
sub. what i want to do is refresh the window application every minute since
starting run.

one solution may or may not correct, that is timer to refresh form_load
event to meet this requirement since form_load is initilize the application,
but it doesn't work. any more advice?

Thanks

"to************ **@uniroma1.it" wrote:
Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)
>
Sub RefreshMyThings
'any refresh here
end sub
>
you can get this sub called by a timer. Just add the timer and schedule
the refresh
>
Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub
>
.... what this would be good for is a mistery ! :)
>
-Tom
>
martin1 ha scritto:
>
i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.

I try to use timer to call form_load, but it fails. so any advice?

Thanks

"Herfried K. Wagner [MVP]" wrote:

"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.
>
I suggest to describe in more detail what exactly you want to archieve.
>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
>
>
>
>

Jul 10 '06 #7
Hi Martin, I am afraid that if you do not make a little effort to
explain your problem in an intelligible manner, you won't get much help
with your problem...

-tom

martin1 ha scritto:
Hi, Tom,

what i want to do is like web-based application refresh by setting up
<meta-equiv="refresh" content ="60">. Thanks

"to************ **@uniroma1.it" wrote:
what are you actually trying to do? Can you post some simple code to
explain the main idea?

-tom
martin1 ha scritto:
Thank you, Tom,
>
I knew what you said, take refresh thing into sub, then timer control the
sub. what i want to do is refresh the window application every minute since
starting run.
>
one solution may or may not correct, that is timer to refresh form_load
event to meet this requirement since form_load is initilize the application,
but it doesn't work. any more advice?
>
Thanks
>
"to************ **@uniroma1.it" wrote:
>
Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)

Sub RefreshMyThings
'any refresh here
end sub

you can get this sub called by a timer. Just add the timer and schedule
the refresh

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub

.... what this would be good for is a mistery ! :)

-Tom

martin1 ha scritto:

i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.
>
I try to use timer to call form_load, but it fails. so any advice?
>
Thanks
>
"Herfried K. Wagner [MVP]" wrote:
>
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.

I suggest to describe in more detail what exactly you want to archieve.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Jul 10 '06 #8
Hi Martin, I am afraid that if you do not make a little effort to
explain your problem in an intelligible manner, you won't get much help
with your problem...

-tom

martin1 ha scritto:
Hi, Tom,

what i want to do is like web-based application refresh by setting up
<meta-equiv="refresh" content ="60">. Thanks

"to************ **@uniroma1.it" wrote:
what are you actually trying to do? Can you post some simple code to
explain the main idea?

-tom
martin1 ha scritto:
Thank you, Tom,
>
I knew what you said, take refresh thing into sub, then timer control the
sub. what i want to do is refresh the window application every minute since
starting run.
>
one solution may or may not correct, that is timer to refresh form_load
event to meet this requirement since form_load is initilize the application,
but it doesn't work. any more advice?
>
Thanks
>
"to************ **@uniroma1.it" wrote:
>
Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)

Sub RefreshMyThings
'any refresh here
end sub

you can get this sub called by a timer. Just add the timer and schedule
the refresh

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub

.... what this would be good for is a mistery ! :)

-Tom

martin1 ha scritto:

i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.
>
I try to use timer to call form_load, but it fails. so any advice?
>
Thanks
>
"Herfried K. Wagner [MVP]" wrote:
>
"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.

I suggest to describe in more detail what exactly you want to archieve.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Jul 10 '06 #9
Hi, Tom,

I try to set timer to run form_load every minute, but it fail. The code
snippet is below:

-------------Code start------------
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArg s)
Handles MyBase.Load

'call timer for refresh app every minute
TimerAppRunPerM inute()

End Sub

'*** create timer for refresh app per minute ***
Private Sub TimerAppRunPerM inute()
AddHandler comTimerApp.Ela psed, AddressOf ComOnTimedEvent
'Set the Interval to 60 seconds.
comTimerApp.Int erval = 60000
comTimerApp.Ena bled = True
End Sub

Private Sub ComOnTimedEvent (ByVal source As Object, ByVal e As
ElapsedEventArg s)
Form_Load(sourc e, e)
End Sub
----------code end--------------

"to************ **@uniroma1.it" wrote:
Hi Martin, I am afraid that if you do not make a little effort to
explain your problem in an intelligible manner, you won't get much help
with your problem...

-tom

martin1 ha scritto:
Hi, Tom,

what i want to do is like web-based application refresh by setting up
<meta-equiv="refresh" content ="60">. Thanks

"to************ **@uniroma1.it" wrote:
what are you actually trying to do? Can you post some simple code to
explain the main idea?
>
-tom
martin1 ha scritto:
>
Thank you, Tom,

I knew what you said, take refresh thing into sub, then timer control the
sub. what i want to do is refresh the window application every minute since
starting run.

one solution may or may not correct, that is timer to refresh form_load
event to meet this requirement since form_load is initilize the application,
but it doesn't work. any more advice?

Thanks

"to************ **@uniroma1.it" wrote:

Hi Martin I am afraid it's not clear at all what you want to do.
Anyway... generally talking... you can take the code necessary for the
refresh and put within a sub (instead of under the load event)
>
Sub RefreshMyThings
'any refresh here
end sub
>
you can get this sub called by a timer. Just add the timer and schedule
the refresh
>
Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick
me.RefreshMyThi ngs
End Sub
>
.... what this would be good for is a mistery ! :)
>
-Tom
>
martin1 ha scritto:
>
i had window application, everytime run the app, the form_load event starts
run , what I want to do is to refresh the form-load event every minute. the
whole purpose is to refresh the app every minute.

I try to use timer to call form_load, but it fails. so any advice?

Thanks

"Herfried K. Wagner [MVP]" wrote:

"martin1" <ma*****@discus sions.microsoft .comschrieb:
is there window form refresh property? I try to set up window form refresh
per minute.
>
I suggest to describe in more detail what exactly you want to archieve.
>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
>
>
>
>
>
>

Jul 10 '06 #10

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

Similar topics

3
5190
by: J P Singh | last post by:
Hi Guys Wonder if someone can help me with this. I have a form where a user clicks a button which gives them a pop up windows to allow them to add the data. The user adds the data and click save. The pop window closes and refreshs the parent window to allow the entered data to be displayed. It was all working okay until couple of days back when it stopped.
1
5282
by: humbads | last post by:
I am trying to get a popup window to work for editing notes in my application. Here's how I implemented it: The original frame is called ORIGINALFRAME and contains a link like this: <a href="javascript:launchwin();">Edit Note</a> function launchwin() { // ... custom stuff newNoteWindow = window.open(strURL,'NoteWindow',strOptions);
10
23731
by: sirshurf | last post by:
hello all: I have a pop up window is for the user to submit some information. That window is refreched a few times with the user inputs (its a form submit in itself... couple of times). I would like that window to close after the user submits a rating and refreshed the original page that opened the window. I cant use opener.document.refresh because afterall the page isnt considered the opener after the user posts the information on...
3
11796
by: Danny | last post by:
HI How can I refresh the main project window in code in ms access 2000 For example, I create a new table, but when I minimize the form, the table is not there until I do F5 (refresh). I do the db.TableDefs.Refresh, but I guess this is not applied to the project window for tables thanks
2
23517
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
3
4345
by: Steve Wark | last post by:
I have created a ASP.NET application and created two forms within the application (Webform1.aspx & Webform2.aspx). On the first form I have placed a textbox (TextBox1) and a button, which when clicked opens the second form using the window.open(). On the second form I have a textbox (TextBox1) and a button as well. When the second button is clicked it closes the second window with window.close(). What I need to happen is a refresh to...
1
1482
by: Gary | last post by:
Is it possible to refresh a browser window when a secondary browser window has been closed? For example, I have a main web form that functions purely as a datagrid, when a user clicks on a record in the datagrid a new window is opened (using the javascript window.open function), from this window the user can update or delete the record and then close the window once he/she is finished. Obviously when the record is deleted it will still...
3
3585
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup and then do a refresh of the calling form. Any ideas on how to get a reference to the calling form? I tried window.parent.location.reload() , but it doesn't work. Thanks a lot.
4
6414
by: hashya | last post by:
Hi, I am trying to submit form in child window from parent window itself. However, not getting through it. e.g. Parent Window: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD>
0
9825
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10854
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...
1
10601
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
10260
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...
1
7794
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
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4460
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.