Preview:
DESCRIPTION
Citation preview
- 1. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Microsoft Visual Basic.Net 2005 )( -
- 2. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Content Introduction - - Net Framwork.
2005Net.VB - Express2005Net.Visual Basic -IDE - - -
BasicsProgramming -- - - - - Applications - - PDF - - - - -
- 3. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com and ReportsDatabase - 2005SQL Server -
Programming2Net.ADO -ReportsCrystal Reports Help - Help - -SQL -
2005Net.VB
- 4. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com . . . .----------- . BASIC
odeCnstructionIymbolicSPurpose-llAeginnersB Gohn Kemeny and Thomas
Kurtz Time Sharing . MSBASIC Microsoft. )( Visual Basic ! BASIC .
)(VB BASIC . VB Multimedia . .. VB . )( VB VB . )( .. VB From
scratch VC++ : VC++ Engines !2 )( C# VB C++ VC++ . C# VB C++
;++==|| .... . 1 -/ : . 2 - / : PDF File
- 5. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ):Visual BASIC) ( ( . . .++ . . ++ "Run Time
library" MSVBMnn.dll "" . basic dos . . . . . . . Visual Basic 1
Visual Basic . Windows. . Visual Basic 2 Visual Basic IDE. Access
1.0 Microsoft . Visual Basic 3 Visual Basic! VBX OCX. 1 -
wikipedia:
http://ar.wikipedia.org/wiki/%D9%81%D9%8A%D8%AC%D9%88%D8%A7%D9%84_%D8%A8%D9%8A%D8%B
3%D9%83 , Viewed 27/1/2009
- 6. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com IDE Visual Basic. . Visual Basic 4 Windows
95 bit. VisualBasic Bit. ! ActiveX DLL VisualBasic OOP Class
Polymorphism Inheritance. Visual Basic 5 Visual Basic . ActiveX
ControlsActiveX Documents.. EXE P-CodeNative-Code. IDE . Visual
Basic 6 Bugs . ADO. . UDT Functions. Wizards Internet. . Visual
Basic.NET Vb 2003vb2005vb 2008 Visual Basic Visual Basic Windows. .
. Visual Basic BASIC . Visual Basic ! . . Add-Ins ActiveX
ControlCOM . COM ! .
- 7. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Windows Visual Basic % Windows . Visual
Basic API Windows. MSVBVM60.DLL Visual Basic. Visual Basic .
ActiveX Controls . ActiveX Documents Internet Explorer. Visual
Basic Client DHTML Applications Server ASPApplications. Visual
Basic Visual Basic Windows. Visual Basic . ! Visual Basic . Visual
BasicCOM !!Visual Basic.NET . . . . Basic )Beginners
All-PurposeSymbolic Instruction Code( GW-BASICQuickBasic and QBasic
Dos QBASIC . Visual Basic Tutorials com.arab4vb.www://http/ VISUAL
BASIC.NET . 1 - wikipedia:
http://ar.wikipedia.org/wiki/%D9%81%D9%8A%D8%AC%D9%88%D8%A7%D9%84_%D8%A8%D9%8A%D8%B
3%D9%83 , Viewed 27/1/2009
- 8. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com VB.Net .. : VB VS.Net .. .. . Enter..: : If
X = 0 Then : End If Then ! If . ..: . .. .. .. Splitter . Run Time
. Compiler VS.Net VB VC++.. Recursive Programming . Exception
Handlers Try.. Catch.. End Try. VB.Net Object Oriented Programming
IntegersStringsArrays Classes .. ...... ! Inheritance Polymorphism
.. Single Inheritance. .Net Framework Classes API .. )( DirectX
APIs . Controls . : StackQueueBitArray ArrayList . 1 - : //.
http://www.montada.com/forumdisplay.php?f=212
- 9. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com If Statements Loops . Nested Classes Type .
Interfaces . Delegate ! Attributes . .. FileSystemWatcher
Collection Serialization. GDI+.. ..... Pointers System ! Threads
Multithreading. ADO.Net . VB ASP Servers ASP!! .Net) .Net 2002( )
.Net 2003( C# C++ J# .Net Standerd Professional Team Suite Express.
VB.Net 2005 Visual Basic .Net 2008. 1 - : " "
- 10. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com VB.Net 2005 : . Windows XP Professional
serves Pack 2 Windows XP Home Educat serves Pack 2 Windows server
2003 serves Pack 1 Windows server 2000 serves Pack 4 Windows Data
center server . . . ) *( )*(. com.it4salem.www ........ . E-
MailWeb Site Mohamed_youssef_1988@yahoo.com Portsaid_2010@yahoo.com
Mohamed.yoyo@gmail.com www.salem4it.com - 1 : " "
- 11. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com - . - . - . - . - . - . - . - . - . - . - .
- . - . - ADO.Net . - . - SQL ADO.Net. - Reports . - . - . - . - .
- . - . - . - .
- 12. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 13. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com .Net .Net Framework . . . .Net ..Net . .Net
of Microsoft .NET 2.0 Visual Studio 2005 Visual Basic 2005 .NET Net
. . .NET Framework class libraries ..NET Framework. . Web Servieses
. : . VB OOP . JAVA C # Framework XML .
- 14. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : IISASP ASP.NET.APIATLMFC Base Class DNA
COM+ 2.0 VB OOP C ++ C# OPEN SOURCE Components Registry XMLSOAP Web
Services . .NET : PDC ) Next Generation Windows Services ) IIS 4
VS7 % . 135 . : 1 % . . . . . Software Service )( Simple Object
Access Protocol Soap HTTP COBRA .COM . 1 - : //com.itwadi.www
- 15. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com .NET : .NET Windows VB IIS ASP , Web
Services XML Sopa . Visual Studio.Net . ). ( JAVA . . C# Framework
Virtual Machine . )( . WindowsVista . Framework 3.5 % Framework 2.0
% Framework . Windows-XPWindows 98 Windows Mil. Framework 1.1
Framework 2.0 Framework 2.0 Framework 3.5. Framework 3.5. .
- 16. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com .Net Framework .Net Framework .Net Framework
)( .Net Framework .Net Framework OOP Desktop Distributed Remote
Versioning . : 1 -/ : .NetVisual Basic.NetPDF File
- 17. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com .Net 3400 XML Common Language Runtime - CLR
.Net Framework CLR CLR VB,C++,C#CLR Perl ,Python Cobol . CLR CLR
Metadata CLR CLR Classes :- ASP.Net ASP.NET . Net ActiveX .NET
Windows Frame , Ado.Net. GDI+ . (Source Program): . (Object
Program): . (Machine Language): . (Complier): . :- . . . . . . 1 -/
: Visual Basic.Net 2003)( PDF File
- 18. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com JIT --.NET (JIT) - Just In Time Compiling. )
Optimization( . Class Library Class Library .Net Framework .NET
IO.System Net IO.System IO.System.File ASP.Net ASP.Net System.Web
Assemblies .Net Assemblies Assemblies Assemblies System.IO
Mscorlib.dll 1 -/ : .NetVisual Basic.NetPDF File
- 19. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 20. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 2005Net.Visual Basic Microsoft Visual Basic
2005 Express Edition :
http://download.microsoft.com/download/D/9/C/D9C35F20-A749-4E25-A306-DE20B93AB8C0/VB.iso
vb.net 2005 IDE integrated development environment visual basiv
.net visual studio.netvisual c# .net , visual j# .net , visual
c++.net visual basic.net windows application .
- 21. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 22. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 23. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 24. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Integrated development environment - IDE
VISUAL BASIC.NET VISUAL STUDIO.NET VISUAL C#.NET VISUAL J#.NET
VISUAL C++.NET VISUAL BASIC.NET WINDOWS APPLICATION WEB APPLICATION
CLASSES AND CONTROL LIBRARY CONSOLE APPLICATION .. VISUAL
STUDIO.NET Choose Default Environmant Settings VISUAL STUDIO.NET
VISUAL STUDIO.NET VISUAL BASIC Start Visual Studio
- 25. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com START PAGE FILE New Project New Project
- 26. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : " " : :Class Library . . :Windows control
library . VB.NET .. . .. . :indows serviceW Services NT.. .. . ....
:Console application DOS . :NET Web Application.ASP VS.NET .. .
HTML. ASP.NET . . :NET Web Service.ASP Internet Servers
- 27. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com . : ) ( .. XML . :Web Control library . : "
" : - Empty Project . - Empty Web Project . - New Project In
Existing Folder . VS.NET .. VS.NET . VISUAL BASIC.NET WINDOWS
APPLICATION VISUAL BASIC.NET
- 28. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com View ToolBox Ctrl+Alt+X Form1 Solution
Explorer Properties
- 29. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ) Solution(Project )( Project: Forms
ModulesClasses Vb.Net )Solution( Projects Solution Project Solution
Solution Explorer View Ctrl+Alt+L Solution Explorer Add New
Item
- 30. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com New Item Add New Item VISUAL STDIO.NET
Windows Form Add New Item Add Form Form Solution Explorer
- 31. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Menu Menus With Visual Basic.Net 2005
ToolsCustomize Customize [File] 1 - " " .
- 32. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 33. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [Edit] text and other objects.
- 34. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [View] [Project] Explorer Solutions
Appliction
- 35. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 36. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Compile 1- Option Explicit 2 - Option strict
Dim i As Integer Dim s As String s = "10" i = s ' This Fails. s =
"Hello" i = s ' This Fails. Dim i As Integer Dim s As String s =
"10" i = s ' This works. s = "Hello" i = s ' This Fails.
- 37. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Tools option Project and solution VB
Defaults ok Option compare Binary or Text Binary Resources
- 38. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com My.Resources. Resources Car PictureBox
PictureBox.Image = My.Resources.Car Publish Setup
- 39. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [Bulid] Debug]
- 40. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Window Breakpoint Watch, Continue Stop
Debugging Detach all Terminate all Restart Exceptions New
Breakpoint [Data] Access ,Sql,Oracl
- 41. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [Format] [Tools]
- 42. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Attach To Process Attach Connect to Device
Connect to Pocket PC or Smartphone devices or emulators Connect to
Database Code Snippets Manager Insert Snippet Choose Toolbox Items
ToolBox Macros External Tools Tools Menu Device Emulation Manager
Import/Export Settings IDE Customize Customize Options
- 43. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [ Window ] Dockable, Floating, Tabbed
Document Toolbox, Solution Explorer, Auto Hide Hide view Auto Hide
All
- 44. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com New Horizontal Tab Group New Vertical Tab
Group
- 45. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Close All Documents Reset Window Layout
Windows
- 46. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [Community]1 MSDN Community Center
aspx.497440aa/us-en/com.microsoft.2msdn://http [Help] 1 -/ :Visual
basic.Net 2005 CHM File
- 47. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : *: Control Button , Textbox , LabelControl
Component Control : menu OpenFileDialog * :
- 48. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : * : * Ctrl Ctrl . : TabControl, GroupBox,
Panel, . . container container container container container .
container . * Run Time : ToolBox Run Time . . . . Run Time . Run
Time : Dim lblHi As New Label lblHi.SetBounds (50, 50, 70,70)
lblHi.Text="Hello World" Me.Controls.Add (lblHi) Label lblHi Label
. lblHi SetBounds . Text LabelHello World . lblHi Add Controls .
Label Button .
- 49. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com WithEvents : Dim WithEvents btnHi As New
Button btnHi Button Class Name Method Name Dim WithEvents btnHi As
Button Class Name btnHi
- 50. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com . WithEvents btnHi As Button Button
Button1_Click btnHi = New Button btnHi.SetBounds(96, 50, 75, 23)
btnHi.Text = "Say Hi" Me.Controls.Add(btnHi) ClickbtnHi
MessageBox.Show(Hi Man)
- 51. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Button1Button Say Hi Hi Man . : Button btnHi
Button Me.Controls.Remove(btnHi) btnHi = Nothing btnHi Button . : :
. TextBox Name Text TextBox BackColor . ImageListImages TreeView .
: ViewProperties Windows F4 . .
- 52. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : . - : Location X and YSize width and
heightFont fonts name, size, boldness (+) . - : Visible True and
False True= -1False= 0 . - : ListBoxItems ListBox ImageList
TabControl ImageList Images TabControl . .
- 53. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com TabControl : TabControl NameTabExpImageList
NameImglstTabExp ImglstTabExp Images Add Ok TabExp ImageListTabExp
ImglstTabExp TabPages TabExp (Tabs)
- 54. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com (Tabs)TabExp TabControl Add Tab
- 55. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com index . VB.NET 2005 . ? . : BUTTON btnNum -
btnNum Text - Textbox txtview btnNum.Click Dim MyButton As Button =
DirectCast(sender, Button) txtview.Text = txtview.Text &
MyButton.Text Anchor and Dock Anchor and Dock Anchor Anchor Button
, TextBox , list Top, Bottom, Left, Right (pixel) Top, Left Notepad
TextBox Anchor TextBox MultilineTrue
- 56. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Anchor TextBox TextBox Button
- 57. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com AnchorNone AnchorButton Top, Right Button
Top, Right Button Button Form_Load Button1.Location = New
Point(Me.ClientRectangle.Width -Button1.Width,
Me.ClientRectangle.Height - Button1.Height) Button1.Anchor =
AnchorStyles.Bottom Or AnchorStyles.Right TextBox
- 58. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Anchor Top None Bottom Dock DockTop Button
Left & Right ToolBar Button Anchor Top, Left, Right DockTop,
Bottom, Left, Right, Fill, or None Fill Dock None stacking order
Z-order . : TextBox MultiLine True Dock : : Right : Top : Bottom :
Fill
- 59. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 60. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 1 -/ : PDF File
- 61. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 62. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 63. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 1 -/ : PDF File
- 64. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 65. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 66. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 -/ : PDF File
- 67. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 68. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 69. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 -/ : PDF File 2 -./ : VB.Net 2005)-(PDF
File.
- 70. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 71. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com :- . : . : - : (integer, character, string).
-: For Globel - : Private Public - . Dim Dim x As Integer static
:
- 72. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : 2,147,483,647 integer LongDouble . : long
String
- 73. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Dim x&=5 Dim y$="salem4it - Youssef"
Option Explicit On Dim x=10000000000 Dim y ="salem4it - Youssef"
Option Explicit ToolsOptions Projects and Solutions VB Defaults
Option Explicit On Option Explicit Off Dim x=10000000000 Dim y
="salem4it - Youssef" xlongy String
- 74. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com X=100L Y="A"c long Char Option Explicit Off
&H &O i = 100 ' Decimal 100. i = &H64 ' Hexadecimal
&H64 = 6 * 16 + 4 = 96 + 4 = 100. i = &O144 Octal &O144
= 1 * 8 * 8 + 4 * 8 + 4 =100. )(Randomize )(Rnd 1 -./ : - Visual
Basic.Net 2005 /
- 75. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : 1 -./ : VB.Net)+(PDF File
- 76. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 -./ : VB.Net)+(PDF File
- 77. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 -./ : VB.Net)+(PDF File
- 78. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 1 -./ : VB.Net)+(PDF File
- 79. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 80. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 81. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 82. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 1 -./ : VB.Net)+(PDF File
- 83. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 84. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 85. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 86. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 1 -./ : VB.Net)+(PDF File
- 87. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 88. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 89. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 90. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 91. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 92. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 93. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com enums
- 94. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com structures
- 95. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 96. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 97. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Array1 : Dim myvalue(5) As Integer : Dim
myvalue(5, 3) As Integer : Public Class Form1 Dim myvalue(5) As
Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load myvalue(0) = 11
myvalue(1) = 4 myvalue(2) = 13 myvalue(3) = 44 myvalue(4) = 123 End
Sub End Class Loop : Public Class Form1 Dim mycounter As Integer
Dim myvalue(5) As Integer Private Sub Form1_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For
mycounter = 0 To myvalue.Length - 1 myvalue(mycounter) = mycounter
Next End Sub End Class integermycounter For myvalue.Length -
1Length . mycounter .. Public Class Form1 Dim myvalue(5, 3) As
Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load myvalue(0, 0) = 1
myvalue(0, 1) = 2 myvalue(0, 2) = 3 myvalue(0, 3) = 4 myvalue(1, 0)
= 5 myvalue(1, 1) = 6 myvalue(1, 2) = 7 myvalue(1, 3) = 8
myvalue(2, 0) = 9 myvalue(2, 1) = 10 myvalue(2, 2) = 11 myvalue(2,
3) = 12 1 -/ : CHM FileArray.
- 98. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com myvalue(3, 0) = 13 myvalue(3, 1) = 14
myvalue(3, 2) = 15 myvalue(3, 3) = 16 myvalue(4, 0) = 17 myvalue(4,
1) = 18 myvalue(4, 2) = 19 myvalue(4, 3) = 20 myvalue(5, 0) = 21
myvalue(5, 1) = 22 myvalue(5, 2) = 23 myvalue(5, 3) = 24 End Sub
End Class . : Public Class Form1 Dim myvalue(5) As String Private
Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load myvalue(0) = "Visual"
myvalue(1) = "Windows" myvalue(2) = "File" myvalue(3) = "Copy"
myvalue(4) = "Edit" myvalue(5) = "Cut" End Sub End Class . : Dim
myvalue() As String = {"Visual", "Windows", "File", "Copy"} : Dim
myvalue(,) As Integer = {{1, 2}, {3, 4}, {5, 6}} Redim : Public
Class Form1 Dim myvalue(5) As Integer Private Sub Form1_Load(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load ReDim myvalue(0) myvalue(0) = 1 End Sub End Class
Form_loadRedim . . : Public Class Form1 Dim myvalue1(5) As Integer
Dim myvalue2(5, 5, 6) As Integer Private Sub Form1_Load(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
- 99. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com MyBase.Load MsgBox(myvalue1.Rank)
MsgBox(myvalue2.Rank) End Sub End Class : Public Class Form1 Dim
myvalue1(5) As Integer Dim myvalue2(5, 5, 6) As Integer Private Sub
Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load MsgBox(UBound(myvalue1))
MsgBox((myvalue2.GetUpperBound(2))) End Sub End Class -- . ...
Msgbox Textbox: Public Class Form1 Dim myvalue1(5) As Integer Dim
myvalue2(5, 5, 6) As Integer Private Sub Form1_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = myvalue1(3) TextBox2.Text = myvalue2(3, 2, 5) End
Sub End Class Textbox .
- 100. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 101. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 2005
- 102. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com " " . .
- 103. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 104. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 105. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 106. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Button2Refresh Button3Stop Button4Back
Button5Forward Go to URL : WebBrowser1.Navigate(ComboBox1.Text)
Refresh : WebBrowser1.Refresh() Stop : WebBrowser1.Stop() Back :
WebBrowser1.GoBack() Forward : WebBrowser1.GoForward() . Combo box
Panel Items. ) ( Panel TextSave web page
- 107. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : WebBrowser1.ShowSaveAsDialog() . Panel
TextOpen OpenFileDialogDialogs : OpenFileDialog visual basic.net .
: : OpenFileDialog1.ShowDialog()
WebBrowser1.Navigate(OpenFileDialog1.FileName)
- 108. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com PDF - - Adobe Acrobat )(
- 109. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 110. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com :
- 111. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 112. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : AxAcroPDF1.LoadFile("D:/arabsbook.pdf")
arabsbook.pdf d AxAcroPDF1 f5 save bin exe C:Documents and
Settings1My DocumentsVisual
Studio2005ProjectsProject7Project7binDebug Project7 msgbox " "
msgbox " "
- 113. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 114. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 115. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 116. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : Dim clearDisplay As Boolean Dim Operand1
As Double, Operand2 As Double Dim [Operator] As String public class
: Private Sub bttn1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles bttn0.Click, bttn1.Click, bttn2.Click, _
bttn3.Click, bttn4.Click, bttn5.Click, bttn6.Click, bttn7.Click,
bttn8.Click, bttn9.Click If clearDisplay Then lblDisplay.Text = ""
clearDisplay = False End If lblDisplay.Text = Val(lblDisplay.Text +
sender.text) End Sub : Private Sub bttnPeriod_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
bttnPeriod.Click If lblDisplay.Text.IndexOf(".") > 0 Then Exit
Sub Else lblDisplay.Text = lblDisplay.Text & "." End If
- 117. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com End Sub : (+) Private Sub
bttnPlus_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles bttnPlus.Click Operand1 =
Val(lblDisplay.Text) [Operator] = "+" clearDisplay = True End Sub
(=) : Private Sub bttnEquals_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles bttnEquals.Click Dim result As
Double Operand2 = Val(lblDisplay.Text) Try Select Case [Operator]
Case "+" result = Operand1 + Operand2 Case "-" result = Operand1 -
Operand2 Case "*" result = Operand1 * Operand2 Case "/" If Operand2
"0" Then lblDisplay.Text = result End Select Catch exc As Exception
MsgBox(exc.Message) result = "ERROR" Finally lblDisplay.Text =
result clearDisplay = True End Try End Sub : (-) Private Sub
bttnMinus_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles bttnMinus.Click Operand1 =
Val(lblDisplay.Text) [Operator] = "-" clearDisplay = True '
lblDisplay.Text = "" End Sub
- 118. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com (*) Private Sub bttnMultiply_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
bttnMultiply.Click Operand1 = Val(lblDisplay.Text) [Operator] = "*"
clearDisplay = True End Sub _______________________ (/) Private Sub
bttnDivide_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles bttnDivide.Click Operand1 =
Val(lblDisplay.Text) [Operator] = "/" clearDisplay = True End Sub
_______________________ form_ Form_load form_keypress Private Sub
Form_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress If
System.Char.IsDigit(e.KeyChar) Or e.KeyChar = "." Then If
clearDisplay Then lblDisplay.Text = "" clearDisplay = False End If
lblDisplay.Text = lblDisplay.Text + e.KeyChar End If End Sub
_______________________ lblDisplay.Text Private Sub
bttnClear_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles bttnClear.Click lblDisplay.Text = "" End
Sub
- 119. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Public Class Form1 Private Sub
Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click If RadioButton1.Checked =
True Then a = 1 Else a = 2 End If Form2.Show() End Sub Private Sub
Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load RadioButton1.Checked = True
Button1.Select() End Sub End Class 1 - / ../ / : - /.
- 120. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Public Class Form2 Dim hits As Integer = 0
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load Me.Timer1.Enabled = False
Me.Timer2.Enabled = False Me.Butpress.Enabled = False End Sub
Private Sub Butstart_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Butstart.Click Select Case a Case 2
Me.Timer1.Interval = 1000 End Select Me.Timer1.Enabled = True
Me.Timer2.Enabled = True Me.Butpress.Enabled = True
Me.Butstart.Enabled = False End Sub Private Sub
Butpress_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Butpress.Click hits = hits + 1
Me.lblhits.Text = Format(hits, "Number of hits = # ") End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer2.Tick Me.Timer1.Enabled = False
Me.Timer2.Enabled = False Me.Butpress.Enabled = False
Me.Butstart.Enabled = True End Sub Private Sub Timer1_Tick(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
Timer1.Tick Randomize() Me.Butpress.Left = 200 * Rnd()
Me.Butpress.Top = 200 * Rnd() End Sub End Class
- 121. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Public Class Form1 Dim a As Integer Dim d As
Long Private Sub Radiodays_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Radiodays.CheckedChanged a = 1 End Sub Private Sub
Radiohours_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Radiohours.CheckedChanged a = 2 End Sub
Private Sub Radiominutes_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Radiominutes.CheckedChanged a = 3 End Sub Private Sub
Radioseconds_CheckedChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Radioseconds.CheckedChanged a = 4 End
Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Button1.Click Select Case a Case 1 d
= DateDiff(DateInterval.Day, DateTimePicker1.Value, Now)
ListBox1.Items.Add("the difference " & d & " Day") Case 2 d
= DateDiff(DateInterval.Hour, DateTimePicker1.Value, Now.Date)
ListBox1.Items.Add("the difference " & d & " Hour") 1 - /
../ / : - /.
- 122. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Case 3 d = DateDiff(DateInterval.Minute,
DateTimePicker1.Value, Now.Date) ListBox1.Items.Add("the difference
" & d & " Minute") Case 4 d = DateDiff(DateInterval.Second,
DateTimePicker1.Value, Now.Date) ListBox1.Items.Add("the difference
" & d & " Second") End Select End Sub Private Sub
Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load DateTimePicker1.ShowCheckBox
= True Me.Text = "Date Calculater" Button1.Text = "Calculater"
Radiodays.Checked = True Button1.Select() End Sub 'Programming
Mohamed Ahmed Youssef End Class
- 123. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Public Class Form1 Private Sub
Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click If RadioButton1.Checked =
True Then a = 1 ElseIf RadioButton2.Checked = True Then a = 2 Else
a = 3 End If Form2.Show() End Sub Private Sub Form1_Load(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load Button1.Select() RadioButton1.Checked = True End Sub
End Class 1 - / ../ / : - /.
- 124. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Public Class Form2 Dim n1, n2 As Integer Dim
r1, r2 As Integer Private Sub Form2_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Select() TextBox3.Text = "Plase Enter the Result" Select
Case a Case 1 Randomize() n1 = 1 + 10 * Rnd() n2 = 1 + 10 * Rnd()
TextBox1.Text = "The Result of multiplication " + CStr(n1) + " by "
+ CStr(n2) + " = " TextBox2.Text = "" Case 2 Randomize() n1 = 15 +
10 * Rnd() n2 = 15 + 10 * Rnd() TextBox1.Text = "The Result of
multiplication " + CStr(n1) + " by " + CStr(n2) + " = "
TextBox2.Text = "" Case 3 Randomize() n1 = 100 + 10 * Rnd() n2 =
100 + 10 * Rnd() TextBox1.Text = "The Result of multiplication " +
CStr(n1) + " by " + CStr(n2) + " = " TextBox2.Text = "" End Select
End Sub Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click Button1.Select()
TextBox3.Text = "Plase Enter the Result" Select Case a Case 1
Randomize() n1 = 1 + 10 * Rnd() n2 = 1 + 10 * Rnd() TextBox1.Text =
"The Result of multiplication " + CStr(n1) + " by " + CStr(n2) + "
= " TextBox2.Text = "" Case 2 Randomize() n1 = 10 + 10 * Rnd() n2 =
10 + 10 * Rnd()
- 125. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com TextBox1.Text = "The Result of
multiplication " + CStr(n1) + " by " + CStr(n2) + " = "
TextBox2.Text = "" Case 3 Randomize() n1 = 100 + 10 * Rnd() n2 =
100 + 10 * Rnd() TextBox1.Text = "The Result of multiplication " +
CStr(n1) + " by " + CStr(n2) + " = " TextBox2.Text = "" End Select
End Sub Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click r1 = n1 * n2 Try
r2 = TextBox2.Text If r1 = r2 Then TextBox3.Text = "congratulation
, True Result" Else TextBox3.Text = "Sorry ,Wronge Result the True
Resulte " + CStr(r1) + " " End If Catch ex As Exception
MsgBox("Enter the answer") Exit Sub End Try End Sub End Class
- 126. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com "" C:images You have to copy contents of
subdirectory images into C:images Public Class Form1 ' 'w=Wrong
Answer 'r=Right Answer Dim r, w As Integer ' Dim a As String ' Dim
nameflage As String Private Sub Form1_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '
With ComboBox1 .Items.Add(")" .Items.Add(" ") .Items.Add(")"_
.Items.Add(")" 1 - / ../ / : - /.
- 127. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com .Items.Add(" ") .Items.Add(")"
.Items.Add(")" .Items.Add(")" .Items.Add(")" .Items.Add(")"
.Items.Add(")" .Items.Add(")" .Items.Add(" ") .Items.Add(")"
.Items.Add(")"_ .Items.Add(" ") .Items.Add(" ") .Items.Add(")"
.Items.Add(")" .Items.Add(")" .Items.Add(" ") .Items.Add(")"
.Items.Add(")" .Items.Add(")" .Items.Add(")" .Items.Add(")"
.Items.Add(")" .Items.Add(")"_ .Items.Add(")" .Items.Add(")"
.Items.Add(")" .Items.Add(")" .Text = " " .RightToLeft =
Windows.Forms.RightToLeft.Yes .ForeColor = Color.Red End With '
Strech PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
TextBox1.Text = "Choose the name of country which flag is shown
above." ' Call Flageshow() End Sub Private Sub Button1_Click(ByVal
sender As System.Object, ByVal e As System.EventArgs) Handles
Button1.Click ' Call Flageshow() ComboBox1.Text = " " TextBox1.Text
= "Choose the name of country which flag is shown above." r = 0
TextBox2.Text = r w = 0 TextBox3.Text = w End Sub Private Sub
Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click ' a = ComboBox1.Text If
PictureBox1.ImageLocation = ("c:images" + a + ".png") Then
TextBox1.Text = "Congratulations.Right result." r = r + 1
TextBox2.Text = r Else TextBox1.Text = "Sorry.Wrong answer.The
right country is " + nameflage + " ." w = w + 1 TextBox3.Text =
w
- 128. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com End If End Sub Private Sub
Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click ' Call Flageshow()
ComboBox1.Text = " " TextBox1.Text = "Choose the name of country
which flag is shown above." End Sub ' Sub Flageshow() ' Dim n As
Integer ' Randomize() n = Rnd() * 26 Select Case n Case 1
PictureBox1.Load("c:images .png") nameflage = " " Case 2
PictureBox1.Load("c:images.png") nameflage = "" Case 3
PictureBox1.Load("c:images.png") nameflage = "" Case 4
PictureBox1.Load("c:images.png") nameflage = "" Case 5
PictureBox1.Load("c:images.png") nameflage = "" Case 6
PictureBox1.Load("c:images.png") nameflage = "" Case 7
PictureBox1.Load("c:images.png") nameflage = "" Case 8
PictureBox1.Load("c:images .png") nameflage = " " Case 9
PictureBox1.Load("c:images .png") nameflage = " " Case 10
PictureBox1.Load("c:images._png") nameflage = ""_ Case 11
PictureBox1.Load("c:images.png") nameflage = "" Case 12
PictureBox1.Load("c:images.png") nameflage = "" Case 13
PictureBox1.Load("c:images.png") nameflage = "" Case 14
PictureBox1.Load("c:images._png") nameflage = ""_ Case 15
PictureBox1.Load("c:images.png") nameflage = "" Case 16
- 129. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com PictureBox1.Load("c:images._png") nameflage
= ""_ Case 17 PictureBox1.Load("c:images.png") nameflage = "" Case
18 PictureBox1.Load("c:images.png") nameflage = "" Case 19
PictureBox1.Load("c:images.png") nameflage = "" Case 20
PictureBox1.Load("c:images .png") nameflage = " " Case 21
PictureBox1.Load("c:images.png") nameflage = "" Case 22
PictureBox1.Load("c:images.png") nameflage = "" Case 23
PictureBox1.Load("c:images.png") nameflage = "" Case 24
PictureBox1.Load("c:images.png") nameflage = "" Case 25
PictureBox1.Load("c:images.png") nameflage = "" Case 26
PictureBox1.Load("c:images .png") nameflage = " " Case Else '
PictureBox1.Load("c:imageswrong.png") End Select End Sub
'programming Mohamed Ahmed Youssef End Class
- 130. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 131. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com SQL Server 2005 SQL2005 . . - SQL : -
SQL2005 SQL Server Management Studio Express
http://msdn.microsoft.com/en-us/express/bb410792.aspx
http://go.microsoft.com/fwlink/?LinkId=65110
SQL2005_Service_Manager
http://moonfiles.com/in/upload/wh_18943946.zip -SQL2005 - northwnd
- PUB - . - Backup - View - Select Statment : SQL SQL" "Structured
QueryLanguage SQL . : SQLAccess SQLMicrosoft Access. SQLAccess
:Access : . )Forms(
- 132. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : : : : )MicroSoft JET( . :SQL : : : Stored
Procedures Triggers SQLMicrosoft Access : : SQL service manager : :
Windows Xp
http://www.sqldbatips.com/samples/code/SQL2005SCM/SQL2005_Service_Manager.zip
: Vista
http://www.sqldbatips.com/samples/code/SQL2005SCM/SQL2005_Service_Manager_Vista.zip
- 133. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com SQL Server Management Studio Express :
http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-
a0f62bf7796&displaylang=en
http://msdn.microsoft.com/en-us/express/bb410792.aspx ( Start ---
programs---- microsoft sql2005 ) : Server Type
- 134. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Server Name ) ( SQL service manager Server :
Authentication - Windows Authentication : - SQL Server
Authentication : . Connect :SQL SQL2005 : Object Explorer:
Microsoft SQL Server - Object Explorer ) ---... ) - Summary : :
Databases
- 135. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : : Database Master - . : Database Model - .
: Database Tempdb - . : Security : . : -Login: . -Server Role: . :
Server ObjectManagment . : Backup - . : Linked Server - ( Provider
) : Maintenance Plans - . :- Emp_info : ID - Name - Address -
Gender - Country - Birthday DatabasesNew Databases Database Name :
OK
- 136. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 137. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Tables New Tables ColumnName Data Type : Int
: - . Bigint : Int 9,223,372,036,854,775,807 . Smallint : 32,768 .
Tinyint :-. Char :
- 138. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Nchar : Unicode Varchar : (Varchar(max
:Varchar . Nvarchar ::Varchar Unicode (Nvarchar(max : (Varchar(max
**** : N**** :**** Unicode Image :**** Binary )( ( Set Primary Key
) Open Table
- 139. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : New Query : : : ( Select )( From ) :
Emp_info Select From . Execute Select * From Emp_info * . :
- 140. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com 2 - name - address - country Select Name
,Adderss ,country From Emp_info -DISTINCT Country Country : Select
DISTINCT Country From Emp_info
- 141. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com -Where : Khalid Name : Select * From
Emp_info Where Name = 'Khalid'' ** Khalid ' Khalid ' Where = <
> =< => Between Like
- 142. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com -Order By : Adderss : Select * from Emp_info
order by Adderss : -AndOr -: And -: Or . : And Select * From
Emp_info Where Adderss ='muscat' and Country='oman' Or Select *
From Emp_info Where Name ='salim' or Country='egypt'
- 143. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com SQL ::Count . : Emp_info Select Count(*)
From Emp_info :IN :Select * FromEmp_info whereCountry
IN('oman','uae'( :Between . Select From Where Between And . ) ( ...
ID JobName ContractType selary
- 144. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com DataBase DiagramsNew DataBase Diagrams ID
EmpinfoID BackUp BackUp
- 145. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Backup SQL MDF ( Pub - NorthWind ) :
http://rapidshare.com/files/120104132/SQL2000SampleDb.rar.html : (
C )
- 146. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : SQL2005 - Database - attach - Add - ( C )
: Northwind
- 147. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com -
- 148. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
---------------------------------------------------------------------------------
: Backup -
- 149. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com - -
- 150. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : : - - - Database - - To Database : ) ) -
From Device - - Add
- 151. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com - . - OK
- 152. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com - Views
- 153. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : Views Views ( Query ) ( .. ) ( View ) :
Customers : CompanyName -- ContactName : Orders : OrderDate :
[Order Details] : UnitPrice --- Quantity --- Discount : *View Views
NewView
- 154. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ) ) F5
- 155. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : ( Count - where ... ) Sort Type Filter
.
- 156. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ADO.Net 2 Programming ADO.NET .. NET .
ObjectOriented Programming, classes . NET system.datasystem.xml
ADO.NET : connected Disconnected. ADO.NET ADO ActiveX data Object
ADO Classes visualbasic 6 ADO.NET ADO . Data Providers: ADO.NET )
:SQL ServerMS Access ( ClassesADO.NET! ODBC protocol OleDb
protocol. ADO.NET Data Providers ADO.NET ADO.NETAPI : Table 1.
ADO.NET Data Providers are class libraries that allow a common way
to interact with specific data sources or protocols. The library
APIs have prefixes that indicate which provider they support.
Provider Name API Prefix Data Source Description ODBC Data Provider
Odbc Data Sources with an ODBC interface. Normally older data
bases. OleDb Data Provider OleDb Data Sources that expose an OleDb
interface, i.e. Access or Excel. Oracle Data Provider Oracle For
Oracle Data Bases. SQL Data Provider Sql For interacting with
Microsoft SQL Server. Borland Data Provider Bdp Generic access to
many data bases such as Interbase, SQL Server, IBM DB2, and Oracle.
1 -/ : .NetVisual Basic.NetPDF File
- 157. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com API: Objects Connection object- - OleDb Data
Provider ) ( API OleDb Data Provider OleDb OleDbConnection.
OdbcOdbcConnection Odbc datasource SqlSqlConnection SQL Serverdata
base. OleDb OleDb ! ADO.Net Disconnection Connection
- 158. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ADO.NET Objects : 1. Connection. 2. Command.
3. DataReader. ( ) 4. DataAdapter. ( ) 5. DataSet. ( ) :1 (ActiveX
Data Objects .NET) ADO .NET 1 -:b-s-k #C
http://www.c4arab.com/showasection.php?lssid=108 , Viewed
12/10/2008 2 -/ : Visual Basic.Net 2003)( PDF File
- 159. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com DataAdapter DataSet VB.Net 2003 Microsoft
Access k_s_b patient . : view >> server explorer 1 -/ :
.NetVisual Basic.NetPDF File 2 -:b-s-k #C
http://www.c4arab.com/showasection.php?lssid=108 , Viewed
12/10/2008
- 160. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : Server explorer : , form ( "Patient"),
form.
- 161. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com DataSet : form . : DataGrid , Form, DataGrid
Constructor...... code :
- 162. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : DataSet"Patient" . Fill oleDbDataAdapter
DataSet . DataGrid DataGridDataSet : SetDataBinding( ) DataSet .
try , catch " Exception handling " ... : .
- 163. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Reports .. Solution Explorer :
- 164. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 165. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 166. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com [-
- 167. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Section2 text1 . ]x 592[- Solution Explorer
10000 Returns this result : Company SUM(Amount) W3Schools 12600
.
- 205. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com " ")DDL(Data Definition Language Data
Definition Language (DDL) : -Create Database: -Create Table: -ALTER
TABLE: -DROP TABLE: -CREATE INDEX: )( -DROP INDEX: Create Database:
CREATE DATABASE database_name . Create Table: : CREATE TABLE
table_name ( column_name1 data_type, column_name2 data_type,
....... ) : CREATE TABLE Person ( LastName text(30), FirstName
text(30), Address text(150), Age (Number) ) .
- 206. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com CREATE INDEX: . . )(Unique Index CREATE
UNIQUE INDEX index_name ON table_name (column_name) Simple Index
CREATE INDEX index_name ON table_name (column_name) : CREATE INDEX
PersonIndex ON Person (LastName) : CREATE INDEX PersonIndex ON
Person (LastName DESC) : CREATE INDEX PersonIndex ON Person
(LastName, FirstName) Drop Drop ) ( :- : DROP DATABASE
database_name :- : : DROP TABLE table_name :- : : Syntax for
Microsoft SQLJet (and Microsoft Access): DROP INDEX index_name ON
table_name
- 207. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Syntax for MS SQL Server: DROP INDEX
table_name.index_name Syntax for IBM DB2 and Oracle: DROP INDEX
index_name Syntax for MySQL: ALTER TABLE table_name DROP INDEX
index_name : TRUNCATE TABLE table_name ALTER TABLE ). ( : ALTER
TABLE table_name ADD column_name datatype : : ALTER TABLE
table_name DROP COLUMN column_name : Person: LastName FirstName
Address Pettersen Kari Storgt 20 : To add a column named "City" in
the "Person" table: ALTER TABLE Person ADD City varchar(30) Result:
LastName FirstName Address City Pettersen Kari Storgt 20 : To drop
the "Address" column in the "Person" table:
- 208. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ALTER TABLE Person DROP COLUMN Address
Result: LastName FirstName City Pettersen Kari SELECT INTO : SELECT
column_name(s) INTO newtable [IN externaldatabase] FROM source :
SELECT * INTO Persons_backup FROM Persons :IN SELECT Persons.* INTO
Persons IN 'Backup.mdb' FROM Persons : SELECT LastName,FirstName
INTO Persons_backup FROM Persons :Where SELECT LastName,Firstname
INTO Persons_backup FROM Persons WHERE City='Sandnes' : SELECT
Employees.Name,Orders.Product INTO Empl_Ord_backup FROM Employees
INNER JOIN Orders ON Employees.Employee_ID=Orders.Employee_ID
CREATE VIEW SQL .
- 209. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com : CREATE VIEW view_name AS SELECT
column_name(s) FROM table_name WHERE condition : - - Northwind: :
CREATE VIEW [Current Product List] AS SELECT ProductID,ProductName
FROM Products WHERE Discontinued=No : SELECT * FROM [Current
Product List] : CREATE VIEW [Products Above Average Price] AS
SELECT ProductName,UnitPrice FROM Products WHERE
UnitPrice>(SELECT AVG(UnitPrice) FROM Products) : SELECT * FROM
[Products Above Average Price] : CREATE VIEW [Category Sales For
1997] AS SELECT DISTINCT CategoryName,Sum(ProductSales) AS
CategorySales FROM [Product Sales for 1997] GROUP BY CategoryName :
SELECT * FROM [Category Sales For 1997] : SELECT * FROM [Category
Sales For 1997] WHERE CategoryName='Beverages'
- 210. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com SQL Books - Oracle / . -SQL* Plus For
Oracle/ . - Oracle / . -Sections )(SQL Server 2000/ . PDF - SQL . -
/ . - Ms-SQL Server/ . - SQL Server) (/ . - Database/ . -
SQLMaaSTracK. - SQL/ . Web Sites //// 1-
http://www.kutub.info/library/list.php?cat=17 2-
http://www.arabteam2000-forum.com/index.php?showtopic=159394 3-
http://www.arabteam2000-forum.com/index.php?showtopic=87202 4-
http://www.vb4arab.com/vb/forumdisplay.php?f=34 5-
http://www.arabmoheet.net/forum/default.asp?codepage=2&forum_no=16
6-
http://www.tartoos.com/HomePage/Rtable/ComputerSchool/Programming/program6.htm
7- http://www.swalif.net/softs/swalif59/softs197329/ 8-
http://vb.vip600.com/showthread.php?t=214611 9-
http://www.hiarab.net/article5880.html 10-
http://www.boosla.com/showArticle.php?Sec=DB&id=23 11-
http://forum.mans-fci.net/viewtopic.php?f=33&t=7680&start=0&st=0&sk=t&sd=a
12- http://www.prameg.com/vb/showthread.php?t=37742 Videos:- 13-
http://www.freelearn.110mb.com/sql2000/tutorials.html
- 211. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com
- 212. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Glossary Visual Basic.Net 2005 ) (Activate
Add Form Add Project ADO .NET ) (Alignment ) (Alignment - Center )
(Alignment - Left ) (Alignment - Right )( Apostrophe Applications
Arithmetic Arithmetic Expressions Arithmetic Operator Arithmetical
Array Asc ( ) ) (Auto Size ) (Back Color ) (Back Style )
(BackGroundImage Beginner's All purpose Symbolic Instruction Code
BASIC Basic Concepts ) (Boolean ) (Border Style Break ) (Byte )
(Change CharacterCasing ) (Check Box Chr ( ) ) (Circle Classes )
(Click ) (CLS Code Window ),(Comma ) (Command Button Comparison
Operator Compiler Computer Languages Concatenation - String
Concatenation Operator
- 213. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Condition Conditional Branching Const (
Constant ) Control Box CStr( ) Current X Current Y Customize
)(.....Data Type )( DB Click ( Double Click) Defined Functions
Definition Design Mode ) (Dim (Dimension) ) (Draw Width ) (Edit
Encapsulation ) (End ) (End Sub Enterprise Edition Enum ) (Event
Event Driven Programs Event Driven Event Handler ) (EXE File )
......(Expression False ) (File ) (Fill Color ) (Fill Style Fix ( )
) (Font ) (For..... Next .. ) (Fore Color ) (Form Form Layout
Window Form Window ) (Form1.Top ) (FormBorderStyle )(.....Function
) (GroupBox Hardware ) (Height Help ) (High Level Language )
(Hscrollbar
- 214. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ) ( HScrollbar -LargeChange ) ( HScrollbar
-SmallChange ) (Icon ) (If.Then .. Else. Endif ) (PictureBox )
(Image )OOP(Inheritance . InputBox ( ) . Instr ( ) ) (Integer )
(IntelliSense list Interpreter ) (Interval ) (Label Control
Language LCase ( ) ) (Left Len ( ) Limited looping ) (Line ) (Load
Logic - logical Logical Operator ) (Long Long Integer --) (Low
Level Language Macros Main Window ) (MaxButton Multiple Document
Interface Form MDI Menu Bar MessageBox.Show Method . Mid ( ) ) (Min
Button ) (Module ) (Mouse Down ) (Mouse Move ) (Mouse Up MsgBox ( )
) (MultiLine Multimedia Multiple Branching
- 215. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com ) (Name Name Space New Project New Value
Object Object Behavior Object Name Object Oriented Programming --
Object Oriented Programming OOP Open Project Operator Options )
(Paint ) (Picture Pointer ) (Print Procedure Professional Edition
Project Explorer Window Project Window Properties Window ) (Puse
Button ) (Radio Button Randomize ) (ReadOnly Rem . Replace ( )
Reserved Functions ) (RightToLeft . Rnd ( ) ) (Run Run Mode Save
Form Save Project Scale Height ) (Scale Mode Scale Width Scrollbar
Max Value ( Maximum Value ) Scrollbar Min Value ( Minimum Value )
System Development Life Cycle SDLC Select a control );(Semi Colon
Setup Project ) (Single
- 216. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com Single Precision ) (Size Mode Snap Lines
Snippets Software Solution Solution Explorer Source Program Special
Symbols Structured Query Language SQL Stander Stander Edition
Statement Stretch String String Expressions Structured Programming
Sub Symbol Text Box Control ) (TextBox TextBox Text TimeOfDay ( ) )
(Timer Title Bar Toolbar Toolbox ) (Tools True ) (Try .. Catch
UCase ( ) Unconditional Branching User Interface V.ScrollBar Val (
) ) (Value Variable ) (View ) (Visible Visual Basic Visual
Studio.Net ) (Width Working Area
- 217. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com RReeffeerreenncceess sBook -/ : Visual Basic
. -./ : Visual Basic.Net 2005 - /. -/ ../ : /. -/ : " " /. sBook -
: " " . exe,PDF - : . -Visual Lover: VB.Net . -/ : Visual Basic .
-/ : ADO (OLEDB) . -Youssef: ADO.Net . - Kenana: Application Events
. - : .Net Framework . - : " " . - XMT: Setup . -/ : . - / : VB.Net
. -/ : Visual Basic.Net . -/ ../ : . -/ : Visual Basic.Net 2003)( .
-/ : PDF . -/ : . -/ : . -./ : VB.Net 2005)-.( -/ : . -/ : Visual
Basic.Net 2005. - / : . - : VB.Net 2005. -Ahmed Hattar: SQLVB.Net
2005. -Fahmyessia: . -/ : Visual Basic.Net 2005 . -/ :Programming
with VB.Net.
- 218. PPrroogg:: Mohamed Youssef EE__MMaaiill::
Mohamed.yoyo@gmail.com -/ : " Step By Step " . -/ : VB.Net. - : SQL
Server 2005. -/ : . Web Sites 1-
http://www.arabteam2000-forum.com/index.php?showtopic=74923 ,viewed
20/11/2008 2-
http://forum.moe.gov.om/~moeoman/vb/showthread.php?t=106540 ,viewed
19/10/2008 3- http://www.damasgate.com/vb/t92330.html ,viewed
15/07/2008 4- http://www.vb4arab.com/vb/showthread.php?p=11832
,viewed 20/06/2008 5-
http://www.vb4arab.com/vb/forumdisplay.php?f=8 ,viewed 20/12/2008
6- http://books.bdr130.net/3831.html ,viewed 22/10/2008 7-
http://www.barqalshamal.com/vb/showthread.php?t=12337 ,viewed
19/10/2008 8- http://www.kutub.info/library/list.php?cat=19 ,viewed
18/10/2008 9- http://edu.arabsgate.com/showthread.php?t=519099
,viewed 01/11/2008 10-
http://www.qwled.com/vb/forum156/thread42116.html ,viewed
25/11/2008 11- http://www.qassimy.com/vb/showthread.php?t=208438
,viewed 15/03/2009 12-
http://university.arabsbook.com/forum44/thread7093-2.html ,viewed
17/05/2008 13-
http://www.barqalshamal.com/vb/showthread.php?t=13467 ,viewed
13/01/2009 14- http://www.gulfson.com/vb/f93/t21244/ ,viewed
20/12/2008 15- http://www.emtiaz.net/vb/showthread.php?t=2643
,viewed 10/11/2008 16- http://forum.sh2soft.net/13596.htm ,viewed
06/02/2009 17- http://www.uae4ever.