Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionftp/tcp for Windows CE 5.0 Pin
tclacla4-Dec-15 10:27
tclacla4-Dec-15 10:27 
AnswerRe: ftp/tcp for Windows CE 5.0 Pin
Garth J Lancaster4-Dec-15 12:01
professionalGarth J Lancaster4-Dec-15 12:01 
Questionhelp with linq query Pin
byka4-Dec-15 2:56
byka4-Dec-15 2:56 
AnswerRe: help with linq query Pin
Richard Deeming4-Dec-15 4:15
mveRichard Deeming4-Dec-15 4:15 
GeneralRe: help with linq query Pin
byka4-Dec-15 5:07
byka4-Dec-15 5:07 
GeneralRe: help with linq query Pin
Richard Deeming4-Dec-15 5:12
mveRichard Deeming4-Dec-15 5:12 
GeneralRe: help with linq query Pin
Garth J Lancaster4-Dec-15 11:58
professionalGarth J Lancaster4-Dec-15 11:58 
QuestionHiding Buttons based on ListView items (WinForm) Pin
dell-gl62m1-Dec-15 20:08
dell-gl62m1-Dec-15 20:08 
I have a ListView control inside my system where its content display different information based on different Button control. And information will only be displayed if the user have the right to view the information. This is filtered when they login into the system. So for example, the user is a student and he can only view information from Button1.Text, Button2.Text, Button5.Text and the rest button will result blank in ListView1.Text (because as I mentioned, they have no right to view certain information). So I want those button that isn't showing any information to become invisible.

The code that I currently use
VB
If ListView1.Items.Count > 0 Then
  For Each controls As Control In Panel1.Controls 'My buttons grouped in Panel1 and Panel2
    If TypeOf controls Is Button Then
      DirectCast(controls, Button).Visible = False
    End If
  Next
End If

But if I use this code, the whole Button will become invisible because all Buttons refer to the same ListView control. So how would I code it to make the ListView1.Text be able to recognize which Button it belonged to and make them invisible?
SuggestionRe: Hiding Buttons based on ListView items (WinForm) Pin
Richard MacCutchan1-Dec-15 22:07
mveRichard MacCutchan1-Dec-15 22:07 
QuestionCopy .exe file to desktop Pin
dell-gl62m29-Nov-15 15:24
dell-gl62m29-Nov-15 15:24 
AnswerRe: Copy .exe file to desktop Pin
Mycroft Holmes29-Nov-15 19:24
professionalMycroft Holmes29-Nov-15 19:24 
AnswerRe: Copy .exe file to desktop Pin
Richard MacCutchan29-Nov-15 22:26
mveRichard MacCutchan29-Nov-15 22:26 
AnswerRe: Copy .exe file to desktop Pin
Dave Kreskowiak30-Nov-15 5:12
mveDave Kreskowiak30-Nov-15 5:12 
GeneralRe: Copy .exe file to desktop Pin
Mycroft Holmes30-Nov-15 12:09
professionalMycroft Holmes30-Nov-15 12:09 
GeneralRe: Copy .exe file to desktop Pin
Dave Kreskowiak30-Nov-15 14:43
mveDave Kreskowiak30-Nov-15 14:43 
GeneralRe: Copy .exe file to desktop Pin
dell-gl62m30-Nov-15 16:52
dell-gl62m30-Nov-15 16:52 
GeneralRe: Copy .exe file to desktop Pin
Dave Kreskowiak30-Nov-15 16:54
mveDave Kreskowiak30-Nov-15 16:54 
GeneralRe: Copy .exe file to desktop Pin
dell-gl62m30-Nov-15 17:13
dell-gl62m30-Nov-15 17:13 
GeneralRe: Copy .exe file to desktop Pin
Dave Kreskowiak30-Nov-15 17:58
mveDave Kreskowiak30-Nov-15 17:58 
GeneralRe: Copy .exe file to desktop Pin
dell-gl62m30-Nov-15 18:37
dell-gl62m30-Nov-15 18:37 
GeneralRe: Copy .exe file to desktop Pin
Richard Deeming30-Nov-15 23:17
mveRichard Deeming30-Nov-15 23:17 
GeneralRe: Copy .exe file to desktop Pin
Dave Kreskowiak1-Dec-15 1:33
mveDave Kreskowiak1-Dec-15 1:33 
AnswerRe: Copy .exe file to desktop Pin
Amarnath S1-Dec-15 2:45
professionalAmarnath S1-Dec-15 2:45 
GeneralRe: Copy .exe file to desktop Pin
Dave Kreskowiak1-Dec-15 4:01
mveDave Kreskowiak1-Dec-15 4:01 
QuestionWhile return CMDIChildWndEx::DestroyWindow(); taking time Pin
Member 1189107024-Nov-15 18:25
Member 1189107024-Nov-15 18:25 

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.