gettype returns nothing

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
Dim miType As Type = System.Type.GetType("System.Windows.Forms.MenuItem")

returns nothing.

Why? How can I get a Type "pointer" to System.Windows.Forms.MenuItem

Tnanks,

Boni
 
Boni said:
Dim miType As Type = System.Type.GetType("System.Windows.Forms.MenuItem")

returns nothing.

Why? How can I get a Type "pointer" to System.Windows.Forms.MenuItem

'Type.GetType' will look for the type in the currently executing assembly
only. You may want to use 'GetType(System.Windows.Forms.MenuItem)' instead.
 
Boni,

Why not as simple as this (typed here watch typos) in the load_form of your
mainform

\\\\
dim mylogin as new LoginForm
me.visible = false
if frmLogin.showdialog <> dialogresult.ok then 'or whatever
me.close
end if
me.visible = true
frmLogin.dispose
///

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top