Click here to Skip to main content
16,004,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Force a Form to Close Pin
Luc Pattyn14-May-07 13:36
sitebuilderLuc Pattyn14-May-07 13:36 
GeneralRe: Force a Form to Close Pin
MatrixCoder14-May-07 13:51
MatrixCoder14-May-07 13:51 
GeneralRe: Force a Form to Close Pin
Leslie Sanford14-May-07 14:19
Leslie Sanford14-May-07 14:19 
AnswerRe: Force a Form to Close Pin
MatrixCoder14-May-07 13:26
MatrixCoder14-May-07 13:26 
GeneralRe: Force a Form to Close Pin
Latheesan14-May-07 13:32
Latheesan14-May-07 13:32 
AnswerRe: Force a Form to Close Pin
Leslie Sanford14-May-07 13:38
Leslie Sanford14-May-07 13:38 
GeneralRe: Force a Form to Close Pin
Latheesan14-May-07 13:48
Latheesan14-May-07 13:48 
GeneralRe: Force a Form to Close Pin
Leslie Sanford14-May-07 14:18
Leslie Sanford14-May-07 14:18 
Latheesan wrote:
Is there any way to get around this?


Well, let's consider what you're trying to do. You have a main form in which the user can enter something they wish to search for into a text box. They hit a search button. If the item is found, a new form is opened for them to interact with.

What you want to do is close the original form with the text box and search button, correct?

The problem is that you want to close what is apparently the main form while keeping open a child form. I don't know of a way to do this. Why not instead use one main form and two child forms. One child form is for entering searches. Once the user has entered a search string and hit the search button, it's closed. The main form then opens the second child form, which uses the results of the search.

So you have a main form representing the basic functionality of the application and two child forms, one for searching, and the other for using the results of the search.

Make sense?
GeneralRe: Force a Form to Close Pin
Latheesan14-May-07 16:13
Latheesan14-May-07 16:13 
AnswerRe: Force a Form to Close Pin
Michael Sadlon15-May-07 7:57
Michael Sadlon15-May-07 7:57 
QuestionDeclaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 12:09
Kataric14-May-07 12:09 
AnswerRe: Declaring 9x9 buttons using dictionary type Pin
Christian Graus14-May-07 12:22
protectorChristian Graus14-May-07 12:22 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 12:26
Kataric14-May-07 12:26 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Christian Graus14-May-07 12:53
protectorChristian Graus14-May-07 12:53 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 13:08
Kataric14-May-07 13:08 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Christian Graus14-May-07 13:40
protectorChristian Graus14-May-07 13:40 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Luc Pattyn14-May-07 13:40
sitebuilderLuc Pattyn14-May-07 13:40 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 13:40
Kataric14-May-07 13:40 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 13:42
Kataric14-May-07 13:42 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 14:22
Kataric14-May-07 14:22 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Martin#14-May-07 20:02
Martin#14-May-07 20:02 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Kataric14-May-07 20:19
Kataric14-May-07 20:19 
GeneralRe: Declaring 9x9 buttons using dictionary type Pin
Martin#14-May-07 20:24
Martin#14-May-07 20:24 
Questioncannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 11:17
Latheesan14-May-07 11:17 
AnswerRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 11:24
Colin Angus Mackay14-May-07 11:24 

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.