Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 21:54
Adam R Harris14-Jul-09 21:54 
GeneralRe: RegEx not finding matches ... but it should Pin
riced14-Jul-09 22:10
riced14-Jul-09 22:10 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris15-Jul-09 7:24
Adam R Harris15-Jul-09 7:24 
Questioni need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 9:31
mr.mohsen14-Jul-09 9:31 
AnswerRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Rajdeep.NET14-Jul-09 9:39
Rajdeep.NET14-Jul-09 9:39 
AnswerRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Adam R Harris14-Jul-09 9:53
Adam R Harris14-Jul-09 9:53 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 10:02
mr.mohsen14-Jul-09 10:02 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Adam R Harris14-Jul-09 10:24
Adam R Harris14-Jul-09 10:24 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 10:36
mr.mohsen14-Jul-09 10:36 
QuestionI have a question Pin
Rajdeep.NET14-Jul-09 8:38
Rajdeep.NET14-Jul-09 8:38 
AnswerRe: I have a question PinPopular
WebMaster14-Jul-09 8:49
WebMaster14-Jul-09 8:49 
GeneralRe: I have a question Pin
Rajdeep.NET14-Jul-09 9:32
Rajdeep.NET14-Jul-09 9:32 
AnswerRe: I have a question Pin
Not Active14-Jul-09 11:05
mentorNot Active14-Jul-09 11:05 
GeneralRe: I have a question Pin
0x3c014-Jul-09 20:32
0x3c014-Jul-09 20:32 
QuestionDo special processing for a type in a generic class Pin
Dan Neely14-Jul-09 8:15
Dan Neely14-Jul-09 8:15 
QuestionHow can i save an Image in a database in a C# application Pin
CoderForEver14-Jul-09 8:15
CoderForEver14-Jul-09 8:15 
AnswerRe: How can i save an Image in a database in a C# application Pin
Henry Minute14-Jul-09 8:38
Henry Minute14-Jul-09 8:38 
QuestionReading multiple items from a single line of data Pin
ReynaW122314-Jul-09 8:12
ReynaW122314-Jul-09 8:12 
AnswerRe: Reading multiple items from a single line of data Pin
Henry Minute14-Jul-09 8:51
Henry Minute14-Jul-09 8:51 
GeneralRe: Reading multiple items from a single line of data Pin
ReynaW122314-Jul-09 9:41
ReynaW122314-Jul-09 9:41 
QuestionHelp - FormClosing event and FormClosed event fires to often Pin
fracalifa14-Jul-09 7:58
fracalifa14-Jul-09 7:58 
Hi all,
I have an MDI window with a ButtonBar (defined as master) and from there I can call the child windows (outside the master).
And from one child window I am calling an DialogWindow.

And here comes the problem: Confused | :confused:
When I am closing this dialog window, the FormClosing event (of the dialog) fires 34 times, and after that the FormClosed event fires 10 times.
I am shure that the events are only initialized for one time.
So you can say that 3 layers are opened. (MDI-Master --> MDI-->Slave --> DialogForm)
It wouldn't be a problem at all, if the dialog window wouldn't hang up. The whole Program stops.

in the FormClosing method is only a quiet simple code.

Dialog_FormClosing(.....)
{
   try
   {
      Console.WriteLine("closing");
      if(!can_close)
      {
         Messagebox.Show("You have to finish your app first");
         e.Cancel = true;
      }
      else
      {
         e.Cancel = false;
      }
   }
   catch
   {
   }
}


The question is: Why fires the event so often ?
And why hangs up the dialog (the dialog does not close)

Some ideas ? - using .NET 2.0.xxx

Tnx
Frank
QuestionMouseUp Event Not Firing After DoDragDrop Pin
Kevin Marois14-Jul-09 7:19
professionalKevin Marois14-Jul-09 7:19 
AnswerRe: MouseUp Event Not Firing After DoDragDrop Pin
Henry Minute14-Jul-09 7:48
Henry Minute14-Jul-09 7:48 
AnswerRe: MouseUp Event Not Firing After DoDragDrop Pin
Kevin Marois14-Jul-09 7:54
professionalKevin Marois14-Jul-09 7:54 
GeneralRe: MouseUp Event Not Firing After DoDragDrop Pin
Henry Minute14-Jul-09 9:03
Henry Minute14-Jul-09 9:03 

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.