Click here to Skip to main content
15,889,843 members
Home / Discussions / C#
   

C#

 
AnswerRe: PopUp form Pin
AB777124-Jan-06 0:26
AB777124-Jan-06 0:26 
GeneralRe: PopUp form Pin
PHDENG8124-Jan-06 0:28
PHDENG8124-Jan-06 0:28 
QuestionForm Background image problems Pin
NewbieDude23-Jan-06 22:00
NewbieDude23-Jan-06 22:00 
QuestionShowDialog Pin
microsoc23-Jan-06 21:28
microsoc23-Jan-06 21:28 
AnswerRe: ShowDialog Pin
AB777124-Jan-06 0:30
AB777124-Jan-06 0:30 
GeneralRe: ShowDialog Pin
microsoc24-Jan-06 15:06
microsoc24-Jan-06 15:06 
GeneralRe: ShowDialog Pin
AB777124-Jan-06 16:41
AB777124-Jan-06 16:41 
QuestionRe: ShowDialog Pin
microsoc24-Jan-06 20:47
microsoc24-Jan-06 20:47 
hi pramod! Smile | :)

sorry for the late reply.

actually, my main goal is to create a custom message box. I don't want to use the normal messagebox because it's very limited with regards to functionality and design. that's why i just created a normal form.

i already read some articles about making a custom messagebox and most of them are using the ShowDialog method. Which is ok because it will become modal to the owner form and the next statement after the showing of the messagebox is executed after the messagebox is closed.
but there is a problem in this method... the modality of the messagebox is for the whole application not for the owner only.

for example, i have 2 forms in the application, Form1 and Form2. Both of them are loaded.
the Form1 shows the messagebox, which means it's the owner and you cannot access it until you close the messagebox. So Form2 must be accessible, but this is not what happen. both of the forms are not accessible. Frown | :(

there's an overload of the ShowDialog which has an IWin32Window parameter for setting the owner. but it's the same as the one with no parameter. Mad | :mad:

so as a solution for the modal thing, i just set the owner of the messagebox, then use the Show method and disabled the owner. but there's a problem with this(again?Frown | :(
the execution of the statements, after showing the messagebox, continues even if the messagebox is stil loaded.



so as a summary, here's what i want(if possible...Sniff | :^) )

Option 1
- Use ShowDialog method
- Set the modality of the messagebox to the owner only (how???)

Option 2
- Use Show method and disabled the owner
- freeze the process of the owner until the messagebox close (how???)

hope that explains well...Sniff | :^)

thanks for your time! Smile | :)

microsoc Cool | :cool:

AnswerRe: ShowDialog Pin
AB777124-Jan-06 21:06
AB777124-Jan-06 21:06 
AnswerRe: ShowDialog Pin
AB777124-Jan-06 21:23
AB777124-Jan-06 21:23 
GeneralRe: ShowDialog Pin
microsoc24-Jan-06 23:48
microsoc24-Jan-06 23:48 
Questionxls File Parser Pin
xoxoxoxoxoxox23-Jan-06 21:15
xoxoxoxoxoxox23-Jan-06 21:15 
AnswerRe: xls File Parser Pin
albCode24-Jan-06 2:11
albCode24-Jan-06 2:11 
Questionupdate MS Access using filesystemwatcher event handler Pin
hongweng23-Jan-06 21:12
hongweng23-Jan-06 21:12 
AnswerRe: update MS Access using filesystemwatcher event handler Pin
Garry Stewart23-Jan-06 21:37
Garry Stewart23-Jan-06 21:37 
Questionredirecting page in asp.net Pin
inaureen23-Jan-06 20:24
inaureen23-Jan-06 20:24 
AnswerRe: redirecting page in asp.net Pin
Garry Stewart23-Jan-06 20:53
Garry Stewart23-Jan-06 20:53 
GeneralRe: redirecting page in asp.net Pin
Guffa23-Jan-06 21:48
Guffa23-Jan-06 21:48 
GeneralRe: redirecting page in asp.net Pin
inaureen23-Jan-06 22:01
inaureen23-Jan-06 22:01 
QuestionTo Constantly ping the system. Pin
Venkat_8323-Jan-06 18:36
Venkat_8323-Jan-06 18:36 
AnswerRe: To Constantly ping the system. Pin
AB777124-Jan-06 0:34
AB777124-Jan-06 0:34 
AnswerRe: To Constantly ping the system. Pin
mitooki24-Jan-06 1:30
mitooki24-Jan-06 1:30 
QuestionConvert a 2003 project to a 2005 project Pin
NewbieDude23-Jan-06 18:16
NewbieDude23-Jan-06 18:16 
AnswerRe: Convert a 2003 project to a 2005 project Pin
M@dHatter23-Jan-06 18:33
M@dHatter23-Jan-06 18:33 
GeneralRe: Convert a 2003 project to a 2005 project Pin
NewbieDude23-Jan-06 18:39
NewbieDude23-Jan-06 18:39 

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.