Hello all,
I have no problem accessing another form in my app.. however, when I try to
access a ListView on a different form, I come up empty... Basically,
Dim pForm As New frmMain
Dim iCount As Integer
iCount = pForm.lvJobList.Items.Count
iCount is zero? Yes, there are items there. :)
All I want to do is update the ListView item if the user modifies a job in
any way or add an item to the ListView if the user adds a new job (all this,
"before" the child form is closed)..
Thanks..
--Tim 3 1328
Ensure the access modier is set to freind and then access it through the
form. If it is the parent then
me.parentform.control.TheMethodYouNeed()
Regards OHM
Tim Fitzgerald wrote: Hello all,
I have no problem accessing another form in my app.. however, when I try to access a ListView on a different form, I come up empty... Basically,
Dim pForm As New frmMain Dim iCount As Integer
iCount = pForm.lvJobList.Items.Count
iCount is zero? Yes, there are items there. :)
All I want to do is update the ListView item if the user modifies a job in any way or add an item to the ListView if the user adds a new job (all this, "before" the child form is closed)..
Thanks..
--Tim
--
Best Regards - OHM
O_H_M{at}BTInternet{dot}com
Sorry that should have read Modifiers, you'll find it under the Design
Category.
Regards - OHM
One Handed Man wrote: Ensure the access modier is set to freind and then access it through the form. If it is the parent then
me.parentform.control.TheMethodYouNeed()
Regards OHM
Tim Fitzgerald wrote: Hello all,
I have no problem accessing another form in my app.. however, when I try to access a ListView on a different form, I come up empty... Basically,
Dim pForm As New frmMain Dim iCount As Integer
iCount = pForm.lvJobList.Items.Count
iCount is zero? Yes, there are items there. :)
All I want to do is update the ListView item if the user modifies a job in any way or add an item to the ListView if the user adds a new job (all this, "before" the child form is closed)..
Thanks..
--Tim
--
Best Regards - OHM
O_H_M{at}BTInternet{dot}com
OHM,
Thanks for the response.. However, I could not accomplish what I needed to
using your example. I "think" ParentForm is used in a MDI scenario.
What I did get to work was:
Me.Owner.Controls.Item
I just iterated through each one until I found the control I needed to
manipulate.
Thanks!
--Tim
"One Handed Man" <O_************************@BTInternet.com> wrote in
message news:bv**********@titan.btinternet.com... Ensure the access modier is set to freind and then access it through the form. If it is the parent then
me.parentform.control.TheMethodYouNeed()
Regards OHM
Tim Fitzgerald wrote: Hello all,
I have no problem accessing another form in my app.. however, when I try to access a ListView on a different form, I come up empty... Basically,
Dim pForm As New frmMain Dim iCount As Integer
iCount = pForm.lvJobList.Items.Count
iCount is zero? Yes, there are items there. :)
All I want to do is update the ListView item if the user modifies a job in any way or add an item to the ListView if the user adds a new job (all this, "before" the child form is closed)..
Thanks..
--Tim
-- Best Regards - OHM
O_H_M{at}BTInternet{dot}com
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jim Heavey |
last post by:
Hello, I have created a form which I intend to use a a dialog box. It has
a few controls on that form and I changed the properties of those controls
to "public" with the idea that I could access...
|
by: arvee |
last post by:
Is there a way to access controls (and their properties) in a user control?
The Web Form Designer marks controls as 'Protected' which makes them
inaccessable from the host form. If I mark them as...
|
by: RSH |
last post by:
I havent been able to set a property from another class with out getting
some sort of error.
Can someone please tell me what I'm doing wrong here?
Public Class Form1
|
by: Sudhakara.T.P. |
last post by:
Hi,
I have an tab control in one of the forms and it has two tab strips. Now I
have written an general function that accepts form name as parameter and
iterates through all the controls in the...
|
by: raj_genius |
last post by:
I hav two queries, whc are as follows:
FIRSTLY:
is it possible to access the controls(by name) of a parent form(MDI)
from its child forms??if yes then how??plzz provide a coded example in
VB if...
|
by: aakash |
last post by:
Hello Guys
I am upsizing ms access project to give it a ms sql connectivity
I am having problem in accessing form control values in ms sql function
CREATE FUNCTION "ReportList DateRange"() ...
|
by: judy.j.miller |
last post by:
Does anyone know why i can't access a form element value using dot
notation in firefox, when i'm in a function. Works ok in the body.
I'm trying to do this:
var FarTemp = faren.temp.value;
I...
|
by: colmkav |
last post by:
Hi, could someone tell me how I can check whether a database is open
by name
eg something like db("mydbname")
|
by: ansh20 |
last post by:
I am adding run time generate controls in array. Now I want to retrieve those controls in other subroutine in same form. But when I am tring to retrieve control it says "Object variable or with...
|
by: Masterfrier |
last post by:
Hello Experts! ;-)
I am fairly new to C#, and have this problem....
on my form, i have some controls (imagelist, etc..)
from another class, i need to access imageList1
Here is a snippet...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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,...
|
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: 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: 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: 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...
| |