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

Talking to forms

HI all,

New to vb.net
I need to know how to talk to a calling form from a called form. I want to
change various properties of the form as well as properties of objects on
that form, Ie pushbuttons texts, label texts etx. I also need to be able to
call som of the objects on the calling forms events, eg to be able to call a
pushbuttons click event on the calling form.
The calling form is not a mdiparent, the called form is not a mdi client,
they are just two seperate forms
form1 opens
pushbutton on form2 creats a object reference to form2
opens form2
on form2 a pushbutton changes text on a label on form one
and then callus a pushbutton click event on form1

In visual dbase I wouild do it like this

'''form1''
set procedure to form2.wfm addi 'load the form in memory
form.ochildform = new form2() 'create a new object in this form
referencing the new form
form.ochildform.parent = form 'reference this form from the other form

pushbutton onclick()
form.ochildform.open() 'open the new form

'''form2''
form.parent.label1.text = "text has changed" 'cjhange the text on the
label of form1
form.parent.pushbutton_onclick() 'call the click event of pushbutton on
form1

Thanks
Robert

Nov 21 '05 #1
1 897
Double post answered above
Nov 21 '05 #2

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

Similar topics

3
by: Jane Austine | last post by:
I need to control a command line program via python. I first tried popen2 and 3 but I couldn't find a way to talk to the subprocess interactively; that is, read some and then write some, and...
2
by: Enterprise | last post by:
Hi, I need to pass information between forms. i.e. a button is clicked on one form1, form2 opens and has access to the contents of a text box of form1. Then when the form2 closes it updates the...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
3
by: Lloyd Sheen | last post by:
I have the following situation: Need a user resizable user control. After much trying with user control I came across the idea of hosting the controls in a form marked as not TopLevel = false. ...
2
by: Robert Bravery | last post by:
HI all, New to vb.net I need to know how to talk to a calling form from a called form. I want to change various properties of the form as well as properties of objects on that form, Ie...
5
by: Jenny Stove | last post by:
The poster calling himself 'Br@dley' trolled into David Matthieu's thread and claimed: >I certainly do know may of the regulars in ACC as I've been here >for a few years (and those in ACE who...
3
by: pamelafluente | last post by:
I am new to asp.net. I have an asp page with a submit button which sends out some information. Instead of having IIS to respond and deal with this information, I would like to have a .NET...
20
by: raylopez99 | last post by:
Dvorak is always interesting, albeit speculative. What hidden gem has he found in Vista that helps developers? It can't be .NET/CLI, that's been out forever. RL Vista rollout hides reality...
8
by: lBalal | last post by:
Hi all I am using netbeans to make my hci. now in my form1 i have a button that when pressed takes me to form2 (class2) on form2 i want to press a button to change the color of button in form...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...

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.