Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved Visual Basic
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tiagu
    wrote on last edited by
    #1

    [Message Deleted]

    D J 2 Replies Last reply
    0
    • T tiagu

      [Message Deleted]

      D Offline
      D Offline
      DidiKunz
      wrote on last edited by
      #2

      why would you want to remove it? I rather hide it YourDomainUpDown.Visible = False Regards: Didi

      T 1 Reply Last reply
      0
      • D DidiKunz

        why would you want to remove it? I rather hide it YourDomainUpDown.Visible = False Regards: Didi

        T Offline
        T Offline
        tiagu
        wrote on last edited by
        #3

        Didi, Thanks for the falsifying visible code.   I want to remove it because a few domainupdown controls may not be filled with values at runtime.   I want to do away with these controls alone which do not contain any values.   Can they be removed ?

        D 1 Reply Last reply
        0
        • T tiagu

          [Message Deleted]

          J Offline
          J Offline
          Johan Hakkesteegt
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • T tiagu

            Didi, Thanks for the falsifying visible code.   I want to remove it because a few domainupdown controls may not be filled with values at runtime.   I want to do away with these controls alone which do not contain any values.   Can they be removed ?

            D Offline
            D Offline
            DidiKunz
            wrote on last edited by
            #5

            ...you have got your answer, see post of Johan Hakkesteegt below. Good luck: Didi

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups