Click here to Skip to main content
16,013,642 members
Home / Discussions / C#
   

C#

 
AnswerRe: Redirect file stream? Pin
Nader Elshehabi26-Jun-06 1:45
Nader Elshehabi26-Jun-06 1:45 
QuestionValue member & display member for combobox when using datareader Pin
ashishinfra26-Jun-06 0:56
ashishinfra26-Jun-06 0:56 
AnswerRe: Value member & display member for combobox when using datareader Pin
Paul Brower26-Jun-06 2:12
Paul Brower26-Jun-06 2:12 
GeneralRe: Value member & display member for combobox when using datareader Pin
ashishinfra26-Jun-06 2:31
ashishinfra26-Jun-06 2:31 
QuestionOpenFileDialog equivalent for a MTA app? Pin
Jon Hulatt26-Jun-06 0:38
Jon Hulatt26-Jun-06 0:38 
AnswerRe: OpenFileDialog equivalent for a MTA app? Pin
Nader Elshehabi26-Jun-06 1:32
Nader Elshehabi26-Jun-06 1:32 
GeneralRe: OpenFileDialog equivalent for a MTA app? Pin
Jon Hulatt26-Jun-06 4:13
Jon Hulatt26-Jun-06 4:13 
GeneralRe: OpenFileDialog equivalent for a MTA app? Pin
Nader Elshehabi26-Jun-06 6:00
Nader Elshehabi26-Jun-06 6:00 
Well, I anticipated this, but I believe the solution is simple.
1- Make a bool value that is always false
2- At each UI event (click, highlight, etc...) you check that value, if it's false continue
3- When you show the openfileDialog -or just any other dialog- you set this value to true and create and object reference to that dialog (of type Control maybe)
4- When the dialog returns, you set it to false again -so that the UI will work again-, then process the data returned by that dialog

In the Focus event -when the user set the focus to your main Application- check if the object reference is null, if not call its Control.Focus();

This way when the user clicks or moves the mouse around you'll still be able to draw your UI, yet the user won't be able to use it until the dialog returns. Also he won't be able to change focus until the dialog return.

I know it's a bit lousy way, but that is what I can think of.Smile | :)
I hope it works

QuestionCrystal reports... with a SQL or format string Pin
Willem_Le_Roux26-Jun-06 0:32
Willem_Le_Roux26-Jun-06 0:32 
AnswerRe: Crystal reports... with a SQL or format string [modified] Pin
Tarakeshwar Reddy26-Jun-06 1:15
professionalTarakeshwar Reddy26-Jun-06 1:15 
QuestionRe: Crystal reports... with a SQL or format string [modified] Pin
Willem_Le_Roux28-Jun-06 1:08
Willem_Le_Roux28-Jun-06 1:08 
AnswerRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 1:35
professionalTarakeshwar Reddy28-Jun-06 1:35 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 2:04
Willem_Le_Roux28-Jun-06 2:04 
GeneralRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 2:11
professionalTarakeshwar Reddy28-Jun-06 2:11 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 2:36
Willem_Le_Roux28-Jun-06 2:36 
GeneralRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 2:42
professionalTarakeshwar Reddy28-Jun-06 2:42 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 3:02
Willem_Le_Roux28-Jun-06 3:02 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 3:11
Willem_Le_Roux28-Jun-06 3:11 
GeneralRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 4:27
professionalTarakeshwar Reddy28-Jun-06 4:27 
QuestionWeb Service Deserialization problem Pin
stickyWicky26-Jun-06 0:14
stickyWicky26-Jun-06 0:14 
QuestionCrystal Report 10 in VS .Net 2005 (Windows Forms app) [modified] Pin
Mairaaj Khan26-Jun-06 0:10
professionalMairaaj Khan26-Jun-06 0:10 
QuestionUdpClient error Pin
sjembek26-Jun-06 0:09
sjembek26-Jun-06 0:09 
AnswerRe: UdpClient error Pin
leppie26-Jun-06 1:23
leppie26-Jun-06 1:23 
GeneralRe: UdpClient error Pin
sjembek26-Jun-06 1:27
sjembek26-Jun-06 1:27 
GeneralRe: UdpClient error Pin
leppie26-Jun-06 3:01
leppie26-Jun-06 3:01 

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.