Click here to Skip to main content
15,671,219 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
Richard Deeming9-Jan-23 0:45
mveRichard Deeming9-Jan-23 0:45 
GeneralRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
BillWoodruff9-Jan-23 2:10
professionalBillWoodruff9-Jan-23 2:10 
GeneralRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
Richard Deeming9-Jan-23 2:26
mveRichard Deeming9-Jan-23 2:26 
GeneralRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
BillWoodruff9-Jan-23 2:42
professionalBillWoodruff9-Jan-23 2:42 
AnswerRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
OriginalGriff8-Jan-23 22:19
mvaOriginalGriff8-Jan-23 22:19 
GeneralRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
BillWoodruff9-Jan-23 0:38
professionalBillWoodruff9-Jan-23 0:38 
AnswerRe: problem using ... "nested" DLL's ... a DLL referenced inside another DLL ? Pin
BillWoodruff9-Jan-23 2:55
professionalBillWoodruff9-Jan-23 2:55 
QuestionInsert data on dynamic textbox windows form C# Pin
Hoang Luc2-Jan-23 17:48
Hoang Luc2-Jan-23 17:48 
i create dynamic textbox and button save app windows form, but i can't insert data to dynamic textbox after i create event button click save
private void Createtextbox()
{
TextBox textboxUsername = new TextBox();
textboxUsername.Location = new Point(420, 50);
textboxUsername.Size = new Size(500, 30);
textboxUsername.Name = "text_user";
System.Web.UI.WebControls.RequiredFieldValidator rq = new System.Web.UI.WebControls.RequiredFieldValidator();
rq.ErrorMessage = "Error is for Dynamic Control";
rq.BorderColor = Color.Red;
rq.ControlToValidate = "DynControl";
this.Controls.Add(textboxUsername);

TextBox textboxPassword = new TextBox();
textboxPassword.Location = new Point(420, 80);
textboxPassword.Size = new Size(500, 30);
textboxPassword.Name = "text_pass";
this.Controls.Add(textboxPassword);

TextBox textboxMail = new TextBox();
textboxMail.Location = new Point(420, 110);
textboxMail.Size = new Size(500, 30);
textboxMail.Name = "text_mail";
this.Controls.Add(textboxMail);

Button btnSave = new Button();
btnSave.Location = new Point(420, 150);
btnSave.Name = "Submit";
btnSave.Size = new Size(80, 26);
btnSave.Click += new EventHandler(btnSave_Click);
this.Controls.Add(btnSave);

}

private void btnSave_Click(object sender, EventArgs e)
{

try
{

if (this.ValidateChildren())
{
//Here the form is in valid state
//Do what you need when the form is valid
TextBox textboxUsername = (TextBox)sender;// textboxUsername not instal

}
else
{

var listOfErrors = this.errorProvider1.ContainerControl.Controls.Cast<Control>()
.Select(c => this.errorProvider1.GetError(c))
.Where(s => !string.IsNullOrEmpty(s))
.ToList();


}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

}
AnswerRe: Insert data on dynamic textbox windows form C# Pin
OriginalGriff2-Jan-23 18:50
mvaOriginalGriff2-Jan-23 18:50 
SuggestionRe: Insert data on dynamic textbox windows form C# Pin
Richard Deeming4-Jan-23 23:50
mveRichard Deeming4-Jan-23 23:50 
QuestionSecuring a Named Pipe Pin
Richard Andrew x641-Jan-23 6:13
professionalRichard Andrew x641-Jan-23 6:13 
AnswerRe: Securing a Named Pipe Pin
BillWoodruff2-Jan-23 0:46
professionalBillWoodruff2-Jan-23 0:46 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x642-Jan-23 0:54
professionalRichard Andrew x642-Jan-23 0:54 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x642-Jan-23 1:56
professionalRichard Andrew x642-Jan-23 1:56 
AnswerRe: Securing a Named Pipe Pin
Graeme_Grant2-Jan-23 5:07
mvaGraeme_Grant2-Jan-23 5:07 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x642-Jan-23 5:56
professionalRichard Andrew x642-Jan-23 5:56 
GeneralRe: Securing a Named Pipe Pin
Gerry Schmitz2-Jan-23 6:47
mveGerry Schmitz2-Jan-23 6:47 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x642-Jan-23 8:59
professionalRichard Andrew x642-Jan-23 8:59 
GeneralRe: Securing a Named Pipe Pin
jschell2-Jan-23 13:25
jschell2-Jan-23 13:25 
GeneralRe: Securing a Named Pipe Pin
Graeme_Grant2-Jan-23 14:54
mvaGraeme_Grant2-Jan-23 14:54 
AnswerRe: Securing a Named Pipe Pin
Randor 2-Jan-23 8:56
professional Randor 2-Jan-23 8:56 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x642-Jan-23 9:08
professionalRichard Andrew x642-Jan-23 9:08 
GeneralRe: Securing a Named Pipe Pin
Randor 2-Jan-23 9:54
professional Randor 2-Jan-23 9:54 
SuggestionRe: Securing a Named Pipe Pin
Eddy Vluggen2-Jan-23 10:45
professionalEddy Vluggen2-Jan-23 10:45 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x642-Jan-23 12:37
professionalRichard Andrew x642-Jan-23 12:37 

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.