Click here to Skip to main content
15,908,111 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Opinions about user identification in multi-tier environment Pin
Wendelius29-Sep-08 3:53
mentorWendelius29-Sep-08 3:53 
QuestionObject Databases, Non Volatile RAM and Far Caches Pin
FrankSzendzielarz17-Sep-08 3:12
FrankSzendzielarz17-Sep-08 3:12 
Questionsub routines Pin
CodingYoshi16-Sep-08 4:40
CodingYoshi16-Sep-08 4:40 
AnswerRe: sub routines Pin
Pete O'Hanlon16-Sep-08 12:05
mvePete O'Hanlon16-Sep-08 12:05 
AnswerRe: sub routines Pin
Paul Conrad16-Sep-08 12:30
professionalPaul Conrad16-Sep-08 12:30 
GeneralRe: sub routines Pin
CodingYoshi22-Sep-08 13:04
CodingYoshi22-Sep-08 13:04 
QuestionDetecting analog pulses in Software Pin
JohnnyG11-Sep-08 14:20
JohnnyG11-Sep-08 14:20 
QuestionClearing controls Pin
CodingYoshi5-Sep-08 6:26
CodingYoshi5-Sep-08 6:26 
I have a form which is used for data entry and then data is saved by pressing a button. I load numerous controls in the load event of the form. When user saves, I just hide the form so I do not have to load all the data again when user I show the form again. This also means I have to clear all the controls for the next time the form is shown.

I am using events of controls to change properties of classes I have. For example, in textchanged event of textbox I might have something like: employee.Name = TextBox1.Text where employee is an object. However, when I hide the form I have to clear the text box which causes the text changed event. I can have a boolean variable (something like cleaningUp) set to true during hiding of the form. If this variable is set to true then it will exit the text changed event handler. Alternatively, I can also remove the handler for text box before I clear it up and then rewire it. This is a lot of work with a form which has many controls.

What am I doing wrong? Is there a better way of accomplishing my task?
AnswerRe: Clearing controls Pin
led mike5-Sep-08 7:10
led mike5-Sep-08 7:10 
GeneralRe: Clearing controls Pin
CodingYoshi5-Sep-08 7:34
CodingYoshi5-Sep-08 7:34 
GeneralRe: Clearing controls Pin
led mike5-Sep-08 7:44
led mike5-Sep-08 7:44 
GeneralRe: Clearing controls Pin
Ray Cassick18-Sep-08 19:42
Ray Cassick18-Sep-08 19:42 
GeneralRe: Clearing controls Pin
led mike22-Sep-08 6:46
led mike22-Sep-08 6:46 
GeneralRe: Clearing controls Pin
Paul Conrad5-Sep-08 8:59
professionalPaul Conrad5-Sep-08 8:59 
AnswerRe: Clearing controls Pin
Leslie Sanford13-Sep-08 17:40
Leslie Sanford13-Sep-08 17:40 
AnswerRe: Clearing controls Pin
darkelv24-Sep-08 4:56
darkelv24-Sep-08 4:56 
Questioncreating VB.NET project to use C++ source code Pin
theBulldog_312-Sep-08 10:57
theBulldog_312-Sep-08 10:57 
AnswerRe: creating VB.NET project to use C++ source code Pin
Paul Conrad2-Sep-08 19:10
professionalPaul Conrad2-Sep-08 19:10 
AnswerRe: creating VB.NET project to use C++ source code Pin
Ju@ncho11-Sep-08 8:40
Ju@ncho11-Sep-08 8:40 
Questionfrom c pointer function to good object design Pin
mp3butcher2-Sep-08 5:14
mp3butcher2-Sep-08 5:14 
GeneralRe: from c pointer function to good object design Pin
led mike2-Sep-08 5:23
led mike2-Sep-08 5:23 
GeneralRe: from c pointer function to good object design Pin
mp3butcher2-Sep-08 5:53
mp3butcher2-Sep-08 5:53 
GeneralRe: from c pointer function to good object design Pin
led mike2-Sep-08 6:37
led mike2-Sep-08 6:37 
General[Message Deleted] Pin
mp3butcher2-Sep-08 22:10
mp3butcher2-Sep-08 22:10 
General[Message Deleted] Pin
mp3butcher2-Sep-08 22:38
mp3butcher2-Sep-08 22:38 

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.