Click here to Skip to main content
16,011,647 members
Home / Discussions / C#
   

C#

 
GeneralRe: separate method declaration and implementation Pin
Jim Stewart8-Aug-03 19:40
Jim Stewart8-Aug-03 19:40 
GeneralRemoving duplicates in an array Pin
mikemilano8-Aug-03 10:21
mikemilano8-Aug-03 10:21 
GeneralRe: Removing duplicates in an array Pin
Krishnan111119778-Aug-03 13:53
Krishnan111119778-Aug-03 13:53 
GeneralRe: Removing duplicates in an array Pin
James T. Johnson8-Aug-03 14:30
James T. Johnson8-Aug-03 14:30 
General"Removing Events" and -= Pin
flipdoubt8-Aug-03 9:19
flipdoubt8-Aug-03 9:19 
GeneralRe: "Removing Events" and -= Pin
flipdoubt8-Aug-03 9:32
flipdoubt8-Aug-03 9:32 
QuestionHow to set an Extended Style? Pin
Alvaro Mendez8-Aug-03 7:46
Alvaro Mendez8-Aug-03 7:46 
AnswerRe: How to set an Extended Style? Pin
Stephane Rodriguez.8-Aug-03 19:46
Stephane Rodriguez.8-Aug-03 19:46 
override the CreateParams property, and hardcode the implementation for "get".

FYI, the default implementation is :
protected override CreateParams get_CreateParams()
{ 
 CreateParams params1;
 IWin32Window window1;
 Form form1;
 Form form2;
 params1 = base.CreateParams;
 if (this.TopLevel)
 {
  params1.Style = (params1.Style & -134217729);
 
 }
 if (this.TopLevel && (this.formState[Form.FormStateAllowLayered] != null))
 {
   params1.ExStyle = (params1.ExStyle | 524288);
 }
 window1 = ((IWin32Window) base.Properties.GetObject(Form.PropDialogOwner));
 if (window1 != null)
 {
  params1.Parent = window1.Handle;
 }
 this.FillInCreateParamsBorderStyles(params1);
 this.FillInCreateParamsWindowState(params1);
 this.FillInCreateParamsBorderIcons(params1);
 if (this.formState[Form.FormStateTaskBar] != null)
 {
  params1.ExStyle = (params1.ExStyle | 262144);
 }
 if (this.IsMdiChild)
 {
  if (base.Visible && ((this.WindowState == 2) || (this.WindowState == 0)))
 {
  form1 = ((Form) base.Properties.GetObject(Form.PropFormMdiParent));
 form2 = form1.ActiveMdiChild;
 if ((form2 != null) && (form2.WindowState == 2))
 {
  params1.Style = (params1.Style | 16777216);
  this.formState[Form.FormStateWindowState] = 2;
  base.SetState(65536, 1);
 }
 
}
 if (this.formState[Form.FormStateMdiChildMax] != null)
 {
  params1.Style = (params1.Style | 16777216);
 }
 params1.ExStyle = (params1.ExStyle | 64);
 
}
 if (this.TopLevel || this.IsMdiChild)
 {
  this.FillInCreateParamsStartPosition(params1);
  if ((params1.Style & 268435456) != 0)
  {
   this.formState[Form.FormStateShowWindowOnCreate] = 1;
   params1.Style = (params1.Style & -268435457);
  }
 
}
  if (this.IsRestrictedWindow)
  {
   params1.Caption = this.RestrictedWindowText(params1.Caption);
  }
 return params1; 
}


Reflector is your friend!




  RSS feed
GeneralRe: How to set an Extended Style? Pin
igor19609-Aug-03 21:54
igor19609-Aug-03 21:54 
GeneralRe: How to set an Extended Style? Pin
Stephane Rodriguez.10-Aug-03 2:32
Stephane Rodriguez.10-Aug-03 2:32 
GeneralRe: How to set an Extended Style? Pin
igor196010-Aug-03 13:57
igor196010-Aug-03 13:57 
Generalreading attributes in AssemblyInfo.cs Pin
zuhx8-Aug-03 7:23
zuhx8-Aug-03 7:23 
GeneralRe: reading attributes in AssemblyInfo.cs Pin
flipdoubt8-Aug-03 9:26
flipdoubt8-Aug-03 9:26 
GeneralRe: reading attributes in AssemblyInfo.cs Pin
zuhx8-Aug-03 11:25
zuhx8-Aug-03 11:25 
Generalexplode string Pin
mikemilano8-Aug-03 6:51
mikemilano8-Aug-03 6:51 
GeneralRe: explode string Pin
Radoslav Bielik8-Aug-03 7:34
Radoslav Bielik8-Aug-03 7:34 
GeneralRe: explode string Pin
mikemilano8-Aug-03 11:44
mikemilano8-Aug-03 11:44 
GeneralRe: explode string Pin
Csharp™8-Aug-03 12:43
Csharp™8-Aug-03 12:43 
GeneralRe: explode string Pin
Radoslav Bielik8-Aug-03 12:45
Radoslav Bielik8-Aug-03 12:45 
GeneralRe: explode string Pin
mikemilano8-Aug-03 13:16
mikemilano8-Aug-03 13:16 
General.NET application permissions Pin
Radoslav Bielik8-Aug-03 6:48
Radoslav Bielik8-Aug-03 6:48 
GeneralRe: .NET application permissions Pin
Lasse Johansen8-Aug-03 12:12
Lasse Johansen8-Aug-03 12:12 
QuestionCan any solve this????? Pin
Regardt8-Aug-03 3:39
Regardt8-Aug-03 3:39 
AnswerRe: Can any solve this????? Pin
Not Active8-Aug-03 5:10
mentorNot Active8-Aug-03 5:10 
AnswerRe: Can any solve this????? Pin
Ista8-Aug-03 6:10
Ista8-Aug-03 6:10 

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.