Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding fonts into an application

Status
Not open for further replies.

DragonicZero

Programmer
Sep 6, 2009
2
PR
Hi,
For a long time I searched the internet o see if there was a way to embed fonts into a VB.net application. Finally I found this FAQ: I followed the instructions and it worked, but unfortunately just after I saved the project, I tested it and it throws an error at this line:
Code:
FntStrm.Read(ByteStrm, 0, Int(CType(FntStrm.Length, Integer)))
Saying: [COLOR=black yellow]"Object reference not set to an instance of an object"[/color]
I dont know what seems to be the problem because before I save the project it runs just fine, but after I save it, it throws that error.
I started a new project and tried again, but the same thing happens.
Can anyone please help me with this?
 
The problem was solved. For anyone having the same problem, I emailed the master of the FAQ and he said that when I saved the application the name of the project was different from the assembly name and I had to go to the application properties and change it. I did it and it worked.
Any moderator, this thread can be closed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top