Click here to Skip to main content
15,352,488 members
Home / Discussions / C#
   

C#

 
QuestionRe: Generate Textbox on runtime Pin
Richard MacCutchan9-Mar-22 23:38
mveRichard MacCutchan9-Mar-22 23:38 
AnswerRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 0:23
MemberSaim Ullah 202110-Mar-22 0:23 
GeneralRe: Generate Textbox on runtime Pin
Richard MacCutchan10-Mar-22 0:31
mveRichard MacCutchan10-Mar-22 0:31 
GeneralRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 0:41
MemberSaim Ullah 202110-Mar-22 0:41 
GeneralRe: Generate Textbox on runtime Pin
Richard MacCutchan10-Mar-22 0:45
mveRichard MacCutchan10-Mar-22 0:45 
AnswerRe: Generate Textbox on runtime Pin
OriginalGriff10-Mar-22 0:12
mveOriginalGriff10-Mar-22 0:12 
GeneralRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 0:34
MemberSaim Ullah 202110-Mar-22 0:34 
GeneralRe: Generate Textbox on runtime Pin
OriginalGriff10-Mar-22 1:08
mveOriginalGriff10-Mar-22 1:08 
If you use the debug they you either know it is the pnlTextbox that is null, it's Controls collection that is null, or the txt is null.

So take that knowledge back to the debugger, and look at where those values are set - i.e. where they become null - to start looking at why.
Debuggers don't fix code, they let you gather information on why it's wrong, and that lets you fix it.

Saying "this is null" is a symptom, not the disease - and you don't treat symptoms when the disease is what's killing you!

And we can't do that for you - we just don't have any way to run your code under the same circumstances!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 7:59
MemberSaim Ullah 202110-Mar-22 7:59 
AnswerRe: Generate Textbox on runtime Pin
RedDk10-Mar-22 8:26
MemberRedDk10-Mar-22 8:26 
GeneralRe: Generate Textbox on runtime Pin
Richard MacCutchan10-Mar-22 22:21
mveRichard MacCutchan10-Mar-22 22:21 
GeneralRe: Generate Textbox on runtime Pin
RedDk11-Mar-22 8:06
MemberRedDk11-Mar-22 8:06 
QuestionC# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 5:03
mveBillWoodruff8-Mar-22 5:03 
AnswerRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Pete O'Hanlon8-Mar-22 5:24
mvaPete O'Hanlon8-Mar-22 5:24 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 6:27
mveBillWoodruff8-Mar-22 6:27 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Pete O'Hanlon8-Mar-22 20:42
mvaPete O'Hanlon8-Mar-22 20:42 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 21:19
mveBillWoodruff8-Mar-22 21:19 
AnswerRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Richard Deeming8-Mar-22 21:49
mveRichard Deeming8-Mar-22 21:49 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 22:08
mveBillWoodruff8-Mar-22 22:08 
AnswerRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Randor 9-Mar-22 9:05
professional Randor 9-Mar-22 9:05 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff9-Mar-22 9:29
mveBillWoodruff9-Mar-22 9:29 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Randor 9-Mar-22 9:36
professional Randor 9-Mar-22 9:36 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff9-Mar-22 22:00
mveBillWoodruff9-Mar-22 22:00 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Randor 9-Mar-22 22:56
professional Randor 9-Mar-22 22:56 
Answersolved thanks to Randor ... but, it's a kinky one ! Pin
BillWoodruff10-Mar-22 3:23
mveBillWoodruff10-Mar-22 3:23 

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.