Click here to Skip to main content
15,889,595 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralFormless application's icon Pin
Pablo.ar7-Dec-04 13:30
Pablo.ar7-Dec-04 13:30 
GeneralRe: Formless application's icon Pin
The Man from U.N.C.L.E.8-Dec-04 3:02
The Man from U.N.C.L.E.8-Dec-04 3:02 
GeneralRe: Formless application's icon Pin
Pablo.ar8-Dec-04 8:55
Pablo.ar8-Dec-04 8:55 
GeneralRe: Formless application's icon Pin
The Man from U.N.C.L.E.10-Dec-04 0:48
The Man from U.N.C.L.E.10-Dec-04 0:48 
GeneralFormat a Row in DataGrid Pin
m_dhakshna7-Dec-04 10:25
m_dhakshna7-Dec-04 10:25 
GeneralRe: Format a Row in DataGrid Pin
Pablo.ar7-Dec-04 13:16
Pablo.ar7-Dec-04 13:16 
GeneralRe: Format a Row in DataGrid Pin
Anonymous7-Dec-04 16:30
Anonymous7-Dec-04 16:30 
QuestionSingleton Strongly-Typed Dataset? Pin
Mark Farmiloe7-Dec-04 7:14
Mark Farmiloe7-Dec-04 7:14 
I appreciate the convenience of adding a dataset 'control' to my forms, but I would like to only have one set of this data in my app, not one set per form.
But if I reset the form dataset to point at the 'global' dataset, then I have to redo all the binding, which seems not only a bit of a drag, but also an indication that there must be a better way.
I have sort of achieved a singleton dataset using the following code, but I have hardly tested it and I'm not at all sure whether this is the correct way to go. So I thought I'd ask the gurus out there...

Imports System
Imports System.Data
Imports System.Runtime.Serialization
Imports System.Xml

<serializable(), system.componentmodel.designercategoryattribute("code"),=""
system.diagnostics.debuggerstepthrough(),="" system.componentmodel.toolboxitem(true)=""> _
Public Class SingletondsPop
Inherits dsPop 'My strongly-typed dataset (dsPop.xsd)

Private Shared mdsPop As dsPop

Public Shared ReadOnly Property dsPop() As dsPop
Get
Return mdsPop
End Get
End Property

Shared Sub New()
If mdsPop Is Nothing Then
mdsPop = New dsPop
End If
End Sub
End Class
GeneralKeypress mimic Mouse click Pin
TAlvord7-Dec-04 5:59
TAlvord7-Dec-04 5:59 
GeneralReading/Writing large files Pin
Zenly7-Dec-04 1:45
Zenly7-Dec-04 1:45 
GeneralRe: Reading/Writing large files Pin
Dave Kreskowiak7-Dec-04 3:52
mveDave Kreskowiak7-Dec-04 3:52 
GeneralRe: Reading/Writing large files Pin
Zenly7-Dec-04 5:12
Zenly7-Dec-04 5:12 
GeneralRe: Reading/Writing large files Pin
Dave Kreskowiak7-Dec-04 5:51
mveDave Kreskowiak7-Dec-04 5:51 
GeneralRe: Reading/Writing large files Pin
Zenly7-Dec-04 6:40
Zenly7-Dec-04 6:40 
GeneralUrgent - ThreadPool Pin
cwayman7-Dec-04 0:27
cwayman7-Dec-04 0:27 
GeneralHANDLES - Windows Messages Pin
rdges6-Dec-04 22:42
rdges6-Dec-04 22:42 
GeneralHelp required with Regular Expressions Pin
vbvjain6-Dec-04 18:52
vbvjain6-Dec-04 18:52 
QuestionMain Menu Bar Color? Pin
Sumit Domyan6-Dec-04 18:00
Sumit Domyan6-Dec-04 18:00 
AnswerRe: Main Menu Bar Color? Pin
Dave Kreskowiak7-Dec-04 5:56
mveDave Kreskowiak7-Dec-04 5:56 
GeneralAuto-scroll ListView Pin
xshi0056-Dec-04 16:48
xshi0056-Dec-04 16:48 
GeneralRe: Auto-scroll ListView Pin
Pablo.ar7-Dec-04 0:54
Pablo.ar7-Dec-04 0:54 
GeneralRe: Auto-scroll ListView Pin
xshi0057-Dec-04 9:05
xshi0057-Dec-04 9:05 
GeneralRe: Auto-scroll ListView Pin
Pablo.ar7-Dec-04 9:18
Pablo.ar7-Dec-04 9:18 
GeneralRe: Auto-scroll ListView Pin
xshi0057-Dec-04 9:45
xshi0057-Dec-04 9:45 
GeneralRe: Auto-scroll ListView Pin
Pablo.ar7-Dec-04 13:06
Pablo.ar7-Dec-04 13:06 

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.