Click here to Skip to main content
16,018,818 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRegistry Entry (SaveSettings) Pin
Mtognetti5-Jul-05 10:35
Mtognetti5-Jul-05 10:35 
GeneralRe: Registry Entry (SaveSettings) Pin
Dave Kreskowiak6-Jul-05 2:59
mveDave Kreskowiak6-Jul-05 2:59 
GeneralRe: Registry Entry (SaveSettings) Pin
Anonymous6-Jul-05 8:24
Anonymous6-Jul-05 8:24 
GeneralSet folder permissions -- PLEASE HELP! Pin
spelltwister5-Jul-05 9:25
spelltwister5-Jul-05 9:25 
QuestionIs the IF statement the best choice for this? Pin
btoyer5-Jul-05 9:15
btoyer5-Jul-05 9:15 
AnswerRe: Is the IF statement the best choice for this? Pin
Anonymous5-Jul-05 9:29
Anonymous5-Jul-05 9:29 
GeneralErrorProvider: Clear ALL Pin
Brad Fackrell5-Jul-05 9:07
Brad Fackrell5-Jul-05 9:07 
GeneralRe: ErrorProvider: Clear ALL Pin
Anonymous5-Jul-05 11:26
Anonymous5-Jul-05 11:26 
No, but you could create your own,

This is what I use:

'--- hErrorProvider.vb -------

Public Class hErrorProvider
Inherits System.Windows.Forms.ErrorProvider

#Region " Component Designer generated code "

Public Sub New(ByVal Container As System.ComponentModel.IContainer)
MyClass.New()

'Required for Windows.Forms Class Composition Designer support
Container.Add(Me)
End Sub

Public Sub New()
MyBase.New()

'This call is required by the Component Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Component overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Component Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Component Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<system.diagnostics.debuggerstepthrough()> _
Private Sub InitializeComponent()
components = New System.ComponentModel.Container
End Sub

#End Region

Private _errorList As New ArrayList
Private _activeControl As Control

Public Shadows Sub SetError(ByVal control As Control, ByVal value As String)
If value = "" Then
If _errorList.Contains(control) Then
_errorList.Remove(control)
End If
Else
If Not _errorList.Contains(_errorList) Then
_errorList.Add(control)
End If
End If
MyBase.SetError(control, value)
End Sub

Public Shadows Sub SetError(ByVal value As String)
If _activeControl Is Nothing Then
Throw New Exception("Active control has not been set.")
End If

Call Me.SetError(_activeControl, value)
End Sub

Public Sub ClearError(ByVal control As Control)
If _errorList.Contains(control) Then
_errorList.Remove(control)
End If

MyBase.SetError(control, "")
End Sub

Public Sub ClearError()
If _activeControl Is Nothing Then
Throw New Exception("Active control has not been set.")
End If

Call Me.ClearError(_activeControl)
End Sub

Public Sub ClearAll()
For Each control As Control In _errorList
MyBase.SetError(control, "")
Next
_errorList.Clear()
End Sub

Public Function HasErrors() As Boolean
Return _errorList.Count > 0
End Function

End Class
QuestionStringFormat.Format16bppArgb1555 ? Pin
[Marc]5-Jul-05 8:36
[Marc]5-Jul-05 8:36 
AnswerI mean PixelFormat.Format16bppArgb1555 Pin
[Marc]5-Jul-05 16:23
[Marc]5-Jul-05 16:23 
QuestionHow to Share data b/t parent and child form ? Pin
Madni Abbasi5-Jul-05 3:51
Madni Abbasi5-Jul-05 3:51 
AnswerRe: How to Share data b/t parent and child form ? Pin
Dave Kreskowiak5-Jul-05 5:47
mveDave Kreskowiak5-Jul-05 5:47 
GeneralVBscript to output SQL stored procedure results Pin
brokenchode5-Jul-05 3:23
brokenchode5-Jul-05 3:23 
GeneralRe: VBscript to output SQL stored procedure results Pin
Dave Kreskowiak5-Jul-05 5:56
mveDave Kreskowiak5-Jul-05 5:56 
GeneralRe: VBscript to output SQL stored procedure results Pin
brokenchode5-Jul-05 9:09
brokenchode5-Jul-05 9:09 
QuestionHow to update from vb.net 2005 beta1 to beta2? Pin
rushing4-Jul-05 23:02
rushing4-Jul-05 23:02 
AnswerRe: How to update from vb.net 2005 beta1 to beta2? Pin
Christian Graus5-Jul-05 0:13
protectorChristian Graus5-Jul-05 0:13 
AnswerRe: How to update from vb.net 2005 beta1 to beta2? Pin
Dave Kreskowiak5-Jul-05 1:18
mveDave Kreskowiak5-Jul-05 1:18 
GeneralGetting windows XP login &amp; logout time Pin
Ilangovan4-Jul-05 21:06
Ilangovan4-Jul-05 21:06 
GeneralRe: Getting windows XP login &amp; logout time Pin
Dave Kreskowiak5-Jul-05 1:13
mveDave Kreskowiak5-Jul-05 1:13 
GeneralRe: Getting windows XP login &amp; logout time Pin
Anonymous5-Jul-05 5:46
Anonymous5-Jul-05 5:46 
GeneralRe: Getting windows XP login &amp; logout time Pin
Anonymous5-Jul-05 8:23
Anonymous5-Jul-05 8:23 
GeneralHelp Pin
Nguyen Dinh Quy4-Jul-05 20:42
Nguyen Dinh Quy4-Jul-05 20:42 
GeneralRe: Help Pin
Christian Graus5-Jul-05 0:16
protectorChristian Graus5-Jul-05 0:16 
GeneralMSMQ Pin
nitin_ion4-Jul-05 20:30
nitin_ion4-Jul-05 20:30 

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.