Click here to Skip to main content
15,885,098 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiple Catch Block Pin
Vikram A Punathambekar27-Feb-06 21:35
Vikram A Punathambekar27-Feb-06 21:35 
Questionhow to convert into jpg or bmp Pin
relsirc27-Feb-06 19:54
relsirc27-Feb-06 19:54 
AnswerRe: how to convert into jpg or bmp Pin
planar27-Feb-06 21:03
planar27-Feb-06 21:03 
QuestionHow to programmatically send SMS thru GPRS card Pin
ykoon27-Feb-06 19:50
ykoon27-Feb-06 19:50 
AnswerRe: How to programmatically send SMS thru GPRS card Pin
Dario Solera27-Feb-06 23:09
Dario Solera27-Feb-06 23:09 
GeneralRe: How to programmatically send SMS thru GPRS card Pin
ykoon28-Feb-06 16:27
ykoon28-Feb-06 16:27 
QuestionSetting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 19:43
NewbieDude27-Feb-06 19:43 
AnswerRe: Setting Panel's LOCKED property in code Pin
microsoc27-Feb-06 21:30
microsoc27-Feb-06 21:30 
hi NewbieDude! Smile | :)

actually, this is not a property of the panel. it's coming from the ToolBoxItem class.

Anyway, if you want is to set the allowable selection on your panel (the icons to resize/move a panel in design-time), you must sub class the Windows.Forms.Design.ParentControlDesigner then override the SelectionRules property. In that property, you can set what selections are allowed.

then use this designer on your customized panel by adding a Designer attribute on you panel.

public class MyDesigner : ParentControlDesigner
{
        public MyDesigner ()
        {}

 	public override SelectionRules SelectionRules
	{
		get
		{
                    return (SelectionRules.Locked | SelectionRules.Visible | SelectionRules.Moveable);
		}
	}
}

[Designer(typeof(MyDesigner))]
public class MyPanel : Panel
{
   public MyPanel ()
   {}
}


hope that helps! Smile | :)

microsoc Cool | :cool:
GeneralRe: Setting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 21:45
NewbieDude27-Feb-06 21:45 
GeneralRe: Setting Panel's LOCKED property in code Pin
microsoc27-Feb-06 22:04
microsoc27-Feb-06 22:04 
GeneralRe: Setting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 22:11
NewbieDude27-Feb-06 22:11 
GeneralRe: Setting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 22:21
NewbieDude27-Feb-06 22:21 
GeneralRe: Setting Panel's LOCKED property in code Pin
microsoc27-Feb-06 22:26
microsoc27-Feb-06 22:26 
QuestionHow to merge table cells using mshtml Pin
takkung27-Feb-06 18:21
takkung27-Feb-06 18:21 
Questionhow to get the type of the file selected...... Pin
imsathy27-Feb-06 18:06
imsathy27-Feb-06 18:06 
AnswerRe: how to get the type of the file selected...... Pin
Christian Graus27-Feb-06 18:30
protectorChristian Graus27-Feb-06 18:30 
GeneralRe: how to get the type of the file selected...... Pin
imsathy27-Feb-06 18:43
imsathy27-Feb-06 18:43 
GeneralRe: how to get the type of the file selected...... Pin
Christian Graus27-Feb-06 18:46
protectorChristian Graus27-Feb-06 18:46 
GeneralRe: how to get the type of the file selected...... Pin
Vikram A Punathambekar27-Feb-06 21:38
Vikram A Punathambekar27-Feb-06 21:38 
AnswerRe: how to get the type of the file selected...... Pin
mav.northwind28-Feb-06 22:46
mav.northwind28-Feb-06 22:46 
GeneralRe: how to get the type of the file selected...... Pin
imsathy28-Feb-06 22:49
imsathy28-Feb-06 22:49 
GeneralRe: how to get the type of the file selected...... Pin
mav.northwind28-Feb-06 22:59
mav.northwind28-Feb-06 22:59 
GeneralRe: how to get the type of the file selected...... Pin
imsathy28-Feb-06 23:37
imsathy28-Feb-06 23:37 
GeneralRe: how to get the type of the file selected...... Pin
mav.northwind1-Mar-06 8:11
mav.northwind1-Mar-06 8:11 
GeneralRe: how to get the type of the file selected...... Pin
imsathy1-Mar-06 18:11
imsathy1-Mar-06 18:11 

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.