فۆڕمی چوونەوەژوورە لە سی شارپ
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
پێش ئەوەی کە نووسینی ئەم بەشە دەست پێ بکەم بە تەمام دوای تاقی کردنەوە کونکوری ئەمساڵ پاکێجێک بە ناوی فێرکاری سی شارپ بە زمانی کوردی لە دوو بەشی ئاسایی و پڕۆفێشناڵ درووست بکەم و بەشێوەی کتێب بڵاوی بکەمەوە...!
بەس بۆ ئەمڕۆ گەرەکمە کە یەکێک لە گرینگترین بەشەکانی هەر پڕۆگرامێک بە ناوی فۆڕمی چوونەوە ژوورەوە ساز بکەم هەر بۆ ئەم کارە پێویستیمان بە پڕۆگرامی ویژواڵ ئەستەدیۆ و یەکێک لەو پڕۆگرامانە وا بنکەی دراو ساز دەکات هەیە (ئەکسێس، ئێس کیو ئێڵ سێرڤێر ،...) بەس وا باشترە خودی Microsoft SQL Server Databaseویژواڵ ئەستەدیۆ بەکار بهێنین.
پاشان باز کردنی ویژواڵ ئەستەدیۆ بنکەی دراوێک بە فیڵدەکانی ژێرەوە ساز بکەن:
[img]http://kurditgroup.org/sites/default/files/Capture_13.PNG[/img]
1-Username
2-Password
و دوای ئەم کارە لە فۆڕمی ئەسڵی بەرنامەکەتان دوو دانە تێکست باکس و یەک دوکمە دابنەن وەکوو ئەم وێنە:
پاشان ئەم کارە دوو جار لەسەر دوکمەکە گرتە بکەن و بچنە بەشی کۆد نووسیەکەی، ئێستە لەم بەشەر دەمانەوێت کۆنتڕۆڵێک بکەین لە سەر ئەوەی کە هەگە کەسێک username , password کەی دروست نووسی پەیامی Welcome پێ بدات و هەگە هەڵە بوو Invalid نیشان بدات.
[size= 9.5pt; font-family: Consolas; color: blue; background: white; mso-highlight: white]int[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] a, b;[/size]
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size]a=tableBindingSource.Find([size= 9.5pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white]"username"[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white],[/size][size= 9.5pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white]TextBox[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white].text);[/size]
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size]b= tableBindingSource.Find([size= 9.5pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white]"pasword"[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white],[/size][size= 9.5pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white]TextBox[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white].text);[/size]
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size][size= 9.5pt; font-family: Consolas; color: blue; background: white; mso-highlight: white]if[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] (a != -1 && b != -1 && a == b)[/size]
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size]{
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size][size= 9.5pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white]MessageBox[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white].Show([/size][size= 9.5pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white]"Welcome"[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white]);[/size]
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size]}
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size][size= 9.5pt; font-family: Consolas; color: blue; background: white; mso-highlight: white]else[/size]
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size]{
[size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size][size= 9.5pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white]MessageBox[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white].Show([/size][size= 9.5pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white]"Invalid"[/size][size= 9.5pt; font-family: Consolas; color: black; background: white; mso-highlight: white]);[/size]
[size= 9.5pt; line-height: 107%; font-family: Consolas; color: black; background: white; mso-highlight: white] [/size]}
[size= 9.5pt; line-height: 107%; font-family: Consolas; color: black] [/size]
Tablebindingsource.find = کاری دۆزینەوەی فیڵدەکانمان بۆ ئەکات
ئەگەر ئەو دەستوورە سەر توانی username,password بدۆزێتەوە ئەوە مێقداری 0دەخاتە ناو a,b بەڵام هەگەر نەیتوانی مێقداری -1
ئیستە وتومانە هەگە -1 نەبوو بنووسێت welcomeهەگە بوو بنوسێتinvalid.
[url=http://www.01world.ir/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d8%b3%d8%a7%d8%ae%d8%aa-%d9%81%d8%b1%d9%85-%d9%88%d8%b1%d9%88%d8%af-%d8%af%d8%b1-%d8%b3%db%8c-%d8%b4%d8%a7%d8%b1%d9%be-%d8%aa%d8%b5%d9%88%db%8c%d8%b1%db%8c/]Source[/url]

- کارەکان :
- بڕۆ ژوورەوە بۆ نووسینی بۆچوون