473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Refresh WinForm after On_Load

Not sure the easiest way to ask this so I will give a small example of
what I want to accomplish.

Create a VB.Net WinForm Application with two forms. On the first form,
two textboxes and a button that hides the current form and shows the
second form. On showing the second form for the first time the
On_Form_Load event is kicked off and the data in the two textboxes is
added up and displayed in a label. A button on the second form allows
you to hide the current form and show the first form again. After
going back to the first form, change the data and hit the button to go
back to the second form. At this point the On_Form_Load event does not
kick off and the new data is not summed. Is there a way to
programmatically kick this event off when the user goes back to the
second form?

Thanks

Aug 4 '05 #1
1 4254
There are a number of different events that you could put your code in, for
example:

GotFocus
Paint
Activated

Try putting the code in one of these events instead of in the Form Load event.

Hope this Helps

Brian Delahunty

"Will" wrote:
Not sure the easiest way to ask this so I will give a small example of
what I want to accomplish.

Create a VB.Net WinForm Application with two forms. On the first form,
two textboxes and a button that hides the current form and shows the
second form. On showing the second form for the first time the
On_Form_Load event is kicked off and the data in the two textboxes is
added up and displayed in a label. A button on the second form allows
you to hide the current form and show the first form again. After
going back to the first form, change the data and hit the button to go
back to the second form. At this point the On_Form_Load event does not
kick off and the new data is not summed. Is there a way to
programmatically kick this event off when the user goes back to the
second form?

Thanks

Aug 4 '05 #2

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

Similar topics

4
by: Alex Bibiano | last post by:
I have a typed dataset in my WinForm and a textbox with databinding to the dataset (all without code). Now, in a button event, I assign a new dataset (retrieved from a function) to the dataset a...
8
by: Sunil Menon | last post by:
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an...
2
by: Luis Soler | last post by:
Hi: Can I lock refresh of winform to avoid to visualize some temporary changes ? I am changing bindincontext of some controls to do certain checkings and I don't want that the user sees the...
1
by: Will | last post by:
Not sure the easiest way to ask this so I will give a small example of what I want to accomplish. Create a VB.Net WinForm Application with two forms. On the first form, two textboxes and a...
2
by: aaron.kempf | last post by:
hey guys i have an ETL winform in VB 2005 and it's like-- off in la-la land. i know it's doing things-- it's happily crunching away. but i'm confused about what i need to do to make the main...
6
by: George | last post by:
Hi, I have been encountering a refresh problem with DataGridView, which is bound to a DataTable. When I make updates (Add, Delete, update) to the DataGridView, everything flow nicely to...
5
by: sp | last post by:
Hello I have a problem with the refresh performance in datagrid – when datagrid is being shown it is so slow that I can see one by one cells is drawn -datagrid contains about 35x40 of...
2
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...

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.