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

reading value with messagebox? (input box)

in my program when a button clicked , a process starts, but i need to
take two value, becouse of this, i use a new windows form, to make my
program more userfriendly, i was thinking is it possible totake values with
messagebox or some diyalog box (as in delphi inputbox),
when button clicked, it will show messagebox with two text field and two
header (for text boxes).
is there way to do it in C#

thanks in advance
Nov 15 '05 #1
2 16284
Sure this is possible. I would create a new form with the 2 textboxes and a
button to submit the values. Then from startup code of your application, you
could show the from using the ShowDialog method. You'd have to make 2 public
properties on your form, representing the value of the 2 textboxes. The
submit button would hide the form (this.Hide();).

For example, you could use the form like this:

InputBoxForm f = new InputBoxForm();
f.ShowDialog(); //This will show the dialog and wait until the button has
been clicked.
string s = f.Value1;
string t = f.Value2;
--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Cantekin Guneser" <ca*************@hotmail.com> schreef in bericht
news:%2****************@TK2MSFTNGP10.phx.gbl...
in my program when a button clicked , a process starts, but i need to
take two value, becouse of this, i use a new windows form, to make my
program more userfriendly, i was thinking is it possible totake values with messagebox or some diyalog box (as in delphi inputbox),
when button clicked, it will show messagebox with two text field and two
header (for text boxes).
is there way to do it in C#

thanks in advance

Nov 15 '05 #2
thanks for help but,i could not find InputBoxForm in which using name
space? :(
Nov 15 '05 #3

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

Similar topics

1
by: J Buchman | last post by:
I am trying to do my VB 6 homework with an exercise that requires the use of variables, constants and string concatenation. I can't get the program to use the percentage that is put into the text...
3
by: JK | last post by:
This is an easy one, but I'm a JS newbie. I want to write a function that determines input value. If 0 - 100 than will use input as % (i.e., 3 would become .03 and used for calculations);...
2
by: lgo | last post by:
I have read several variations of this topic posted on this news group. However I was not able to find the answer for my problem. I am trying to build code (see below) to update a large single...
0
by: Jack | last post by:
Windows 2K Pro Access/Excel 2003 Hi there, I have a large number of password protected Excel Workbooks. The files are protected by code that runs when the workbook opens. The code asks the...
3
by: Stefan Mueller | last post by:
I've an input box <input type = "text" name = "MyInput" value = ""> and a selection <select name = "MySelection" size = "1"> <option value = "1">Entry 1 <option value = "2">Entry 2 </select>...
1
by: julian.tklim | last post by:
Hi, I've got an input box with popup calendar (date picker) all generated using javascipt. Once a date is selected from the datepicker window, the date value is populated back to the input...
1
by: intscript | last post by:
Hello everybody, I'm having a problem in getting the value of 2 input box together with the checkbox. Here is my javascript code, the system returns the error object expected.Please help me.... ...
1
by: ponna | last post by:
u click submit button then display one input box.and then u click another submit button then display the value in previous box.now u click first submit button more than one time dislay more...
0
by: pazazuzu | last post by:
Hi everyone, I currently have an assignment which I am almost done with but am having problems trying to figure out how to integrate a string function search. I have a text box called...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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.