?
Solved

Option Strict On disallows late binding (vb.net)

Posted on 2011-09-08
3
Medium Priority
?
433 Views
Last Modified: 2012-06-27

Hi Expert,

I have a line of code causes error 'Option Strict On disallows late binding',
objApp(obj, Nothing).options.usefont = True

How I can change?

Thanks in advance.
0
Comment
Question by:dshi15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
lisfolks earned 2000 total points
ID: 36517714
Basically, the only way to "fix" this error is to turn Option Strict off, avoid using anything that requires late binding, or change your code so you're not narrowing any values.

Here is a discussion from Microsoft:
Option Strict Statement
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 36947318
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question