Search VB 2010

Monday, July 01, 2013

Visual Basic Online Course OOP Classes

Visual Basic Application Development
Object Oriented Programming 

Introduction

After creating so much applications and working with Databases, I was always afraid of getting close to OOP (Object Oriented Programming). OOP is the essence of Programming languages, understanding OOP is a sign which tells you "You are a talented programmer". 

We all know that there is a difference between programming practitioner and freelancer programmer, some say that practitioners are much secure, they don't need to learn more to get paid because they already have a job, but a freelancer is a guy who is talented in something (In this example : Programming) and in addition he/she wants to make something out of it.
VB 2010 OOP
VB 2010 OOP
OOP or Object Oriented Programming, means programming the programming, Yes! Before studying OOP we used to write codes and place tools, then hoke them up together to come up with something magnificent for ourselves or for our clients for money or some school degrees as a project.

No client will ever ask you to create a programming tool for him, or to modify a built-in tool for him, unless he is another programmer trying to sell something over the internet, if you ever worked in a freelance agency such as for example Freelancer.com, Odesk.com or Vworker.com those and others are major hiring websites for freelancers, not just in programming field but in so much things.

Each and every desktop application written and designed in Visual Basic .Net includes for most of us, basic interfaces : The form, the controls on the form, coding the controls, packing all above, to come up in the end with an application, well this is not exactly how it works in OOP programming.

In OOP programming you create your own everything from scratch to start using it in your form or coding controls on the form or creating controls (TextBoxes, Labels, ..... etc.) for yourself for later work. OOP is written within a Class.

Since .Net Framework started, and almost everything in Visual Basic became a separate Class of its own. Notice when you open the form to write a code, the first line says (Public Class Form1) then in the end (End Class).

A Class is the mother and the father of each and single object in Visual Basic .Net, everything you see in Visual Basic .Net came from a Class. To create a Class, you need to need to create a Class, I'm not kidding, I mean it, if you want to create a Class in your project then you must need one unless it won't make any sense, since logic is key stone and the only motivation for programmers to start designing coding, and Classes is one of those jobs as designing and coding then logic (The need for creating a Class) must be present in order to succeed and make sense.

VB 2010 OOP
VB 2010 OOP

When do we need to create a Class for our Visual Basic .Net Project ?

If you are trying to create your own Textbox or label, or if you are generally trying to create your own Visual Basic .Net Control, then you are definitely in need for a Class, as a result, you need to know OOP.

If you developed a method with a 3rd party for example, and you need to always include this method in further applications, then you need to create a Class for yourself, and also as a result you will have to learn and read about OOP.

Last thing, the basic thing to need to create a Class is when you are trying to contain your code blocks into a container for further development, then you need a Class.

VB 2010 OOP
VB 2010 OOP
Yes, all we need now is an example of a Class to start working. See you next chapter.

Here are some online Visual Basic lessons and courses :

Friday, June 21, 2013

Visual Basic Online Course The following control could not be licensed: TxTextControl.TextControl

The following control could not be licensed: TxTextControl.TextControl

Search Optimization, Word Processing Integration
Tx TxtControl, powerful tool for VB2010 that enhances Word Processing Integrations

How to compile a specific license (*.licx) file to your Visual Basic 2010 project for example the [Tx TxtControl] Object. Tx TxtControl is an evaluation product and can be downloaded from here, unless you register the product with a standard license, it will not work properly with Visual Basic 2010

Tx TxtControl is a Visual Basic .Net powerful tool that enable you to create a Word Processing Integration form to enable the user to take notes and save it and retrieve it. With Tx TxtControl you can do the following :
  • Integrate comprehensive word processing into your Windows applications
  • Load, edit and save Microsoft Word formats (DOCX, DOC, RTF etc.)
  • Build powerful reporting and mail merge applications
  • Load, edit and create Adobe PDF documents
  • Completely royalty-free
