Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataGrid Column Resize Pin
Dave Kreskowiak27-Apr-05 1:27
mveDave Kreskowiak27-Apr-05 1:27 
GeneralRe: DataGrid Column Resize Pin
nitin_ion27-Apr-05 2:02
nitin_ion27-Apr-05 2:02 
Generalhaving a problem using addnew method Pin
vaiology24-Apr-05 20:09
vaiology24-Apr-05 20:09 
GeneralRe: having a problem using addnew method Pin
numbrel25-Apr-05 3:47
numbrel25-Apr-05 3:47 
GeneralRe: having a problem using addnew method Pin
vaiology9-May-05 17:25
vaiology9-May-05 17:25 
QuestionService or Application??? Pin
RoyRose7824-Apr-05 10:19
RoyRose7824-Apr-05 10:19 
AnswerRe: Service or Application??? Pin
Dave Kreskowiak24-Apr-05 16:14
mveDave Kreskowiak24-Apr-05 16:14 
QuestionIs this bad practice? Pin
Len Miller24-Apr-05 8:14
Len Miller24-Apr-05 8:14 
I am creating an MDI database-driven app in WinForms (VB .NET 2003).

There are many objects that I would like to have available / around to all child forms for the life of the application:

- DatabaseProviderFactory
- Connection String
- ResourceManager object
- A custom message handler object
- etc,etc.

I figured during the mainform (MDI) load, I would create / instantiate these objects and put them in public shared properties of the main form. The child forms would reference the main form properties for their objects.

Is this considered "bad practice"? Is there a better way to do this?


Thanks,
-Len Miller

"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
AnswerRe: Is this bad practice? Pin
Steven Campbell25-Apr-05 6:29
Steven Campbell25-Apr-05 6:29 
GeneralRe: Is this bad practice? Pin
Len Miller25-Apr-05 9:27
Len Miller25-Apr-05 9:27 
GeneralEditing a text file from vb Pin
ADY00724-Apr-05 7:53
ADY00724-Apr-05 7:53 
GeneralRe: Editing a text file from vb Pin
Len Miller24-Apr-05 9:16
Len Miller24-Apr-05 9:16 
GeneralOffline files and HSM Pin
Zenly24-Apr-05 4:36
Zenly24-Apr-05 4:36 
GeneralRe: Offline files and HSM Pin
Dave Kreskowiak24-Apr-05 5:17
mveDave Kreskowiak24-Apr-05 5:17 
GeneralRe: Offline files and HSM Pin
progload24-Apr-05 6:10
progload24-Apr-05 6:10 
GeneralRe: Offline files and HSM Pin
Zenly24-Apr-05 13:37
Zenly24-Apr-05 13:37 
GeneralRe: Offline files and HSM Pin
progload24-Apr-05 14:02
progload24-Apr-05 14:02 
GeneralRe: Offline files and HSM Pin
progload24-Apr-05 14:34
progload24-Apr-05 14:34 
GeneralRe: Offline files and HSM Pin
Dave Kreskowiak24-Apr-05 16:49
mveDave Kreskowiak24-Apr-05 16:49 
GeneralRe: Offline files and HSM Pin
Zenly25-Apr-05 1:54
Zenly25-Apr-05 1:54 
GeneralRe: Offline files and HSM Pin
Dave Kreskowiak25-Apr-05 2:08
mveDave Kreskowiak25-Apr-05 2:08 
GeneralRe: Offline files and HSM Pin
Zenly25-Apr-05 5:20
Zenly25-Apr-05 5:20 
GeneralConvert image into binary Pin
Nana8124-Apr-05 0:19
Nana8124-Apr-05 0:19 
GeneralRe: Convert image into binary Pin
Christian in a nice hotel in Singapore24-Apr-05 0:26
sussChristian in a nice hotel in Singapore24-Apr-05 0:26 
GeneralRe: Convert image into binary Pin
Dave Kreskowiak24-Apr-05 5:01
mveDave Kreskowiak24-Apr-05 5:01 

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.