473,406 Members | 2,710 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,406 software developers and data experts.

Values in Form

Good morning

I have a form in c# (windows form) where the user select the his state. This
string was put in a public field and a property check it (GET/SET). When the
user click in OK button in this form, i have a string strEst with his value
(state). This search for is called to principal form, so the value of strEst
must be put in principal form, but i can't do it...
When I show the strEst value in principal form, it is empty...I can't catch
the serch value selected in serch form...

See the code please:

private void btnBuscarEstado_Click(object sender, System.EventArgs e)
{
// Call the form references by state
frmEstado objEstado = new frmEstado();
objEstado.Show();

// Set the value selected in this form
this.txtEstado.Text = objEstado.strEst;

}

Anybody here can help me?
--
-------------------------------------------------
Marcus Vinícius M. Montezano

develoepr

Digiexpress
-------------------------------------------------

---
E-mail verificado com anti-virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.531 / Virus Database: 325 - Release Date: 22/10/2003
Nov 15 '05 #1
1 1227
Marcus,

The only way this could be happening is if your frmEstado instance was
not setting the strEst property (or the values that the property uses to
return a value) correctly. Are you sure you are setting strEst correctly?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Marcus Vinícius" <ma*********@bol.com.br> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Good morning

I have a form in c# (windows form) where the user select the his state. This string was put in a public field and a property check it (GET/SET). When the user click in OK button in this form, i have a string strEst with his value (state). This search for is called to principal form, so the value of strEst must be put in principal form, but i can't do it...
When I show the strEst value in principal form, it is empty...I can't catch the serch value selected in serch form...

See the code please:

private void btnBuscarEstado_Click(object sender, System.EventArgs e)
{
// Call the form references by state
frmEstado objEstado = new frmEstado();
objEstado.Show();

// Set the value selected in this form
this.txtEstado.Text = objEstado.strEst;

}

Anybody here can help me?
--
-------------------------------------------------
Marcus Vinícius M. Montezano

develoepr

Digiexpress
-------------------------------------------------

---
E-mail verificado com anti-virus.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.531 / Virus Database: 325 - Release Date: 22/10/2003

Nov 15 '05 #2

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

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
5
by: Paul C-T | last post by:
Hi, Am I trying to be too clever here? I am trying to write a PHP page to enable me to enter values into a form then write those values to a text file. I want to use the form & table that...
9
by: Ken | last post by:
How can I reset the initial form variables that are set with session statements when clicking on a button? I tried this but the function was not called: <?PHP function reset_form($none) {...
10
by: Dave Karmens | last post by:
If I have say 10 fixed variables, how can I set their values = to that of a form that is built dynamically? column1 column2 email = formvalue(0) fname = formvalue(1) lname = formvalue(2)...
1
by: Randell D. | last post by:
HELP! I am determined to stick with this... I'm getting there... for those who haven't read my earlier posts, I'm createing what should be a simple function that I can call to check that...
3
by: User | last post by:
Form A (Main) Text Box 1 Text Box 2 Text Box 3 Form B (Pop-up) Choose a selection for Form A/Text Box 3 Scenario:
6
by: Janaka | last post by:
Help! I have two ListBox controls on my web form. The first one gets populated on entry with values from the DB. I then use JavaScript to copy options from this ListBox to my second one. (I...
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
2
by: sindhudixit | last post by:
Hey, I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen: 1. The...
5
by: Rider | last post by:
Hi All, Here is the reason why i ak asking for ur help. I have a edit form in which the values already stored in DB are populated. User can edit some or all the values in the form. then he...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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.