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

Visual Basic

 
AnswerRe: VB6.0 Applicaiton OCX Control Dependency Pin
Dave Kreskowiak8-Jun-09 3:34
mveDave Kreskowiak8-Jun-09 3:34 
QuestionCreate a Brush object with defined/displayed color Pin
nishkarsh_k8-Jun-09 1:21
nishkarsh_k8-Jun-09 1:21 
AnswerRe: Create a Brush object with defined/displayed color Pin
JR2128-Jun-09 1:37
JR2128-Jun-09 1:37 
QuestionMessage Closed Pin
8-Jun-09 0:42
tiagu8-Jun-09 0:42 
AnswerRe: How to remove domainupdown control in vb.net Pin
DidiKunz8-Jun-09 1:18
DidiKunz8-Jun-09 1:18 
GeneralRe: How to remove domainupdown control in vb.net Pin
tiagu8-Jun-09 3:10
tiagu8-Jun-09 3:10 
GeneralRe: How to remove domainupdown control in vb.net Pin
DidiKunz8-Jun-09 4:17
DidiKunz8-Jun-09 4:17 
AnswerRe: How to remove domainupdown control in vb.net Pin
Johan Hakkesteegt8-Jun-09 3:15
Johan Hakkesteegt8-Jun-09 3:15 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            For Each c As Control In Me.Controls
                If TypeOf c Is TextBox Then
                    If c.Text.Length = 0 Then c.Dispose()
                End If
            Next
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Sub


Instead of checking for checkboxes you can also check for domainupdown, and any control.

In this example code, you can check what other options you can find behind c, if you want to apply some other logic.

My advice is free, and you may get what you paid for.

QuestionUnnecessarily opening of excel file vb.net Pin
Pankaj Garg8-Jun-09 0:41
Pankaj Garg8-Jun-09 0:41 
AnswerRe: Unnecessarily opening of excel file vb.net Pin
Anoop Brijmohun8-Jun-09 1:06
Anoop Brijmohun8-Jun-09 1:06 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
Pankaj Garg8-Jun-09 1:13
Pankaj Garg8-Jun-09 1:13 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
Dave Kreskowiak8-Jun-09 1:28
mveDave Kreskowiak8-Jun-09 1:28 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
Pankaj Garg8-Jun-09 1:43
Pankaj Garg8-Jun-09 1:43 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
Dave Kreskowiak8-Jun-09 3:06
mveDave Kreskowiak8-Jun-09 3:06 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
Pankaj Garg8-Jun-09 1:18
Pankaj Garg8-Jun-09 1:18 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
Anoop Brijmohun8-Jun-09 1:23
Anoop Brijmohun8-Jun-09 1:23 
GeneralRe: Unnecessarily opening of excel file vb.net Pin
EliottA8-Jun-09 5:31
EliottA8-Jun-09 5:31 
QuestionProblem in Crystal report using password? Pin
JC.KaNNaN7-Jun-09 23:07
JC.KaNNaN7-Jun-09 23:07 
AnswerRe: Problem in Crystal report using password? Pin
Skymir8-Jun-09 4:32
Skymir8-Jun-09 4:32 
AnswerRe: Problem in Crystal report using password? Pin
calvenyow12-Jun-09 17:01
calvenyow12-Jun-09 17:01 
Questionfiles names under a process - vb.net 2008 Pin
Pankaj Garg7-Jun-09 21:30
Pankaj Garg7-Jun-09 21:30 
AnswerRe: files names under a process - vb.net 2008 Pin
Christian Graus7-Jun-09 21:34
protectorChristian Graus7-Jun-09 21:34 
AnswerRe: files names under a process - vb.net 2008 Pin
Dave Kreskowiak8-Jun-09 1:26
mveDave Kreskowiak8-Jun-09 1:26 
GeneralRe: files names under a process - vb.net 2008 Pin
Pankaj Garg8-Jun-09 1:43
Pankaj Garg8-Jun-09 1:43 
AnswerRe: files names under a process - vb.net 2008 Pin
EliottA8-Jun-09 5:31
EliottA8-Jun-09 5:31 

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.