Click here to Skip to main content
15,909,586 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Moving from Web Development to Windows Pin
Dave Kreskowiak13-Sep-05 8:46
mveDave Kreskowiak13-Sep-05 8:46 
QuestionReturn the filename of an image in a picturebox Pin
smith342113-Sep-05 5:43
smith342113-Sep-05 5:43 
AnswerRe: Return the filename of an image in a picturebox Pin
Dave Kreskowiak13-Sep-05 5:58
mveDave Kreskowiak13-Sep-05 5:58 
QuestionFinding my mummy Pin
Mark0613-Sep-05 1:27
Mark0613-Sep-05 1:27 
AnswerRe: Finding my mummy Pin
Dave Kreskowiak13-Sep-05 4:22
mveDave Kreskowiak13-Sep-05 4:22 
GeneralRe: Finding my mummy Pin
Mark0613-Sep-05 5:58
Mark0613-Sep-05 5:58 
GeneralRe: Finding my mummy Pin
Dave Kreskowiak13-Sep-05 6:26
mveDave Kreskowiak13-Sep-05 6:26 
GeneralRe: Finding my mummy Pin
Mark0613-Sep-05 10:42
Mark0613-Sep-05 10:42 
Thankyou for replying Dave. This is turning into a very interesting discussion. You are correct in your initial statement. I can see its a very bad way of programming, but also a very simple way of getting a job done quickly.

Your right, creating a class to encapsulate the data would be perfect. But this is triggered by an event within tabpage2, ie: its own activation. Primarily because its hidden until the user clicks on its tab.

What if the trigger occurred somewhere else?

Lets imagine for a moment that they are not tabpages, but infact child windows, side by side, within an mdi form.

The user fills in a value into a textbox in childwindow1. But childwindow2 is still visible on the screen, next to childwindow1.

There's no event triggered within childwindow2, so therefore its textbox will not refresh with the new data.

If each childwindow knew who its parent was, childwindow1 could raise an event and cause a cascading situation until childwindow2 got updated. But that could get very messy.

Maybe a timer in childwindow2 to check the class for any changes? Again, horrible and messy.

This still returns to my original question. If a child is not aware of any other siblings and their events, its only link is the parent?

Look forward to your reply.

Andy



GeneralRe: Finding my mummy Pin
Beaniiman13-Sep-05 12:05
Beaniiman13-Sep-05 12:05 
GeneralRe: Finding my mummy Pin
Dave Kreskowiak13-Sep-05 12:44
mveDave Kreskowiak13-Sep-05 12:44 
GeneralRe: Finding my mummy Pin
Mark0613-Sep-05 13:17
Mark0613-Sep-05 13:17 
QuestionVBNET, mysql and time field error Pin
ecentinela13-Sep-05 0:41
ecentinela13-Sep-05 0:41 
AnswerRe: VBNET, mysql and time field error Pin
ecentinela13-Sep-05 1:50
ecentinela13-Sep-05 1:50 
QuestionDisable User Control Pin
mcgann12-Sep-05 22:58
mcgann12-Sep-05 22:58 
AnswerRe: Disable User Control Pin
enjoycrack13-Sep-05 0:03
enjoycrack13-Sep-05 0:03 
GeneralRe: Disable User Control Pin
mcgann13-Sep-05 2:07
mcgann13-Sep-05 2:07 
GeneralRe: Disable User Control Pin
enjoycrack13-Sep-05 21:51
enjoycrack13-Sep-05 21:51 
GeneralRe: Disable User Control Pin
mcgann13-Sep-05 22:49
mcgann13-Sep-05 22:49 
QuestionAudio Format Conversion Pin
Mr. Naveed Butt12-Sep-05 21:09
professionalMr. Naveed Butt12-Sep-05 21:09 
AnswerRe: Audio Format Conversion Pin
enjoycrack13-Sep-05 0:14
enjoycrack13-Sep-05 0:14 
AnswerRe: Audio Format Conversion Pin
jmachacek13-Oct-05 4:46
jmachacek13-Oct-05 4:46 
QuestionBarcode Reading in VB Pin
kk.tvm12-Sep-05 21:00
kk.tvm12-Sep-05 21:00 
AnswerRe: Barcode Reading in VB Pin
Dave Kreskowiak13-Sep-05 2:40
mveDave Kreskowiak13-Sep-05 2:40 
QuestionCreating Word/Excel files in VB Pin
kk.tvm12-Sep-05 20:58
kk.tvm12-Sep-05 20:58 
AnswerRe: Creating Word/Excel files in VB Pin
Mark0613-Sep-05 4:18
Mark0613-Sep-05 4:18 

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.