Click here to Skip to main content
15,878,049 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sql Linq, Adding a group Join or Join and performing Sums, I can't figure out the Join in VB Pin
jkirkerx18-Aug-15 6:37
professionaljkirkerx18-Aug-15 6:37 
QuestionExcel VBA read application CPU Usage Pin
Member 1191534517-Aug-15 8:24
Member 1191534517-Aug-15 8:24 
AnswerRe: Excel VBA read application CPU Usage Pin
Wendelius17-Aug-15 8:33
mentorWendelius17-Aug-15 8:33 
GeneralRe: Excel VBA read application CPU Usage Pin
Member 1191534517-Aug-15 9:14
Member 1191534517-Aug-15 9:14 
GeneralRe: Excel VBA read application CPU Usage Pin
Mycroft Holmes17-Aug-15 13:03
professionalMycroft Holmes17-Aug-15 13:03 
RantRe: Excel VBA read application CPU Usage Pin
Richard Deeming18-Aug-15 0:24
mveRichard Deeming18-Aug-15 0:24 
GeneralRe: Excel VBA read application CPU Usage Pin
Wendelius18-Aug-15 9:20
mentorWendelius18-Aug-15 9:20 
QuestionMenuItem question Pin
econy17-Aug-15 4:36
econy17-Aug-15 4:36 
VB
Public Class BaseForm
    Inherits System.Windows.Forms.Form
  ......
    Friend WithEvents MnuBaseFile As System.Windows.Forms.MenuItem
    Friend WithEvents MnuBaseWindow As System.Windows.Forms.MenuItem
    Friend WithEvents MnuBaseFileExit As System.Windows.Forms.MenuItem
....
For Each fp In My.Forms.GetType.GetProperties 
  If fp.Name = "BaseForm" Then
                For Each mnu As MenuItem In Me.Menu.MenuItems


Here I can get mnu.text = &File,
But mnu.Name = "", Nothing.

And I try to use the following block:
VB
 Dim fi As System.Reflection.FieldInfo() = bfType.GetFields(BindingFlags.NonPublic Or BindingFlags.Instance Or BindingFlags.DeclaredOnly)

For Each f As System.Reflection.FieldInfo In fi
    If (f.FieldType.Name.ToString() = "MenuItem") Then
       mnuNameStr = f.Name.Remove(0, 1)
    End If


Now I can get field's name, but I can't use field to set text for the menu.

How can I get a field's name, the Menuitem's name, then set the text for the Menuitem?
GeneralRe: MenuItem question Pin
Ralf Meier17-Aug-15 18:21
mveRalf Meier17-Aug-15 18:21 
GeneralRe: MenuItem question Pin
econy18-Aug-15 2:20
econy18-Aug-15 2:20 
GeneralRe: MenuItem question Pin
Ralf Meier18-Aug-15 5:06
mveRalf Meier18-Aug-15 5:06 
QuestionStoring Files inside SQL server database : Good or BAD idea ? Pin
satc15-Aug-15 5:25
satc15-Aug-15 5:25 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
PIEBALDconsult15-Aug-15 5:41
mvePIEBALDconsult15-Aug-15 5:41 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
satc15-Aug-15 6:36
satc15-Aug-15 6:36 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
PIEBALDconsult15-Aug-15 7:25
mvePIEBALDconsult15-Aug-15 7:25 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
satc15-Aug-15 7:49
satc15-Aug-15 7:49 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
PIEBALDconsult15-Aug-15 10:08
mvePIEBALDconsult15-Aug-15 10:08 
AnswerRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
Wendelius15-Aug-15 6:04
mentorWendelius15-Aug-15 6:04 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
satc15-Aug-15 6:38
satc15-Aug-15 6:38 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
Wendelius15-Aug-15 8:06
mentorWendelius15-Aug-15 8:06 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
Cimak66618-Aug-15 20:02
Cimak66618-Aug-15 20:02 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
satc19-Aug-15 1:43
satc19-Aug-15 1:43 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
Cimak66619-Aug-15 2:32
Cimak66619-Aug-15 2:32 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
satc19-Aug-15 2:37
satc19-Aug-15 2:37 
GeneralRe: Storing Files inside SQL server database : Good or BAD idea ? Pin
Cimak66619-Aug-15 3:59
Cimak66619-Aug-15 3:59 

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.