Posts

Showing posts from 2014

VB 2010 Crystal Reports Errors

Image
Visual Basic Online Course - Crystal Reports for VB2010 Errors and SolutionsError (1)
Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified. how can solve this error in windows application  Solution
Add those lines to your App.Config file located in your VB2010 Solution Explorer Panel
and Run your application again.


Error (2)
Crystal Reports Database Login box. Some time Crystal Reports run perfectly on your machine (Developer Machine) but after deploying it and install it on another Machine, it gives you an error like this : Solution
Add those lines to your Form_Load where the report is being loaded to adjust the Database location (Microsoft Access 2003 Database) :

Error (3)
Crystal Reports 2010 doesn't insert pictures manually. When you try to insert a photo in…

Visual Basic Online Course - Make sure application is running and installed

Image
Visual Basic Online Course How to make sure that an Application is Running and Installed When you create a Visual Basic 2010 or generally a VB.Net application that relies on another VB.Net application for example an Updater.exe application, you will have to code both sides in order no to enable the user to run Updater.exe without the existence of the Main application, and in order to do so, you will have to make sure that : 1) Your Main application is Running. 2) Your Main application is Installed. 3) Your Main application does exist in the installation folder. After making sure of all the above points, then you can compile your updater.exe file with your Main Application knowing that updater.exe won't run alone, especially if you're sending updates to the Main application for the user to receive using Updater.exe.
Here are the code to do so :
1) VB 2010 Get list of all installed applications

2) VB 2010 Get list of all running applications

3) VB 2010 Make sure application exists

T…

Visual Basic Online Course - Read Text File

Image
Visual Basic 2010 - How to Read Text File(s)Introduction

In order to read from a Text File then a Text File has to be present (Present = Known Path), the path of a Text File is just like any other path of any file it is String, for example : C:\Folder\File.txt The path to the File.txt is (C:\Folder\File-Name.Extension), so the path to the File Text = Path + File-Name + extension. Text Files can be present locally (on the same machine) or from external place (on the web) for example : ftp://10.0.0.27/Folder/File.txt As long as this Path is present and accessible then Reading Text File in VB 2010 is just so easy job to do. We can store the path to the Text File into a String variable to use it in our VB 2010 project : Dim LocalFilePath as String = ("C:\Folder\File.txt") Dim WebFilePath As String = ("ftp://10.0.0.27/Folder/File.txt") The problem with Text Files hosted on the web, is that it has to be accessible in order to read it or write it, you have to provide  a User…

Visual Basic Online Course Fade Image

Image
Fade Image in VB 2010How to fade image in Visual Basic 2010

It doesn’t matter if you are a photographer or a graphic designer, chances are that you have come across the need to fade or blend images in Visual Basic 2010. You can always use Photoshop to create faded images and then use them in your VB 2010 applications, but as a developer you also have to know what does it take to do so, not just to fade an Image but also as a general, after all it's your job to come up with answers.
In our demonstration here well will use ordinary common tools in VB 2010 to be able to fade an Image.
Project Design Form Name : Form1 Text : Fade Image in VB 2010 PictureBox Name : PicToFade BackColor : Transparent Dock : Full Timer Name : Timer1 Interval : 100
How does it work 
Run the application, click on the PicToFade [PictureBox], it will show the [OpenFileDialog] choose and Image [JPEG] and then notice that it will begin to fade away.
You can alter the code to change the fading values [Alpha from 0 …

Visual Basic 2010 Read/Write Command Prompt

Image
Visual Basic Online Course - Command Prompt Read / Write Windows Command Prompt from VB 2010 Command Prompt A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. Command Prompt Commands(A)
ADDUSERS Add or list users to/from a CSV file
ARP Address Resolution Protocol
~ ASSOC Change file extension associations
ASSOCIAT One step file association
AT Schedule a command to run at a later time
ATTRIB Change file attributes

(B)
BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info

(C)
CACLS Change file permissions
~ CALL Call one batch program from another
~ CD Change Directory - move to a specific Folder
CHANGE Change Terminal Server Session properties
CHKDSK Check Disk - check and repair disk problems
CHKNTFS Check the NTFS file system
CHOICE Accept keyboard input to a batch file
CIPHER Encrypt or Decr…

Visual Basic Freelance Requirements Document, Event Planning Document and Use Case Definition

Image
Writing Requirements Document  is a *.Pdf, *.Doc, *.Docs, *.Xml file describes what the your client needs from you "An Application" including but not limited to (Application Title, Purpose, Algorithms procedures and conditions, Notes and restrictions, Comments) these were the most famous requirements and your job as a programmer is to study well these points and design your applications according to it. Another way is to write it for your client if required, sometimes clients need to understand what you've done as a programmer, maybe they will hire some else in the future when you are not available.

This is different from VB .Net Documentations you won't be needing codes or anything, everything depends one the client's request or who ever requests it from you, as a programmer asked to provide this document, honesty is a must, you need to provide the client with everything, starting your logic to deploying methods and you shall accept to do it or not, it is contr…