Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.
Private Sub Disablemenus() Dim cnn As New SqlConnection(My.Settings.mycString) Dim cmd As New SqlCommand Dim dr2 As SqlDataReader ' Dim cmenuname As ToolStripMenuItem cnn.Open() cmd.Connection = cnn cmd.CommandType = CommandType.Text cmd.CommandText = "select MenuName from table1 where Allowed=0)" dr2 = cmd.ExecuteReader Do While dr2.Read = True 'disable the menu Loop End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Tempdb Contention - SQL SERVER||10||35|
|Does INTERSECT return opposite from FULL OUTER JOIN?||4||32|
|Intermittent OleDbConnection Error||20||42|
|Delete duplicates from SQL Server table||2||15|