The problem is that the Eval. Version pops up a message in the IDE and the Run-Time and generate an error message :
The following control could not be licensed: TXTextControl.TextControl
Visual Basic .Net 2010 Tx TxtControl Cracked
Tx TxtControl License Problem in Visual Basic .Net (VB2010)
To solve the Tx TxtControl license problem, you need to do the following :
1) Add Reference to Tx TxtControl in your Visual Basic 2010 Project
Visual Basic 2010 Online Courses and Solutions
Add Reference to Tx TxtControl in Your VB2010 project
2) A 'licenses.licx' file must exist in the 'My Project' folder. To build such a file, create a new text file in this folder and name it 'licenses.licx'. Open the file and add the following string: 
TXTextControl.TextControl, TXTextControl, Version=13.0.500.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638
The 'licenses.licx' file is not a TX Text Control specific file, but a Visual Studio file that is used by 'lc.exe' (which is part of the .NET SDK) to compile the licenses into the assembly. These above steps are done automatically, if you drag and drop a TextControl from the toolbox onto a form.

The above line that refers to the License will vary from version to another. To find the proper License file for the existing Tx TxtControl Version for VB.Net WinForms :

  • Go to the C:\ drive and locate the installation folder for Tx TxtControl
  • You will find the License for the current version most likely here :
    C:\Users\User_Name\Documents\TX Text Control 19.0.NET for Windows Forms\Samples\WinForms\VB.NET\TX Text Control Words\My Project
  • You will find the License.Licx file placed there
  • Open it, copy the contents
  • Open your Visual Basic 2010 Project. Folder [My Project] add *.txt file and call it License.Licx if it is not already there and paste the previous copied lines
  • [If you found License.Licx there already, just open it with NotePad and add the following to the end of it]
  • Save all you work, Build Solution for your Project.
Here are some online Visual Basic lessons and courses :

Wednesday, June 19, 2013

Visual Basic Online Course Search Optimization

dtSearch Engine
Using dtSearch Engine to Create Search Optimization via Visual Basic 2010

Create Visual Basic .Net Search Optimization tool using dtSearch Engine to :

 Optimize Search
Index files
Search Index
Retrieve Search Results
Highlight Search Results
dtSearch Engine : Powerful tool can be downloaded from its official website. There is the dtDeskTop Search and dtSearch Engine for developers, we need the last one to be downloaded. You will be given a password to install the Eval. Version of dtSearch Engine by the customer support team via Email or via SkyPe. I recommend downloading the dtSearch Engine 772.

After installing dtSearch Engine successfully on your machine, you will find the files in the C:\ drive and Start Menu. Restart your machine.
Search Optimization
dtSearch Engine - installed files
There will be VB.Net examples in the C:\ drive cover most of the supported programming languages by the dtSearch Engine Tool including VB.Net 2010 [.Net frameWork 4] in this folder (C:\Program Files\dtSearch Developer\examples\vb.net4).

dtSearch Engine mechanism goes like this :

  • Create Indexes (If exists, then you can update the existing Index)
  • Add Files to be Indexed
  • Search Index
  • Retrieve Search Results (Highlight search results)

From Visual Basic .Net 2010

In order to use dtSearch Engine within VB2010 you will need :
      1. Create new Visual Basic 2010 Project
      2. Add dtSearch Engine Reference Files.
dtSearch Engine Reference Files to be added to the VB2010 project, are :
dtSearch Engine Optimization via Visual Basic .Net
dtSearch Engine via Visual Basic .Net (framework 4.0)
Not only searching System Files but also you can Search Database using the same mechanism (Create Index, Add Resources to Index, Search Indexed Resources, .... ,etc.)
Here is a source code example well detailed and explained of How to use dtSearch Engine to Optimize Search "Optimization" via VB.Net 2010 and .Net framework 4.0.

Using dtSearch Engine in Visual Basic .Net 2010 [Source Code Example] :
(1) dtSearch Engine - Logic and Design
(2) dtSearch Engine - Indexing/Searching local Files

Here are some online Visual Basic lessons and courses :

Visual Basic Courses - Share