Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
AnswerRe: The ConnectionString property has not been initialized ! Pin
Coding C#21-Aug-06 20:26
Coding C#21-Aug-06 20:26 
QuestionmouseMove event Pin
jamsiro21-Aug-06 12:49
jamsiro21-Aug-06 12:49 
AnswerRe: mouseMove event Pin
Shy Agam21-Aug-06 13:06
Shy Agam21-Aug-06 13:06 
AnswerRe: mouseMove event Pin
Nader Elshehabi21-Aug-06 13:18
Nader Elshehabi21-Aug-06 13:18 
QuestionRepresent CSS in C# [modified] Pin
Goebel21-Aug-06 12:32
Goebel21-Aug-06 12:32 
QuestionError: "Call was rejected by callee" Pin
Goalie3521-Aug-06 11:49
Goalie3521-Aug-06 11:49 
AnswerRe: Error: "Call was rejected by callee" Pin
bradsnobar21-Aug-06 12:13
bradsnobar21-Aug-06 12:13 
QuestionHow to paint embedded controls. Pin
bradsnobar21-Aug-06 11:48
bradsnobar21-Aug-06 11:48 
I have a user control that I would like to embed win forms controls in (for example System.Windows.Forms.Button)
I would like to embed the control in a control that is a property on my user control

I do not know how to then make the embedded control paint so that the user can see it.

public class SideBarMenu : UserControl
{
   public class MyMenuItem : Control
   {
    public bool isActive = false;
   }

// ... other code omitted

   protected override void OnPaint(PaintEventArgs e)
   {
     base.OnPaint(e);
     //what do I do to paint the child controls
     //that can be contained in a MyMenuItem
   }
  }


public class Test1
{
   public static void Test()
     {
       SideBarMenu mnu = new SideBarMenu();
       MyMenuItem i = mnu.AddMenuItem("Hello");

       Button b = new Button();
       b.Text = "button1";
       i.Controls.Add(b);
     }
}
AnswerRe: How to paint embedded controls. Pin
Nader Elshehabi21-Aug-06 13:14
Nader Elshehabi21-Aug-06 13:14 
QuestionUsing reflection to call an internal method Pin
Ista21-Aug-06 11:33
Ista21-Aug-06 11:33 
AnswerRe: Using reflection to call an internal method Pin
Vitaliy Tsvayer21-Aug-06 11:58
Vitaliy Tsvayer21-Aug-06 11:58 
QuestionC# DataGrid Question Pin
kalyanPaladugu21-Aug-06 10:29
kalyanPaladugu21-Aug-06 10:29 
AnswerRe: C# DataGrid Question Pin
Nader Elshehabi21-Aug-06 11:03
Nader Elshehabi21-Aug-06 11:03 
AnswerRe: C# DataGrid Question [modified] Pin
Vitaliy Tsvayer21-Aug-06 11:52
Vitaliy Tsvayer21-Aug-06 11:52 
QuestionReference Debug/Release version dll's of external projects Pin
wrykyn21-Aug-06 9:45
wrykyn21-Aug-06 9:45 
AnswerRe: Reference Debug/Release version dll's of external projects Pin
Nader Elshehabi21-Aug-06 10:50
Nader Elshehabi21-Aug-06 10:50 
QuestionLooking for a good tutorial Pin
Soot21-Aug-06 9:44
Soot21-Aug-06 9:44 
AnswerRe: Looking for a good tutorial Pin
Nader Elshehabi21-Aug-06 10:42
Nader Elshehabi21-Aug-06 10:42 
Questiondataset sort and combine/consolidate Pin
jeweladdict21-Aug-06 8:52
jeweladdict21-Aug-06 8:52 
AnswerDatarow combining Pin
jeweladdict21-Aug-06 9:50
jeweladdict21-Aug-06 9:50 
AnswerRe: dataset sort and combine/consolidate Pin
Nader Elshehabi21-Aug-06 10:59
Nader Elshehabi21-Aug-06 10:59 
GeneralRe: dataset sort and combine/consolidate Pin
jeweladdict21-Aug-06 12:50
jeweladdict21-Aug-06 12:50 
GeneralRe: dataset sort and combine/consolidate Pin
Nader Elshehabi21-Aug-06 13:28
Nader Elshehabi21-Aug-06 13:28 
QuestionHow do I add Selected Cells Pin
kornstyle21-Aug-06 8:30
kornstyle21-Aug-06 8:30 
AnswerRe: How do I add Selected Cells Pin
Nader Elshehabi21-Aug-06 11:01
Nader Elshehabi21-Aug-06 11:01 

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.