Upload
warawut
View
293
Download
1
Tags:
Embed Size (px)
DESCRIPTION
SearchDemo
Citation preview
������������������������ ���� ������������������������������������
������ �� 51282792037 ��������!� "
1. ����������� �� Create New Pro
1) ����� Windows Forms Application
2) �������� !"#�! Name:
3) (�)� OK ,-./0/1! 2�
� !"#�!Text 5�6#7�8�! windows properties
������� ���� ������������������������������������ �.�����+� ,-.�-��
� "��#� �$������%�����&�'��������
����������� Search Demo
Create New Project �� !�� "#$��%!��&'���(��)*
Windows Forms Application
Name: ��9� SearchDemo
,-./0/1! 2�
windows properties �������,=�>� ?@��9� Search Demo
�����+� ,-.�-�� 1
����� "(�����)!� %�
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 2
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
2. ������������ �����������
- ���$���$�/�������� ��0��1 FormBorderStyle >>> FixedSingle
- ���$��0�.�$�����-���,%�����.�/���� ��0��1 MaximizeBox >>> False ,%� MinmizeBox
>>> False /1! 2�
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 3
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
- ���$���$�/����,����31��%����&�� ��41����1���������� ��0��1 StartPosition >>> CenterScreen
��41��������,%���$����������3�
3. �'-!*�#�.�����
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 4
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
1) .�J��KLM�( ���!@��/0=�N0=� J��"���7#= Toolbox ����� Containers >>> GroupBox
2) � !"#�!Text �������,=� GroupBox1 ��9� (0�R= ,-./0/1! 2�
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 5
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
3) ,=��1S�.�J�� Toolbox ����� Common Controls >>> Lable
4) � !"#�!Text �������,=� Label1 ��9� �V=KR�#! ,-./0/1! 2�
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 6
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
5) ,=��1S�.�J�� Toolbox ����� Common Controls >>> TextBox
6) 5�6#7�8�! Properties name ������,=� TextBox1 ��9� txtSearch ,-./0/1! 2�
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 7
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
7) .�J�� Toolbox ����� Common Controls >>> ListBox
8) ,=��1S�.�J�� Toolbox ���( 1S! ����� Common Controls >>> Button
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 8
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
9) 5�6#7�8�! Properties Text �������,=� Button1 ��9� &Go
Properties Name �������,=� Button1 ��9� btnGo
,-./0�]^@/1! 2�
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 9
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
10) �/�]^@ Add New /1! 2� ����� Add Existing Itemb.. R ���/ Ctrl+D �e���R=.>�? Module1.vb
,-� =�gR�0=�#=!8hS�@=�e��� Add File J��"��� Module1.vb /1! 2�
������������������������ ���� ������������������������������������
������ �� 51282792037 ��������!� "
�@����/ Add ,-@�.>�?J��"��� Module1.vb
4. ���0�12!34��5%��(..0"6�&�
1) J�� Solution Explorer �����
Code) ��41���. Code �$�/����-�����
������������� ������ ���� ���
������� ���� ������������������������������������ �.�����+� ,-.�-��
� "��#� �$������%�����&�'��������
.vb 8hS�@=5�6#7�8�! Solution Explorer /1! 2�
�� Form1.vb ,%������5� F7 �1������� $�4� �%���1
�$�/����-�����
�����+� ,-.�-�� 10
����� "(�����)!� %�
(View
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 11
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
2) ����6%�%���1 Module1.vb �1��(.���.��-�� Solution Explorer ��41���. ��� ����6
������������������������ ���� ������������������������������������ �.�����+� ,-.�-�� 12
������ �� 51282792037 ��������!� "��#� �$������%�����&�'�������� "(�����)!� %�
5. ���������
�$��%���1 �1,8���( $�4� 0��1���( Debug>>> �%4�� Star debugging ����(�
�� ��
5�J����S,-���17��#=!�= (0�R=(V=7#= i�= j
K(#e)@e? i�= j K�07�/ Go 5�(V=R ��� -k�(.R�
J��@�(V=7#=�= ��2#�l,-K6/! /1! 2� @�(V=7#=
-m20�V=�7��=
- �!m20�V=�7��=