Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: Just problems... Pin
lost in transition 3-Apr-07 8:01
lost in transition 3-Apr-07 8:01 
QuestionXml Confusion Pin
Mark F.3-Apr-07 5:24
Mark F.3-Apr-07 5:24 
AnswerRe: Xml Confusion Pin
kubben3-Apr-07 6:03
kubben3-Apr-07 6:03 
QuestionHelp with automated html to image capture Pin
justlee73-Apr-07 5:10
justlee73-Apr-07 5:10 
AnswerRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 5:45
Douglas Troy3-Apr-07 5:45 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 5:57
justlee73-Apr-07 5:57 
GeneralRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 6:15
Douglas Troy3-Apr-07 6:15 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 6:48
justlee73-Apr-07 6:48 
GeneralRe: Help with automated html to image capture [modified] Pin
Douglas Troy3-Apr-07 7:09
Douglas Troy3-Apr-07 7:09 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 10:20
justlee73-Apr-07 10:20 
GeneralRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 10:41
Douglas Troy3-Apr-07 10:41 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 10:44
justlee73-Apr-07 10:44 
GeneralRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 19:50
Douglas Troy3-Apr-07 19:50 
QuestionDrag and drop listview Pin
Diego F.3-Apr-07 5:03
Diego F.3-Apr-07 5:03 
AnswerRe: Drag and drop listview Pin
led mike3-Apr-07 6:01
led mike3-Apr-07 6:01 
GeneralRe: Drag and drop listview Pin
Diego F.3-Apr-07 21:52
Diego F.3-Apr-07 21:52 
QuestionHow to save Excel object for further use? Pin
BlackBar3-Apr-07 4:40
BlackBar3-Apr-07 4:40 
AnswerRe: How to save Excel object for further use? Pin
Douglas Troy3-Apr-07 5:35
Douglas Troy3-Apr-07 5:35 
GeneralRe: How to save Excel object for further use? Pin
BlackBar3-Apr-07 8:55
BlackBar3-Apr-07 8:55 
QuestionSQL Files Pin
hadad3-Apr-07 4:20
hadad3-Apr-07 4:20 
AnswerRe: SQL Files Pin
Douglas Troy3-Apr-07 7:15
Douglas Troy3-Apr-07 7:15 
Questionuse panel inside a user control to drop controls in and make this panel locked. Pin
Johnny Hooyberghs3-Apr-07 3:53
Johnny Hooyberghs3-Apr-07 3:53 
I am esigning a usercontrol with a panel child. Using a ControlDesigner I used EnableDesignMode to make it possible to drop controls in the panel at design time. Now i wanted to lock te panel because you can move and resize the panel inside the usercontrol. I made another ControlDesigner class to use on the panel class and override the SelectionRules to set it to locked. If I use this locked thing, the functionality of dropping controls in the panel dissapears. Howe can I implement these two things without problems?

My code:
<br />
[DesignerAttribute( typeof( AdvancedNoteDesigner ) )]<br />
public partial class AdvancedNote : UserControl<br />
{<br />
   ...<br />
}<br />
<br />
//[DesignerAttribute( typeof( AdvancedNoteContentPanelDesigner ) )]<br />
public class AdvancedNoteContentPanel : Panel<br />
{<br />
   /// <summary><br />
   /// Default class constructor.<br />
   /// </summary><br />
   public AdvancedNoteContentPanel()<br />
   {<br />
      this.SetStyle( ControlStyles.AllPaintingInWmPaint , true );<br />
      this.SetStyle( ControlStyles.OptimizedDoubleBuffer , true );<br />
      this.SetStyle( ControlStyles.ResizeRedraw , true );<br />
      this.SetStyle( ControlStyles.SupportsTransparentBackColor , true );<br />
      this.SetStyle( ControlStyles.UserPaint , true );<br />
<br />
      this.BackColor = Color.Transparent;<br />
   }<br />
}<br />
<br />
internal class AdvancedNoteDesigner : ControlDesigner<br />
{<br />
   public override void Initialize( IComponent component )<br />
   {<br />
      base.Initialize( component );<br />
<br />
      AdvancedNote advancednote = (AdvancedNote)component;<br />
<br />
      EnableDesignMode( advancednote.ContentPanelFront , "ContentPanelFront" );<br />
      EnableDesignMode( advancednote.ContentPanelBack , "ContentPanelBack" );<br />
   }<br />
}<br />
<br />
internal class AdvancedNoteContentPanelDesigner : ControlDesigner<br />
{<br />
   public override SelectionRules SelectionRules<br />
   {<br />
      get<br />
      {<br />
         SelectionRules selRules = base.SelectionRules;<br />
<br />
         selRules = SelectionRules.Locked;<br />
<br />
         return selRules;<br />
      }<br />
   }<br />
}<br />
<br />

QuestionHow to open MyDocument Explorer, My Network places Explorer in C# Pin
Sanjib Raj3-Apr-07 2:29
Sanjib Raj3-Apr-07 2:29 
AnswerRe: How to open MyDocument Explorer, My Network places Explorer in C# Pin
kubben3-Apr-07 3:06
kubben3-Apr-07 3:06 
AnswerRe: How to open MyDocument Explorer, My Network places Explorer in C# Pin
Douglas Troy3-Apr-07 4:39
Douglas Troy3-Apr-07 4: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.