Click here to Skip to main content
15,896,379 members

Comments by Ramkrishn Mishra (Top 7 by date)

Ramkrishn Mishra 6-Jun-14 10:22am View    
Yes I researching but not getting correct path of webcam integartion. I am also trying but if have any clue . Plz advice
Ramkrishn Mishra 29-Apr-14 2:57am View    
Sir I want to create one UserControl. I put the TextBox inside the UserControl and TextBox.Enabled=False.

Then put Usercontrol inside the form1. Now I want to Change the property in Form behind code like TextBox.Enabled=True
Ramkrishn Mishra 29-Apr-14 2:27am View    
Yes, those enabled= false property of TextBox inside in UserControl. After That UserControl used in form and here code behind of form, how to access TextBox.Enabled=True.

I hope try to understand
Ramkrishn Mishra 28-Apr-14 16:14pm View    
Yes already those control are disabled in design time usercontrol . Now want to access enabled property in form1 page
Ramkrishn Mishra 26-Mar-14 2:22am View    
Actually I am trying understanding to delegate and event concept but not understand that how to do code ?
I am Created UserControl explicitly have code below :-
namespace test_CreateUserControl
{

public partial class UserControl1 : UserControl
{
// public event EventHandler StatusChanged;
public event EventHandler InnerButtonClick;
public UserControl1()
{
InitializeComponent();
InnerButton.Click +=new EventHandler(InnerButton_Click);
}
private void InnerButton_Click(Object sender, EventArgs e)
{
if (InnerButtonClick != null)
{
InnerButtonClick(InnerButton, e);

}
}
/* protected virtual void OnStatusChanged(EventArgs e)
{
EventHandler eh = StatusChanged;
if (eh != null)
{
eh(this, e);
}
}

private void Button1_Click(object sender, EventArgs e)
{
OnStatusChanged(new EventArgs());
}*/
}
}

Then successfully usercontrol added with tool then code again in Form1

namespace test_CreatePannel
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private System.Windows.Forms.Button Button1;
private System.Windows.Forms.Button Button2;
private System.Windows.Forms.Button Button3;
private void userControl11_Load(object sender, EventArgs e)
{
label1.Text = "UserControl loaded";
}

private void InnerButton(object sender, EventArgs e)
{
label1.Text = "This is Clicked by inner Button";
}

private void btnAdd_Click_1(object sender, EventArgs e)
{
label1.Text = "This is Clicked by buttton Add";
}

}
}

Plz advice where write the code