473,396 Members | 1,886 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,396 software developers and data experts.

how to refresh one opened form from another form?

Gobindap
In my project, Form1 contains a textbox named marks. Form1 remains opened. In need I need to open Form2, which intends to change the value of textbox marks on Form1. I tried to call the sub procedure which reads the value of textbox 'marks' of Form1 from database, but it did not function. But is happens if I hide the Form1 and show again. I need to change to read the changed value without closing Form. How can it be solved?

In my project Form1 remains maximized, Form2 works as dialogbox.

In form1 there as a sub named load_label() which reads the database value for textbox 'marks'. While closing Form2 I called it as Form1.load_label(), I also did Form1.refresh but both of these returned null solution.



How can this problem be solved? Please help me.
Attached Files
File Type: doc Codes.doc (51.5 KB, 275 views)
Oct 24 '13 #1
0 836

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: fh1996 | last post by:
Form.Owner and Form.Parent, what's the difference between them? Form.ShowDialog() and Form.Show(), when to use which? Form.Activated(), what does it mean when saying a Form is "activated"? ...
1
by: tmaster | last post by:
Within a class, can I create a property that is a listview? Here's what I tried, but it doesn't seem to work: '------------ create property to give the second form access to the first form's...
1
by: Riun | last post by:
My Main form acts as a Menu. It has 3 CmdButtons which directs to 3 Forms (Form 1, Form 2, Form 3). Form 1 also directs to the next, etc. My problem is that when I Click on the CmdButton that...
0
by: deedeem | last post by:
I have a form with a subform called MMS Update. I have a button that brings up another form to add a new record. I then have a button on the add form to go back to the MMS Update form. I have tried...
7
by: Randy | last post by:
Hi, I've got a listbox on a form that gets updated by opening another form for data entry. Once the user enters the new item name and clicks "accept", the data entry form closes and the original...
1
by: SePp | last post by:
Hi all. I want to refresh a Datagrid from another form. (in C# ) For Example I have a Datagrid in that I want to edit data. The user has the ability to press a button to change these data. A...
2
by: SePp | last post by:
Hi all. I want to refresh a Datagrid from another form. For Example I have a Datagrid in that I want to edit data. The user has the ability to press a button to change these data. A new Form...
4
by: BD | last post by:
I have an MDI application with a datagridview on a childform1 that will open childform2 with a double-click event on childform1. Childform2 works on a record and upon closing I want the...
3
by: emtang | last post by:
How to refresh to original when form is loaded after the user right click sort Steps: 1. Form is loaded. 2. User right click on sort A-Z in Contributor. 3. User wants to get back the...
0
by: cheekangteh | last post by:
currently i am doing sms function by using window mobile standard 6. i have multiple form, up to 4 window form. and at the last form, i wish to collect all the data that already key in in previous...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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,...

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.