Posts

Showing posts from March, 2010

Print Gridview, Report Builder

Image
Download Source Code

Silverlight For GPS Navigation

Image
Silverlight 4.0 gives support of COM access. BY the using COM PORT With Help of ActiveXpart  COMTOOLKIT  and  magellan gps explorist 210  and i try make gps navigation application in silverlight with bingmap api. in this application i use  magellan gps explorist 210  or you can use and gps divce with bhi nema format coordinate by the pasing Native coordinate you use lat,long and maped with bingmap or google map apis you can change coordinate with help opensource silverlight ProjNet and make my own tracking system. Download SourceCode

Finding Connecting String

Image
We find a connection string that use in VB 6.0, VB.Net and other languages. 1. Open Notepad. 2. Save blank notepad naming "a.udl" (define any name but use this extension ".udl" 3. Open that file. 4. Click Next 5. Select Access File. 6. Test Connection and Click OK. 7. Right Click on that file and Open in notepad. 8. Copy Connection String and paste in to VB or where you use.

Basic Calculator

Image
Design Form 1. Insert Label ( For Result ) 2. Insert Textbox ( For 1st Value ) 3. Insert Textbox ( For 2nd Value ) 4. Insert 4 Buttons ( +, - , * , / ) In code use label & textbox name. As Shown Below Button Code for + : lblResult.Text = val(txt1.text) + val(txt2.text) Button Code for - : lblResult.Text = val(txt1.text) - val(txt2.text) Button Code for * : lblResult.Text = val(txt1.text) * val(txt2.text) Button Code for / : lblResult.Text = val(txt1.text) / val(txt2.text) As Shown Below. Run Program . . . . .  For Any Problem email me at intelligentprogrammer@gmail.com

Operators

Mathematical and Text operators Operator Definition  Example  Result  ^  Exponent (power of)  5 ^ 2  25  *  Multiply  6 * 5  30  /  Divide  100 / 4  25  +  Add  6 + 4  10  -  Subtract  10 - 5  5  Mod  Remainder of division  25 Mod 7  4  \  Integer division  25 \ 9  2  &  String concatenation  "Usama" & " " & "Hafeez"  "Usama Hafeez"  Note that the order of operators is determined by the usual rules in programming. When a statement includes multiple operations the order of operations is: Parentheses ( ), ^, *, /, \, Mod, +, - Logical operators Operator  Definition  Example  Result  =  Equal to  12 = 15  False  >  Greater than  15 > 11  True  <  Less than  15 < 7  False  >=  Greater or eq...

Control Structures

If...Then...Else If  condition1  Then        statements1 Else      statements2 End If If condition1 is True, then statements1 is executed; Else, condition1 is not True, therefore statements2 gets executed. The structure must be terminated with the End If statement. The Else clause is optional. In a simple comparison, statements1 get executed or not. If  condition1  Then      statements1 End If Select Case Can be used as an alternative to the  If...Then...Else  structure, especially when many comparisons are involved. Select Case  ShirtSize       Case  1           SizeName.Caption = "Small"       Case  2           SizeName.Caption = "Medium"       Case  3           SizeName.Caption = "Large"       Case  4 ...

Data Types

Data type Storage size Range Byte 1 byte 0 to 255 Boolean 2 bytes True or False Integer 2 bytes -32,768 to 32,767 Long (long integer) 4 bytes -2,147,483,648 to 2,147,483,647 Single (single-precision floating-point) 4 bytes -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values Double (double-precision floating-point) 8 bytes -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values Currency (scaled integer) 8 bytes -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Decimal 14 bytes +/-79,228,162,514,264,337,593,543,950,335 with no decimal point; +/-7.9228162514264337593543950335 with 28 places to the right of the decimal; smallest non-zero number is +/-0.00000000...

Variables

Image
Define Variables. Define Variables with Dim, Public Example: Dim a as integer Dim b as integer Public i as integer Here integer is a data type of a variable. Dim is work within the form or procedure. and public is work within the  application. Form1 Form2

Using Procedures

Image
vYou want to perform specific code 2 or more times. to avoid the repeating code, use procedures Example: Make Procedure as shown below.

Form Designing

Image
FORM DESIGNING: - Simply Drag & Drop Tools. Like Textbox, Label, Combobox etc CODE EVENTS:-        Any tool have a code at event. like Button has many events Click Event, key press event, mouse move event etc. for code of default event double click on tool (double click on button, on textbox) EXAMPLE CODE FOR BUTTON CLICK EVENT:- 1. Open Blank Application 2. On Form Draw a Button. 3. Double Click on Button. 4. Write code on given below and  as shown below in pic. Msgbox ("Hello World")

Microsoft Visual Basic.Net

Image
Visual Studio 2008 Every day, software developers solve tough problems to create applications that improve the lives of others.  The Microsoft Visual Studio system is a suite of development tools designed to aid programmers whether they are rookies or seasoned pros face complex problems and create innovative solutions. Visual Studio's role is to improve the development process to make those breakthroughs easier and faster to achieve. Visual Studio 2008 provides advanced development tools, debugging features, database functionality, and innovative features for quickly creating cutting-edge applications across a variety of platforms. VB Versions The .Net environment has undergone several upgrades since it was first introduced in 2002. First there was Visual Studio .Net, then Visual Studio 2005 and now Visual Studio 2008 on the .Net Framework 3.5. If you are coming to VB 2008 from 2005 or .Net you won't see a really big difference. Applications will be converted easily with no...

Microsoft .Net Framework 2.0 ,3.0,3.5,4.0 beta

Image
Programing Is All about Reusability ,efficiency ,accuracy,precious,intelligence Of Example in Past Enterprises We were manged and document our accounts in ledger book but can we calculate and Analyze 10 Years of accounts or get lose and profits In average time? Thats why he Put Computers in our office and store or account information database use software to Analyze ,Calculate and managed there Account and make there data  Reusable  , faster and accurate . Evolution Of Programing Technologies is basically is a evolution of Reusability in Past Era of Programing Languages We Try to make Reusable Things in our program faster. 1 Structured programming c, Pascal Methods Reusability 2 Object Oriented Programming c++, Java, VB.NET, C# Objects Reusability 3- Component Oriented Programming c# collection of Objects Reusability 4- Service Oriented Programming (Azure,Cloud) Applications Reusability To Making Our Programming languages Object Oriented Fasting and Standard...