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

Visual Basic

 
QuestionRe: how to display the size of the camera sensor in vb.net Pin
Eddy Vluggen22-Nov-13 7:11
professionalEddy Vluggen22-Nov-13 7:11 
QuestionOverlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
jose mandurrino18-Nov-13 23:35
jose mandurrino18-Nov-13 23:35 
QuestionRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET Pin
Richard MacCutchan19-Nov-13 4:37
mveRichard MacCutchan19-Nov-13 4:37 
AnswerRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET Pin
jose mandurrino19-Nov-13 5:39
jose mandurrino19-Nov-13 5:39 
AnswerRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
Eddy Vluggen19-Nov-13 10:39
professionalEddy Vluggen19-Nov-13 10:39 
GeneralRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
jose mandurrino19-Nov-13 13:05
jose mandurrino19-Nov-13 13:05 
GeneralRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
Eddy Vluggen20-Nov-13 7:44
professionalEddy Vluggen20-Nov-13 7:44 
AnswerRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
TnTinMn19-Nov-13 13:06
TnTinMn19-Nov-13 13:06 
How about a different approach using an ErrorProvider[^]?

Public Class Form1
   Private err As New ErrorProvider
   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      err.Icon = My.Resources.warning ' you can change the icon to display if desired
   End Sub

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      If String.IsNullOrEmpty(TextBox1.Text) Then
         TextBox1.Focus()
         SetError(TextBox1, "please enter something")
      Else
         'do something
      End If
   End Sub

   Private Sub SetError(ByVal cntrl As Control, ByVal msg As String)
      err.SetError(cntrl, msg) ' displays err icon
      AddHandler cntrl.Validated, AddressOf ClearErr ' provide a handler to clear the error after leaving the control
   End Sub

   Private Sub ClearErr(ByVal sender As Object, ByVal e As System.EventArgs)
      Dim cntrl As Control = DirectCast(sender, Control)
      RemoveHandler cntrl.Validated, AddressOf ClearErr
      err.SetError(cntrl, String.Empty) ' setting the message to String.Empty clears the error
   End Sub
End Class

GeneralRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
jose mandurrino19-Nov-13 21:50
jose mandurrino19-Nov-13 21:50 
GeneralRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
TnTinMn21-Nov-13 13:38
TnTinMn21-Nov-13 13:38 
GeneralRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
jose mandurrino24-Nov-13 8:52
jose mandurrino24-Nov-13 8:52 
Questionzoom a big image with VB Pin
99117651518-Nov-13 22:09
99117651518-Nov-13 22:09 
AnswerRe: zoom a big image with VB Pin
Eddy Vluggen19-Nov-13 10:37
professionalEddy Vluggen19-Nov-13 10:37 
QuestionRe: zoom a big image with VB Pin
99117651519-Nov-13 14:32
99117651519-Nov-13 14:32 
AnswerRe: zoom a big image with VB Pin
Eddy Vluggen20-Nov-13 7:53
professionalEddy Vluggen20-Nov-13 7:53 
AnswerRe: zoom a big image with VB Pin
Bernhard Hiller19-Nov-13 22:12
Bernhard Hiller19-Nov-13 22:12 
QuestionSystem.Null Pin
Member 1040919918-Nov-13 4:21
Member 1040919918-Nov-13 4:21 
AnswerRe: System.Null Pin
Richard Deeming18-Nov-13 4:44
mveRichard Deeming18-Nov-13 4:44 
QuestionHow can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
superselector14-Nov-13 21:12
superselector14-Nov-13 21:12 
AnswerRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Mike Meinz16-Nov-13 3:09
Mike Meinz16-Nov-13 3:09 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Dave Kreskowiak16-Nov-13 3:18
mveDave Kreskowiak16-Nov-13 3:18 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Mycroft Holmes16-Nov-13 17:00
professionalMycroft Holmes16-Nov-13 17:00 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
superselector21-Nov-13 21:09
superselector21-Nov-13 21:09 
GeneralRe: How can i avoid my vbscript running in temp folder when converted to exe using iexpress wizard Pin
Mike Meinz22-Nov-13 1:21
Mike Meinz22-Nov-13 1:21 
QuestionSorting Gridview with Data from DataTable error Pin
Commish1314-Nov-13 5:11
professionalCommish1314-Nov-13 5:11 

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.