Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cursor Pin
hiremath7125-Feb-07 20:46
hiremath7125-Feb-07 20:46 
QuestionInput Box problem in C# Pin
thailehuy25-Feb-07 20:12
thailehuy25-Feb-07 20:12 
AnswerRe: Input Box problem in C# Pin
Christian Graus25-Feb-07 20:38
protectorChristian Graus25-Feb-07 20:38 
GeneralRe: Input Box problem in C# Pin
thailehuy25-Feb-07 20:43
thailehuy25-Feb-07 20:43 
GeneralRe: Input Box problem in C# Pin
Christian Graus25-Feb-07 21:20
protectorChristian Graus25-Feb-07 21:20 
GeneralRe: Input Box problem in C# Pin
thailehuy25-Feb-07 21:23
thailehuy25-Feb-07 21:23 
GeneralRe: Input Box problem in C# Pin
Martin#25-Feb-07 22:01
Martin#25-Feb-07 22:01 
GeneralRe: Input Box problem in C# Pin
thailehuy25-Feb-07 22:08
thailehuy25-Feb-07 22:08 
This is all I do with that input box, I don't pass in any control

InputBoxResult result = InputBox.Show("Enter alias:", "Some title", "Default", new InputBoxValidatingHandler(inputBox_Validating));


InputBoxResult is a class that have a boolean value for validating input and a text value for input string.

Here is the method that I use to show the form:
public static InputBoxResult Show(string prompt, string title, string defaultResponse, InputBoxValidatingHandler validator, int xpos, int ypos) {
			using (InputBox form = new InputBox()) {
				form.labelPrompt.Text = prompt;
				form.Text = title;
				form.textBoxText.Text = defaultResponse;
				if (xpos >= 0 && ypos >= 0) {
					form.StartPosition = FormStartPosition.Manual;
					form.Left = xpos;
					form.Top = ypos;
				}
				form.Validator = validator;

				DialogResult result = form.ShowDialog();

				InputBoxResult retval = new InputBoxResult();
				if (result == DialogResult.OK) {
					retval.Text = form.textBoxText.Text;
					retval.OK = true;
				}
				return retval;
			}
		}


I want to get this input string and set it as the cell alias. Well I can get that string, but whenever the form pop up, my cell goes empty
GeneralRe: Input Box problem in C# Pin
Martin#25-Feb-07 22:18
Martin#25-Feb-07 22:18 
GeneralRe: Input Box problem in C# Pin
thailehuy25-Feb-07 22:30
thailehuy25-Feb-07 22:30 
GeneralRe: Input Box problem in C# Pin
Christian Graus25-Feb-07 22:07
protectorChristian Graus25-Feb-07 22:07 
QuestionStrange Problem Pin
sam#25-Feb-07 19:45
sam#25-Feb-07 19:45 
AnswerRe: Strange Problem Pin
Christian Graus25-Feb-07 20:40
protectorChristian Graus25-Feb-07 20:40 
GeneralRe: Strange Problem Pin
sam#25-Feb-07 21:55
sam#25-Feb-07 21:55 
AnswerRe: Strange Problem Pin
alex.almeida26-Feb-07 8:55
alex.almeida26-Feb-07 8:55 
QuestionHow to invoke a method of an application in WIndows Service Pin
Mr Perfect25-Feb-07 19:42
Mr Perfect25-Feb-07 19:42 
AnswerRe: How to invoke a method of an application in WIndows Service Pin
Colin Angus Mackay25-Feb-07 23:51
Colin Angus Mackay25-Feb-07 23:51 
Questionplease check if the DB2OLEDB connection string is correct. Pin
icesha25-Feb-07 19:18
icesha25-Feb-07 19:18 
AnswerRe: please check if the DB2OLEDB connection string is correct. Pin
Binod K25-Feb-07 19:35
Binod K25-Feb-07 19:35 
GeneralRe: please check if the DB2OLEDB connection string is correct. Pin
icesha25-Feb-07 20:50
icesha25-Feb-07 20:50 
QuestionApplication error on closing a .Net application. Pin
pranu_1325-Feb-07 19:03
pranu_1325-Feb-07 19:03 
AnswerRe: Application error on closing a .Net application. Pin
Expert Coming25-Feb-07 19:47
Expert Coming25-Feb-07 19:47 
AnswerRe: Application error on closing a .Net application. Pin
pbraun3-Mar-07 14:54
pbraun3-Mar-07 14:54 
QuestionUserControl priority Pin
AesopTurtle25-Feb-07 18:24
AesopTurtle25-Feb-07 18:24 
AnswerRe: UserControl priority Pin
Judah Gabriel Himango26-Feb-07 13:38
sponsorJudah Gabriel Himango26-Feb-07 13:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.