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

C#

 
GeneralRe: I have a few questions :) Pin
Saksida Bojan29-Dec-09 8:12
Saksida Bojan29-Dec-09 8:12 
QuestionWindows automation with C# Pin
DiscoJimmy29-Dec-09 4:26
DiscoJimmy29-Dec-09 4:26 
QuestionResize of Custom Control And Excluding control Pin
Saksida Bojan29-Dec-09 4:02
Saksida Bojan29-Dec-09 4:02 
AnswerRe: Resize of Custom Control And Excluding control Pin
Eddy Vluggen29-Dec-09 6:34
professionalEddy Vluggen29-Dec-09 6:34 
GeneralRe: Resize of Custom Control And Excluding control Pin
Saksida Bojan29-Dec-09 10:30
Saksida Bojan29-Dec-09 10:30 
GeneralRe: Resize of Custom Control And Excluding control Pin
Eddy Vluggen30-Dec-09 5:45
professionalEddy Vluggen30-Dec-09 5:45 
GeneralRe: Resize of Custom Control And Excluding control Pin
Saksida Bojan5-Jan-10 1:49
Saksida Bojan5-Jan-10 1:49 
GeneralRe: Resize of Custom Control And Excluding control Pin
Saksida Bojan12-Feb-10 19:03
Saksida Bojan12-Feb-10 19:03 
I Found the way to use what i wanted.
I added a dll reference: system.Design.dll
I added using System.Windows.Form.Design

[ToolboxItem(true)]
[Designer(typeof(testDesigner))] // Designer need
public class test : Button
{
   [Browsable(true)]
   public bool MultiLine
   {
      get
      {
         return testDesigner.m;
      }
      set
      {
         testDesigner.m = value;
      }
   }
}
public class testDesigner : ControlDesigner
{
   public static bool m;
   public override SelectionRules SelectionRules
   {
      get
      {
         if (!m)
            return SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.Visible | SelectionRules.Moveable;
         else
            return SelectionRules.BottomSizeable | SelectionRules.TopSizeable | SelectionRules.Visible | SelectionRules.Moveable;
      }
   }
}

GeneralRe: Resize of Custom Control And Excluding control Pin
Eddy Vluggen13-Feb-10 1:10
professionalEddy Vluggen13-Feb-10 1:10 
Newsi have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
3bood.ghzawi29-Dec-09 2:29
3bood.ghzawi29-Dec-09 2:29 
GeneralRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
Calla29-Dec-09 3:33
Calla29-Dec-09 3:33 
GeneralRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
dan!sh 29-Dec-09 3:45
professional dan!sh 29-Dec-09 3:45 
JokeRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
Abhinav S29-Dec-09 3:48
Abhinav S29-Dec-09 3:48 
GeneralRe: i have a problem of using an ICMP class at SharpPcap-2.1.1 Pin
Keith Barrow29-Dec-09 4:00
professionalKeith Barrow29-Dec-09 4:00 
QuestionTabControl Pin
farokhian29-Dec-09 0:25
farokhian29-Dec-09 0:25 
AnswerRe: TabControl Pin
#realJSOP29-Dec-09 0:39
mve#realJSOP29-Dec-09 0:39 
QuestionIndex remains on 0(zero) in richtextbox Pin
Dot-Net-Dev29-Dec-09 0:12
Dot-Net-Dev29-Dec-09 0:12 
AnswerRe: Index remains on 0(zero) in richtextbox Pin
Dave Kreskowiak29-Dec-09 3:53
mveDave Kreskowiak29-Dec-09 3:53 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
ProtoBytes29-Dec-09 8:34
ProtoBytes29-Dec-09 8:34 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
Dot-Net-Dev29-Dec-09 16:52
Dot-Net-Dev29-Dec-09 16:52 
GeneralRe: Index remains on 0(zero) in richtextbox Pin
Dave Kreskowiak29-Dec-09 18:08
mveDave Kreskowiak29-Dec-09 18:08 
QuestionWeird Debugging Problem Pin
#realJSOP29-Dec-09 0:10
mve#realJSOP29-Dec-09 0:10 
AnswerRe: Weird Debugging Problem Pin
Keith Barrow29-Dec-09 2:02
professionalKeith Barrow29-Dec-09 2:02 
AnswerRe: Weird Debugging Problem Pin
Ben Fair29-Dec-09 2:35
Ben Fair29-Dec-09 2:35 
GeneralRe: Weird Debugging Problem Pin
Luc Pattyn29-Dec-09 2:45
sitebuilderLuc Pattyn29-Dec-09 2:45 

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.