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

reference form

how can i reference a form
from a class processing recordset
to update the form....
im still new

MJ
Apr 19 '07 #1
4 1359
"MikeJ" <ve***********@yahoo.comwrote in message
news:3v******************@newssvr29.news.prodigy.n et...
how can i reference a form
from a class processing recordset
to update the form....
im still new
Generally the best method of doing this would be for the class to raise some
sort of event or callback. So instead of the class having specific knowledge
of the form (eg, having the line MyForm.Label1.Text = "50% complete") it
would raise an event and the form would set the label caption. This might
seem like a minor difference but it makes the class more independant of the
form and the class could be called from several different forms, or maybe
one day from a webpage or PDA or even a console app.

Michael
Apr 19 '07 #2
Please don't multipost.
Apr 19 '07 #3
My other post does not show....
did not see it ..so i reposted...
sorry...i do NOT do it on purpose
MJ

"Michael C" <no****@nospam.comwrote in message
news:OR**************@TK2MSFTNGP05.phx.gbl...
Please don't multipost.

Apr 19 '07 #4
"Mike J" <ve***********@sbcglobal.netwrote in message
news:hb*******************@newssvr13.news.prodigy. net...
My other post does not show....
did not see it ..so i reposted...
sorry...i do NOT do it on purpose
MJ
You've replied to the other post!!!!!

Michael
Apr 23 '07 #5

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

Similar topics

2
by: deko | last post by:
I have a public function that does different stuff based on the parameter passed to it. I want to use Select Case to identify the parameter like this: Public Function SomeFunc(frmName as...
0
by: Páll Ólafsson | last post by:
Hi Im trying to reference a Windows Application that outputs an exe file from a Web application? I always get an error message that indicates that the WinForm app has to have an dll? Is there...
7
by: anthony | last post by:
I tried sth i did b4 in VB, now in VB.NET, but since the form is created every time, the following code would not work because MsgBox.Visible is always false, any idea? Thanks! Public...
1
by: Thief_ | last post by:
I have two projects in one solution: a.. Outlook Monitor b.. Tray Notification Both contain a form called "Form1.vb". How do I reference "Outlook Monitor"'s Form1 from "Tray Notification"'s...
4
by: Thief_ | last post by:
I'm trying to create many squares on a form and for every new square, change the background colour to the next colour. I'm trying to create a colour palette showing all available colours and their...
1
by: Horace Nunley | last post by:
How do I get the value of the emailtextbox in a form similar to ctl01$FormView1$EmailTextBox? __Page ASP.posting_post_test_aspx 0 0 0 ctl02 System.Web.UI.LiteralControl 0 0 0 ctl00...
3
by: Andy.I | last post by:
Hi I have a module where I put all my functions and sub procedures. How do I from the module best reference objects in other forms? I have a form with a datagrid, and in the module I have a...
9
by: Brad Pears | last post by:
I have the following code that references a "textbox" on a form. I want to pass the value of this textbox to a stored procedure as a parameter. This code is located on a different form obviously. I...
3
by: jbrumbau | last post by:
Hello, I am trying to refer to fields on a given form from the form query's recordset, essentially from the following commands: Dim frm As Form 'Refers to the current form Dim tagName...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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...

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.