Click here to Skip to main content
15,896,348 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to work with Collection in VB6? Pin
Paul Conrad26-Dec-07 7:43
professionalPaul Conrad26-Dec-07 7:43 
AnswerRe: How to work with Collection in VB6? Pin
Dave Kreskowiak26-Dec-07 8:08
mveDave Kreskowiak26-Dec-07 8:08 
GeneralRe: How to work with Collection in VB6? Pin
suguimoto26-Dec-07 8:55
suguimoto26-Dec-07 8:55 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak26-Dec-07 9:05
mveDave Kreskowiak26-Dec-07 9:05 
GeneralRe: How to work with Collection in VB6? [modified] Pin
suguimoto26-Dec-07 23:44
suguimoto26-Dec-07 23:44 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak27-Dec-07 5:09
mveDave Kreskowiak27-Dec-07 5:09 
QuestionInstance of existing form and control manipulation Pin
Adnan Siddiqi26-Dec-07 6:21
Adnan Siddiqi26-Dec-07 6:21 
GeneralRe: Instance of existing form and control manipulation Pin
Dave Kreskowiak26-Dec-07 8:13
mveDave Kreskowiak26-Dec-07 8:13 
You've got a very bad design going.

You would have to pass these methods references to the forms that they would manipulate.

But, by doing so, you're completely trashing any and all concepts related to OOP and encapsulation of functionality.

No module should ever care about anything that is outside of its scope. Meaning, a method in a module shouldn't care that a form is using it. It shouldn't care about, nor use, the controls on any forms.

Forms should not be manipluating controls on other forms. Your forms should be exposing methods, and using other means, to tell themselves what to do to manipulate their own controls. This means your data model must support subscribers to events that you create, telling those subscribers that the data has changed. It's up to the subscribers to modify themselves in response to changes in the data.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralDataGridViewTextBoxEditingControl Pin
helelark12326-Dec-07 4:54
helelark12326-Dec-07 4:54 
GeneralRe: DataGridViewTextBoxEditingControl Pin
Dave Kreskowiak26-Dec-07 6:56
mveDave Kreskowiak26-Dec-07 6:56 
QuestionStoring PDF text unicode to database Pin
praabhu_p26-Dec-07 0:22
praabhu_p26-Dec-07 0:22 
GeneralRe: Storing PDF text unicode to database Pin
Dave Kreskowiak26-Dec-07 4:02
mveDave Kreskowiak26-Dec-07 4:02 
GeneralHRESULT : 0x80040202 in OPC Client OnDataChange handler. Pin
Prashant Khonde25-Dec-07 23:42
Prashant Khonde25-Dec-07 23:42 
GeneralRe: HRESULT : 0x80040202 in OPC Client OnDataChange handler. Pin
Dave Kreskowiak26-Dec-07 3:58
mveDave Kreskowiak26-Dec-07 3:58 
GeneralRe: HRESULT : 0x80040202 in OPC Client OnDataChange handler. Pin
Prashant Khonde27-Dec-07 2:23
Prashant Khonde27-Dec-07 2:23 
QuestionHow to import data by character wise from excel to sql server Pin
kamarudeen25-Dec-07 23:36
kamarudeen25-Dec-07 23:36 
AnswerRe: How to import data by character wise from excel to sql server Pin
Dave Kreskowiak26-Dec-07 3:44
mveDave Kreskowiak26-Dec-07 3:44 
AnswerRe: How to import data by character wise from excel to sql server Pin
Paul Conrad30-Dec-07 10:47
professionalPaul Conrad30-Dec-07 10:47 
GeneralDataGridView: Add combobox Pin
nishkarsh_k25-Dec-07 23:05
nishkarsh_k25-Dec-07 23:05 
GeneralRe: DataGridView: Add combobox Pin
helelark12326-Dec-07 5:01
helelark12326-Dec-07 5:01 
GeneralRe: DataGridView: Add combobox Pin
nishkarsh_k26-Dec-07 17:33
nishkarsh_k26-Dec-07 17:33 
GeneralRe: DataGridView: Add combobox Pin
helelark12326-Dec-07 18:54
helelark12326-Dec-07 18:54 
GeneralRe: DataGridView: Add combobox Pin
nishkarsh_k26-Dec-07 23:19
nishkarsh_k26-Dec-07 23:19 
QuestionHow to save data from datatable to database using vb.net Pin
Eunice (VB junior)25-Dec-07 21:15
Eunice (VB junior)25-Dec-07 21:15 
AnswerRe: How to save data from datatable to database using vb.net Pin
Dave Kreskowiak26-Dec-07 8:28
mveDave Kreskowiak26-Dec-07 8:28 

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.