<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUcCR3k7fip7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141</id><updated>2011-11-28T01:37:46.706+02:00</updated><category term="asp" /><category term="MSSQL" /><category term="java application" /><category term="user32.dll" /><category term="Error 28" /><category term="Factory Method" /><category term="Fabrika Yordamı" /><category term="Kısa Bilgi" /><category term="SQL Server" /><category term="DLL" /><category term="SQL Server 2005" /><category term="Abstract Factory" /><category term="Tek Nesne" /><category term="java swing" /><category term="windows 7" /><category term="winform" /><category term="c#" /><category term="excel" /><category term="win7" /><category term="masterpage" /><category term="connection string" /><category term="Singleton" /><category term="Design Pattern" /><category term="işletim sistemi" /><category term="asp.net" /><category term="form kontrol" /><category term="veri okuma" /><category term="Soyut Fabrika" /><category term="Transport Level Error" /><category term="Tasarım Deseni" /><category term="master" /><title>Volkan Albayrak - Asp.Net C#</title><subtitle type="html">C - C# (Sharp) kod örneklerinin olduğu bir site.
Lig Fikstürü, EBOB, Circular Queue, Linked List, Sayıyı Yazı ile Yazma, Ödev Problemleri, ve daha niceleri...
Volkan Albayrak..
Asp.NET ile Silverlight çok yakında..</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://volkanalbayrak.blogspot.com/" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/VolkanAlbayrak-AspnetC" /><feedburner:info uri="volkanalbayrak-aspnetc" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkMGQH04fSp7ImA9Wx5SFEk.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-5313152442290996919</id><published>2010-08-10T15:37:00.007+03:00</published><updated>2010-08-10T15:47:01.335+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-10T15:47:01.335+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server" /><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL" /><title>Error 5030 - Error changing collation</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6r9PemFvZskofemeavS-4FsaUEs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6r9PemFvZskofemeavS-4FsaUEs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6r9PemFvZskofemeavS-4FsaUEs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6r9PemFvZskofemeavS-4FsaUEs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="line-height: 22px; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;The Database could not be exclusively locked to perform the operation.&lt;br /&gt;ALTER DATABASE failed. The default collation of database '&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;DatabaseName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;' cannot be set to "&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;Collation Name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;".  (Microsoft SQL Server, Error: 5030)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  color: rgb(85, 85, 85); line-height: 22px; font-family:georgia, 'Trebuchet MS', verdana, arial, sans-serif;font-size:13px;"&gt;&lt;/span&gt;Eğer veritabanınızın dil seçeneğini değiştirmeye çalışıyor fakat başaramıyorsanız ve buna benzer bir hata alıyorsanız yapmanız gereken 3 satır kodu yazıp çalıştırmak.&lt;div&gt;İyi çalışmalar..&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  color: rgb(78, 78, 78); font-family:'Segoe UI', Calibri, 'Myriad Pro', Myriad, 'Trebuchet MS', Helvetica, Arial, sans-serif;font-size:13px;"&gt;&lt;pre style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0.8em; padding-right: 0.8em; padding-bottom: 0.8em; padding-left: 0.8em; font-family: 'Courier New', Courier, 'Lucida Console', Monaco, 'DejaVu Sans Mono', 'Nimbus Mono L', 'Bitstream Vera Sans Mono'; overflow-x: hidden; overflow-y: hidden; white-space: pre-wrap; font-size: 12px; background-color: rgb(255, 255, 255); width: 483px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); "&gt;-- bu kod veritabanını "Single User" moda dönüştürür&lt;br /&gt;ALTER DATABASE DBADI SET SINGLE_USER WITH ROLLBACK IMMEDIATE&lt;br /&gt;-- bu kod ile veritabanın yeni dil ailesine dahil ederiz&lt;br /&gt;ALTER DATABASE DBADI COLLATE DILAILESIADI&lt;br /&gt;-- bu kod ile veritabanını tekrardan "Multi User" moda çeviririz&lt;br /&gt;ALTER DATABASE DBADI SET MULTI_USER&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-5313152442290996919?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/gHzAqlgLme0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/5313152442290996919/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=5313152442290996919" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5313152442290996919?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5313152442290996919?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/gHzAqlgLme0/error-5030-error-changing-collation.html" title="Error 5030 - Error changing collation" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/08/error-5030-error-changing-collation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8FQHg4eSp7ImA9Wx5TE08.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-5963942907871776503</id><published>2010-07-28T15:38:00.003+03:00</published><updated>2010-07-28T15:40:11.631+03:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-28T15:40:11.631+03:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Transport Level Error" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL" /><title>Transport Level Error</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/J1E8GfjEZjwlye4Gi3N_qbaj2N0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/J1E8GfjEZjwlye4Gi3N_qbaj2N0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/J1E8GfjEZjwlye4Gi3N_qbaj2N0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/J1E8GfjEZjwlye4Gi3N_qbaj2N0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;"A transport-level error has occurred when sending the request to the server. (provider: Named Pipes Provider, error: 0 - An unexpected network error occurred.)"&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Böyle bir hata alıyorsanız Management Studio SQL Server ile olan bağlantısını kaybetmiş demektir. File'dan tekrar bağlan dediğinizde sorunun çözüldüğünü göreceksiniz.&lt;/div&gt;&lt;div&gt;İyi çalışmalar..&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-5963942907871776503?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/DqNfnXxfJPU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/5963942907871776503/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=5963942907871776503" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5963942907871776503?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5963942907871776503?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/DqNfnXxfJPU/transport-level-error.html" title="Transport Level Error" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/07/transport-level-error.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04MQHk9fSp7ImA9WxBWF0w.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-5874490950350670016</id><published>2010-02-09T13:45:00.000+02:00</published><updated>2010-02-09T13:46:21.765+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-09T13:46:21.765+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="asp" /><title>Datalist Kontrolü</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dczD1Nwb9yJ7VNha8_r9TVlntwc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dczD1Nwb9yJ7VNha8_r9TVlntwc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dczD1Nwb9yJ7VNha8_r9TVlntwc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dczD1Nwb9yJ7VNha8_r9TVlntwc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Bir makale sitesinde yazıların başlıklarının altalta dizildiğini düşünün ve başlığa tıklandığında o yazıya gitmek istiyoruz diyelim. Bunu datalist ile yapmak istersek yazılacak kod buna cok benzerdir. Yalnızca sayfa ismi yada datasource farklılık gösterebilir.&lt;br /&gt;&lt;br /&gt;Datalist'i sayfamıza eklediğimizde "Edit Item Template" kısmında nasıl görünmesini istiyorsak o şekilde dizayn edebiliriz. Mesela ben içine bir tablo attım, tablo içine de bir adet HyperLink attım. Datasource bağlandığı anda ki bu kod tarafında da bağlanabilir, "Baslik" ve "ID" kısmımlarını Eval komutu ile çekiyor.&lt;br /&gt;&lt;pre&gt;&amp;lt;asp:DataList ID="DataList1" runat="server" Width="800px" DataSourceID="AccessDataSource2"&amp;gt;&lt;br /&gt;     &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;           &amp;lt;table &amp;gt;&lt;br /&gt;              &amp;lt;tr&amp;gt;&lt;br /&gt;                 &amp;lt;td&amp;gt;&lt;br /&gt;                    &amp;lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&amp;lt;%#"Post.aspx?ID="+ Eval("ID") %&amp;gt;'&lt;br /&gt;                         Text='&amp;lt;%# Eval("Baslik") %&amp;gt;'&amp;gt;&amp;lt;/asp:HyperLink&amp;gt;&lt;br /&gt;                 &amp;lt;/td&amp;gt;&lt;br /&gt;              &amp;lt;/tr&amp;gt;&lt;br /&gt;           &amp;lt;/table&amp;gt;            &lt;br /&gt;     &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;     &amp;lt;ItemStyle BackColor="white" /&amp;gt;&lt;br /&gt;&amp;lt;/asp:DataList&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:AccessDataSource ID="AccessDataSource2" runat="server"&lt;br /&gt;    DataFile="~/App_Data/Forum.mdb"&lt;br /&gt;    SelectCommand="SELECT * FROM [Konular] ORDER BY [Tarih] DESC"&amp;gt;&lt;br /&gt;&amp;lt;/asp:AccessDataSource&amp;gt;&lt;/pre&gt;&lt;br /&gt;Daha fazla kayıt olduğu durumlarda "AlternatingItemTemplate" de kullanılabilir. Mesela bir satırın mavi bir satırın beyaz olmasını isteyebiliriz. Aşağıdaki bölümü datalist içine eklememiz yeterli olacaktır bunun için.&lt;br /&gt;&lt;pre&gt;&amp;lt;AlternatingItemTemplate&amp;gt;&lt;br /&gt;     &amp;lt;table &amp;gt;&lt;br /&gt;        &amp;lt;tr&amp;gt;&lt;br /&gt;           &amp;lt;td&amp;gt;&lt;br /&gt;              &amp;lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&amp;lt;%#"Post.aspx?ID="+ Eval("ID") %&amp;gt;'&lt;br /&gt;                  Text='&amp;lt;%# Eval("Baslik") %&amp;gt;'&amp;gt;&amp;lt;/asp:HyperLink&amp;gt;&lt;br /&gt;           &amp;lt;/td&amp;gt;&lt;br /&gt;        &amp;lt;/tr&amp;gt;&lt;br /&gt;     &amp;lt;/table&amp;gt;                       &lt;br /&gt;&amp;lt;/AlternatingItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;AlternatingItemStyle BackColor="blue" /&amp;gt;&lt;/pre&gt;&lt;br /&gt;Datalistimize Başlık eklemek istersek eğer "HeaderTemplate" tam işimize yarayacak bölüm. Aynı şekilde "FooterTemplate" de mevcut.&lt;br /&gt;&lt;pre&gt;&amp;lt;HeaderTemplate&amp;gt; Başlık &amp;lt;/HeaderTemplate&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;FooterTemplate&amp;gt; Bu da Alt Kısım &amp;lt;/FooterTemplate&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-5874490950350670016?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/pQFkEVHAGiU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/5874490950350670016/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=5874490950350670016" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5874490950350670016?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5874490950350670016?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/pQFkEVHAGiU/datalist-kontrolu.html" title="Datalist Kontrolü" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/02/datalist-kontrolu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AEQXYyfyp7ImA9WxBWE0o.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-8884810641070216925</id><published>2010-02-05T15:10:00.002+02:00</published><updated>2010-02-05T15:15:00.897+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-05T15:15:00.897+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Kısa Bilgi" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="Error 28" /><title>Error 28 - SQL Server doesn't Support Requested Protocol</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sefnbnTRy6UPhTq75CJIuTYrvnI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sefnbnTRy6UPhTq75CJIuTYrvnI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sefnbnTRy6UPhTq75CJIuTYrvnI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sefnbnTRy6UPhTq75CJIuTYrvnI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Bugün sql server'a bağlanmaya çalışırken aldığım ve saatlerce nedenini bulamadığım bir hata :)&lt;br /&gt;Tabi ki de şu an çözümünü buldum ve paylaşmak istedim.&lt;br /&gt;Öncelikle "SQL Server Configuration Manager" ı çalıştırıyoruz. Protocols kısmından TCP/IP yi "enabled" yapıyoruz. Ki bu ayar ilk yüklendiğinde "disabled" olarak geliyor.&lt;br /&gt;(Başka bir sorun olmuştu da bugun tekrar yüklemek zorunda kaldım :) )&lt;br /&gt;Ardından ayarların aktif olması için Windows servislerden SQLServer servisini yeniden başlatıyoruz. Artık sorunsuzca bağlanabilirsiniz :)&lt;br /&gt;İyi çalışmalar..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-8884810641070216925?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/DEGHzretI1g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/8884810641070216925/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=8884810641070216925" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/8884810641070216925?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/8884810641070216925?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/DEGHzretI1g/error-28-sql-server-doesnt-support.html" title="Error 28 - SQL Server doesn't Support Requested Protocol" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/02/error-28-sql-server-doesnt-support.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8HRX0_fyp7ImA9WxBXE0g.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-809775040214372590</id><published>2010-01-24T02:09:00.004+02:00</published><updated>2010-01-24T18:33:54.347+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-24T18:33:54.347+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Design Pattern" /><category scheme="http://www.blogger.com/atom/ns#" term="Soyut Fabrika" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="Tasarım Deseni" /><category scheme="http://www.blogger.com/atom/ns#" term="Abstract Factory" /><title>Tasarım Desenleri : Abstract Factory</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lsKoffKvM_jedB-biqDc7kTmLkI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lsKoffKvM_jedB-biqDc7kTmLkI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lsKoffKvM_jedB-biqDc7kTmLkI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lsKoffKvM_jedB-biqDc7kTmLkI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Bu desen &lt;a href="http://volkanalbayrak.blogspot.com/2010/01/tasarm-desenleri-factory-method.html"&gt;&lt;span class="Apple-style-span"  style="color:#FFCC66;"&gt;Factory Method&lt;/span&gt;&lt;/a&gt; desenine çok benzer. Amaç yine aynıdır. Sistemden nesnelerin oluşma işini soyutlar. Abstract Factory benzer özellikleri olan nesne fabrikalarını gruplar. İçinde birden fazla fabrika vardır.&lt;br /&gt;Örneğimizde birden fazla türde database'de kaydetme ve sorgulama işlemlerini gruplamak için soyut fabrikayı kullanıyoruz : &lt;a target="_blank" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8xvA003mIvA/S1uJnrfptXI/AAAAAAAAAIc/hAGweN1UuM0/s1600-h/soyutFabrika2.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_8xvA003mIvA/S1uJnrfptXI/AAAAAAAAAIc/hAGweN1UuM0/s1600/soyutFabrika2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5430085090508649842" /&gt;&lt;/a&gt;&lt;br /&gt;Kısaca kodlarına da bakalım :&lt;br /&gt;Önce ürünlerimizin gerçek ve soyut sınıflarını yazıyoruz.&lt;br /&gt;Kaydetme.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;interface Kaydetme&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;void kaydet(string cumle);&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;SQLBaglanti.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class SQLBaglanti:Kaydetme&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public void kaydet(string cumle)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;MessageBox.Show("sql'e kaydedildi");&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;AccessBaglanti.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class AccessBaglanti:Kaydetme&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public void kaydet(string cumle)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;MessageBox.Show("access'e kaydedildi");&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Komut.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;interface Komut&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;void sorgula(string query);&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;SQLSorgu.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class SQLSorgu:Komut&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public void sorgula(string query)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;MessageBox.Show("sql'de sorgu oluştu");&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;AccessSorgu.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class AccessSorgu:Komut&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public void sorgula(string query)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;MessageBox.Show("access'de sorgu oluştu");&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;BaglantiFabrikası.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;interface BaglantiFabrikası&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;Kaydetme kaydetmeİşiYap();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;Komut sorgulamaİşiYap();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;SQLFabrikası.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class SQLFabrikası :&lt;/span&gt; &lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;BaglantiFabrikası&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public Kaydetme kaydetmeİşiYap()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new SQLBaglanti();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public Komut sorgulamaİşiYap()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new SQLSorgu();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;AccessFabrikası.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class AccessFabrikası:BaglantiFabrikası&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public Kaydetme kaydetmeİşiYap()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new AccessBaglanti();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public Komut sorgulamaİşiYap()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new AccessSorgu();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Fabrika.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class Fabrika&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public BaglantiFabrikası fabrikaAl(string tip)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;if (tip == "mssql")&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new SQLFabrikası();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;br /&gt;else if (tip == "access")&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new AccessFabrikası();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return new SQLFabrikası();//if'lere girmez ise bu olacak&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;ve kullanmak istediğimiz yer :&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;BaglantiFabrikası fab = new Fabrika().fabrikaAl("mssql");&lt;br /&gt;Komut cmd = fab.sorgulamaİşiYap();&lt;br /&gt;Kaydetme cn = fab.kaydetmeİşiYap();&lt;br /&gt;&lt;br /&gt;cmd.sorgula("");&lt;br /&gt;cn.kaydet("");&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;(NOT: UML, &lt;a href="http://www.tasarimdesenleri.com/creator/abstractFactory.action" target="_blank"&gt;&lt;span  style="color:#FFCC66;"&gt;Tasarım Desenleri&lt;/span&gt;&lt;/a&gt; sitesinden alınıp düzenlenmiştir.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-809775040214372590?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/pqOxGuifz1U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/809775040214372590/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=809775040214372590" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/809775040214372590?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/809775040214372590?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/pqOxGuifz1U/tasarm-desenleri-abstract-factory.html" title="Tasarım Desenleri : Abstract Factory" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_8xvA003mIvA/S1uJnrfptXI/AAAAAAAAAIc/hAGweN1UuM0/s72-c/soyutFabrika2.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/tasarm-desenleri-abstract-factory.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMDQHsyfSp7ImA9WxBXEks.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-1066770361483795466</id><published>2010-01-23T18:15:00.003+02:00</published><updated>2010-01-23T19:07:51.595+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-23T19:07:51.595+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Design Pattern" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="Tasarım Deseni" /><category scheme="http://www.blogger.com/atom/ns#" term="Fabrika Yordamı" /><category scheme="http://www.blogger.com/atom/ns#" term="Factory Method" /><title>Tasarım Desenleri : Factory Method</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ob8MyxM8z9J5maZoH5y7e-Vl-uw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ob8MyxM8z9J5maZoH5y7e-Vl-uw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ob8MyxM8z9J5maZoH5y7e-Vl-uw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ob8MyxM8z9J5maZoH5y7e-Vl-uw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Bu tasarım deseni nesne oluşturma işini sistemden ayırır ve aldığı parametreye göre nesneleri oluşturarak kullanıcıya geri döner.&lt;br /&gt;Bir örnek verecek olursak düşünün ki gezmeye giderken farklı yöntemleriniz olsun. Ben şimdilik iki tane kullanacağım : Araba ve Bisiklet. Bu iki sınıf "Yöntem" arayüzümüzden türemişler. Bir adet de YöntemFabrika'mız var.&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;br /&gt;Yöntem.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;interface Yöntem&lt;br /&gt;{ &lt;br /&gt;&lt;/span&gt;&lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;void Gez();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Araba.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class Araba : Yöntem&lt;br /&gt; {&lt;br /&gt;&lt;/span&gt;      &lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; public void Gez()&lt;br /&gt;     {&lt;br /&gt;&lt;/span&gt;          &lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; MessageBox.Show("arabayla geziyorum");&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;     }&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt; }&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Bisiklet.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class Bisiklet : Yöntem&lt;br /&gt;  {&lt;br /&gt;&lt;/span&gt;        &lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public void Gez()&lt;br /&gt;      {&lt;br /&gt;&lt;/span&gt;           &lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; MessageBox.Show("bisikletle geziyorum");&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;      }&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;YöntemFabrikası.cs&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class YöntemFabrikası&lt;br /&gt;  {&lt;br /&gt;&lt;/span&gt;        &lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public Yöntem yöntemYarat(string opt)&lt;br /&gt;      {&lt;br /&gt;&lt;/span&gt;            &lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;if (opt == "arabayla")&lt;br /&gt;&lt;/span&gt;                &lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new Araba();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;          else if(opt=="bisikletle")&lt;br /&gt;&lt;/span&gt;                &lt;span style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;return new Bisiklet();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;br /&gt;          return new Araba();//if'lere girmezse&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;      }&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;ve kullanacağımız yer&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;div style="margin-left:10px"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;string parametre = &lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;//istenilen yerden dinamik olarak çekilebilir&lt;/span&gt;&lt;br /&gt;Yöntem y = new YöntemFabrikası().yöntemYarat(parametre );&lt;br /&gt;y.Gez();&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-1066770361483795466?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/XZ0SqvszNSo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/1066770361483795466/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=1066770361483795466" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/1066770361483795466?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/1066770361483795466?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/XZ0SqvszNSo/tasarm-desenleri-factory-method.html" title="Tasarım Desenleri : Factory Method" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/tasarm-desenleri-factory-method.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMDQHsyfip7ImA9WxBXEks.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-600355586842210971</id><published>2010-01-23T17:55:00.003+02:00</published><updated>2010-01-23T19:07:51.596+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-23T19:07:51.596+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Design Pattern" /><category scheme="http://www.blogger.com/atom/ns#" term="Tek Nesne" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="Tasarım Deseni" /><category scheme="http://www.blogger.com/atom/ns#" term="Singleton" /><title>Tasarım Desenleri : Singleton</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/l5xNoWgBbRqOoLdVVG69SjTLgZI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l5xNoWgBbRqOoLdVVG69SjTLgZI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/l5xNoWgBbRqOoLdVVG69SjTLgZI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l5xNoWgBbRqOoLdVVG69SjTLgZI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Türkçe'ye Tek Nesne olarak çevrilen bu tasarım desenindeki ana amaç bir nesnenin yalnızca bir kez oluşturulabilmesidir. Buna neden ihtiyaç duyarız sorusuna gelince mesela bir bağlantıyı dinleyen nesneniz olsun. Bunu ikince kez yaratmak kimi zaman sorunlara yol açabilir. Sonuçta bunlar sonsuz threadlerdir. Onun yerine bu nesne bir kez yaratılsın ve ihtiyaç duyulduğu zaman daha önce oluşan nesne oraya gitsin ve işlerini halletsin isteriz.&lt;div&gt;Basit bir örnek verelim :&lt;/div&gt;&lt;div style="margin-left:10px;"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class RandomSayıVerici&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;    {&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-left:10px;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        private RandomSayıVerici() { }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        private static Random r = new Random();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        public static Random nesneAl()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        { return r; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        public static int sayiVer(int min, int max)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            return r.Next(min, max);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        public static int sayiVer(int max)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            return r.Next(max);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        public static int sayiVer()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            return r.Next();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Şimdi biz bu örnekte bir adet RandomSayiVerici oluşturduk. Özellikle Random sınıfını kullandım çünkü özellikle yani başlan bir çok kişi bu sınıfın sürekli aynı sayı ürettiğini düşünüyor. Ama kaçırdıkları şey sınıfı sürekli baştan yaratmaları. Ve bunun bir döngü içinde olduğu düşünülürse mikro saniyeler seviyesinde sayı değişimi çok da fazla olmayacaktır. İstenilen yerde :&lt;div style="margin-left:10px;"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;TextBox1.Text += RandomSayıVerici.sayiVer(0, 53).ToString() ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;şeklinde kullanılması yeterli.&lt;/div&gt;&lt;div&gt;İyi çalışmalar..&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-600355586842210971?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/8coNAUjphP0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/600355586842210971/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=600355586842210971" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/600355586842210971?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/600355586842210971?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/8coNAUjphP0/tasarm-desenleri-singleton.html" title="Tasarım Desenleri : Singleton" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/tasarm-desenleri-singleton.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUEQngyeCp7ImA9WxBXEUU.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-5940525372393200424</id><published>2010-01-22T19:05:00.003+02:00</published><updated>2010-01-22T19:10:03.690+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-22T19:10:03.690+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows 7" /><category scheme="http://www.blogger.com/atom/ns#" term="win7" /><category scheme="http://www.blogger.com/atom/ns#" term="işletim sistemi" /><title>Windows 7 Godmode</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/U4QRjogfdUPd7O5Nz3Kz1SybE-I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U4QRjogfdUPd7O5Nz3Kz1SybE-I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/U4QRjogfdUPd7O5Nz3Kz1SybE-I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U4QRjogfdUPd7O5Nz3Kz1SybE-I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hani oyunlarda şifreler olur ya bu da windows'un enteresan ve kullanışlı bir şifresi diyebiliriz. Yazdığınızda bütün ayarların tek bir elde toplanması bayağı bir işe yarıyor.&lt;br /&gt;Şİmdi bir klasör oluşturun ve adını :&lt;div style="margin-left:10px"&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;koyun. Göreceksiniz ki simgesi değişecek. İçine girdiğinizde ise normal yollardan bulunması çok zor olan bir çok ayar artık elinizin altında.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-5940525372393200424?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/ORghZKrgBTM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/5940525372393200424/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=5940525372393200424" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5940525372393200424?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/5940525372393200424?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/ORghZKrgBTM/windows-7-godmode.html" title="Windows 7 Godmode" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/windows-7-godmode.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMCRHczeip7ImA9WxBQGUk.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-2429356085043670869</id><published>2010-01-20T00:15:00.002+02:00</published><updated>2010-01-20T00:34:25.982+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-20T00:34:25.982+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="master" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="masterpage" /><category scheme="http://www.blogger.com/atom/ns#" term="asp" /><title>MasterPage kavramı</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9ffXa15fIB6MvIwK7kNvaENNEL4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9ffXa15fIB6MvIwK7kNvaENNEL4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/9ffXa15fIB6MvIwK7kNvaENNEL4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9ffXa15fIB6MvIwK7kNvaENNEL4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Düşünün ki 100'lerce sayfadan oluşan bir siteniz var ve hepsinde belli yerler sabit. Örnek verecek olursak menüler genelde sabit olur ya da en altta yer alan açıklamalar vs. gibi. Bunların içinde bir yerde değişiklik yapmanız gerektiğinde hepsini tekrar düzenlemeniz gerekiyordu önceleri. Fakat masterpage kavramının gelmesiyle bu sorun ortadan kalktı. Artık sabit olan tarafları masterpage içinde yaratıp normal içerik sayfaları bu masterpage'i kullanarak türeyebiliyor. Sanki yeni gibi anlatıyorum ama bu çıkalı bayağı bir oluyor :) hemen küçük bir örnekle konumuzu özetleyelim :&lt;br /&gt;&lt;br /&gt;MasterPage.master&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;br /&gt;Burada göreceksiniz ki html sayfasında olması gereken ana tag'ler var. Çünkü buradan türeyen sayfalar body taginin içinde yer alan contentpalceholder içine gömülürler serverde işlenirken.&lt;br /&gt;  &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Defalut1.aspx&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;br /&gt;Hemen solutionExplorer'dan oluşturduğumuz masterpage'e sağ tıklayıp "add content page" diyoruz.Türeyen sayfada hiçbir html tagi bulunmuyor çünkü onlar zaten masterpagede var. Hemen en başta MasterPageFile="~/MasterPage.master" dikkatinizi çekmiştir. Türeyen sayfalarda "content" tagi bulunur ve sayfa tasarım ve içeriği bu iki tag arasına gömülür.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Default2.aspx&lt;br /&gt;&lt;div style="margin-left:10px"&gt;&lt;br /&gt;Ayrıca bir sayfanın birden fazla masterpagei olabilir. Bunun faydalarından birisi de; hatta hemen örnek vererek açıklayalım. Bir üniversite sitesi olsun bunun bir ana sayfası var yukarıda üniversite logosu olan. 5 adet fakülte var üniversitede. ve her bir fakültede ayrı ayrı acıklamalar vs var. Bunun tasarımında biden fazla masterpage kullanmak yararımıza olacaktır. Bir tanesi en üstte yer alıp sadece üniversite logosunu ve ana menüleri taşır. Bundan türeyen fakülte masterpage'leri kendi fakültesine özgü menüleri taşır. Ana masterdan türedikleri için üniversite logosunu da taşımış olurlar. ve artık ürettiğimiz fakülte masterpagelerinden dilediğimiz kadar dinamik içerik sayfaları oluşturabiliriz :)&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-2429356085043670869?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/NuUMWARgJ7A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/2429356085043670869/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=2429356085043670869" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/2429356085043670869?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/2429356085043670869?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/NuUMWARgJ7A/masterpage-kavram.html" title="MasterPage kavramı" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/masterpage-kavram.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUNRHs8cCp7ImA9WxBQGU4.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-1527197009599508890</id><published>2010-01-19T23:45:00.003+02:00</published><updated>2010-01-19T23:58:15.578+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-19T23:58:15.578+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="connection string" /><category scheme="http://www.blogger.com/atom/ns#" term="veri okuma" /><category scheme="http://www.blogger.com/atom/ns#" term="excel" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><title>Excel'den Veri Okuma</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/d1kPFJ1EqOMRxPDbw5mlRADYDn0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d1kPFJ1EqOMRxPDbw5mlRADYDn0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/d1kPFJ1EqOMRxPDbw5mlRADYDn0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d1kPFJ1EqOMRxPDbw5mlRADYDn0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Programlamaya yeni başlayanların "ya bu veri tabanları tamam da excel ne ayak?" dedikleri çok olmuştur. Aslında hiç bir farkı yok :) biraz connectionString değişiyor biraz da sorgu cümlesi. Hatta sorgu cümlesinde neredeyse hiç fark yok :) Hadi gelin birlikte bakalım :&lt;div style="margin-left:10px"&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;DataTable getirTumATSTablo()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        { &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-left:10px"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            string dosya_adres=@"C:\Deneme.xls";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            OleDbConnection baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + dosya_adres + ";Extended Properties=Excel 8.0");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                baglanti.Open();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                string query = "select * from [Tablo1$A2:F450] ";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                OleDbDataAdapter oAdp = new OleDbDataAdapter(query, baglanti);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                DataTable dt = new DataTable();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                oAdp.Fill(dt);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            return dt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Şimdi bizim excel'imizin ilk sayfasının adı Tablo1 olsun ve bu sayfada A2 den F450'ye kadar verilerimizin olduğunu düşünelim. Yani ilk iki satır boş diyelim ki orada başlıklar var almaya gerek yok. Sorgu cümlesini inceleyecek olursak "from"dan sonra sayfamızın adı ve çekmek istediğimiz bölümü yazdığımızı göreceksiniz. Aslında bu da bu kadar kullanımı kolay bir örnek.&lt;/div&gt;&lt;div&gt;Hepinize iyi çalışmalar..&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-1527197009599508890?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/P3r8zP8rKQg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/1527197009599508890/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=1527197009599508890" title="3 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/1527197009599508890?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/1527197009599508890?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/P3r8zP8rKQg/excelden-veri-okuma.html" title="Excel'den Veri Okuma" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>3</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/excelden-veri-okuma.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUARXY-fCp7ImA9WxBQFk4.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-4446707569707655453</id><published>2010-01-16T11:36:00.008+02:00</published><updated>2010-01-16T12:04:04.854+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-16T12:04:04.854+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="winform" /><category scheme="http://www.blogger.com/atom/ns#" term="java application" /><category scheme="http://www.blogger.com/atom/ns#" term="java swing" /><title>Java Swing</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/esngJ7fN6TZNdGteONXD3CAkiEs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/esngJ7fN6TZNdGteONXD3CAkiEs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/esngJ7fN6TZNdGteONXD3CAkiEs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/esngJ7fN6TZNdGteONXD3CAkiEs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Kısaca bir bakalım neymiş bu "swing" kütüphanesi. Aslında windowsform'larda sıkça karşılaştığımız button, label vs. gibi objeleri barındıran bir kütüphanedir. Biraz da kodlayalım bakalım :&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-style: italic; line-height: 15px; white-space: pre; font-family:monospace, sans-serif;font-size:13px;"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; //Gerekli kütüphaneleri ekliyoruz&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, sans-serif;font-size:13px;"&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="co2"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;java.awt.EventQueue&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="co2"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;java.awt.FlowLayout&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="co2"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;javax.swing.JButton&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="co2"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;javax.swing.JFrame&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="co2"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;javax.swing.JLabel&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="co2"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;javax.swing.WindowConstants&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; color: black; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#339933;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; white-space: normal; "&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; SwingExample &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;   &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw4" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; main&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; args&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;EventQueue&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;invokeLater&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;Runnable&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            @Override&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw4" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; run&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; color: black; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: normal; white-space: normal; "&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;//Penceremizi oluşturuyoruz&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;JFrame&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; f &lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;JFrame&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="st0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;"swing örnek"&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;// nesnelerimizin nasıl duracağını belirliyoruz&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                f.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;setLayout&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;FlowLayout&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;//Bir kaç nesne ekliyoruz&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                f.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;add&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;JLabel&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="st0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;"http://volkanalbayrak.blogspot.com/"&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                f.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;add&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw1" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;JButton&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="st0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;"Git :)"&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                f.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;pack&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;//java da eğer bunu yazmazsak pencere kapandığında program &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;//arkada çalışmaya devam edecektir. Sadece görünmez olacak&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;//O nedenle bu fonksiyonu ekliyoruz ki program kapansın :)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;               f.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;setDefaultCloseOperation&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw3"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;WindowConstants&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;DISPOSE_ON_CLOSE&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                &lt;/span&gt;&lt;span class="co1" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;//ve Pencere gelsin :)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;                f.&lt;/span&gt;&lt;span class="me1"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;setVisible&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="kw2" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;        &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="sy0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;    &lt;/span&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="de1" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; background-color: initial; line-height: normal; font-family: monospace, sans-serif !important; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; vertical-align: top; "&gt;&lt;span class="br0"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;Peki nedir bu en baştaki "awt" kütüphanesi diyeceksiniz. &lt;a href="http://tr.wikipedia.org/wiki/AWT"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;Wiki'de&lt;/span&gt;&lt;/a&gt; kısa ve güzel bir açıklama buldum bunlar için :&lt;/div&gt;&lt;div&gt;"&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;AWT (Abstract Windowing Toolkit), Java Programlama dilinin, platformdan bağımsız, görsel (graphical) kullanıcı arayüzü üretimini sağlayan araç kütüphanesidir. Java Foundation Classes (JFC) olarak adlandırılan standardize edilmis JAVA uygulama geliştirme arayüzünün önemli bir parçasıdır. Sonradan yeterli görülmeyerek geliştirilmesi sonucunda SWING adı verilen, daha gelişmiş bir kütüphane kullanılmaya başlanmıştır.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;AWT kütüphanesinin en büyük dezavantajı, kullanıldığı platformda, grafik tabanlı bileşenlere doğrudan aracı katmanlar bulunmadan ulaşmasıdır. Bu sebepten, her platformda kullanılan farklı grafik bileşenlerinin ortak özellikleri kullanılmış, platformdan platformda değişebilen bazı farklılıklar göz ardı edilmiştir. "Bir kere yaz, her yerde çalıştır" sloganına pek uymayan bu durumda, UNIX sisteminde çalışan bir program, MAC platformunda çalışıldığında farklı sonuçlar doğurabilmiştir.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#C0C0C0;"&gt;Sorun, JAVA grafik bileşenleri ile platform özellikleri arasına her duruma uygun kontroller sağlayabilen, daha "kalın" bir kütüphane katmanı SWINGkoyularak çözülmüştür. JDK'nın 2. versiyonda kullanılmaya başlanan SWING kütüphanesinde, her görsel bileşen (widget), platforma bağımlı olarak değil, SWING'e bağımlı olarak çalışır.&lt;/span&gt;"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-4446707569707655453?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/tChLcAerLBs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/4446707569707655453/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=4446707569707655453" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/4446707569707655453?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/4446707569707655453?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/tChLcAerLBs/java-swing.html" title="Java Swing" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/java-swing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0INRX89eyp7ImA9WxBQFk4.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-357648925326079172</id><published>2010-01-16T10:24:00.005+02:00</published><updated>2010-01-16T10:46:34.163+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-16T10:46:34.163+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="user32.dll" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="DLL" /><category scheme="http://www.blogger.com/atom/ns#" term="form kontrol" /><title>Windows DLL'leri ile Pencere Kontrolü</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2bvI0_Wu5kKudK4e7cfnN3GEoi4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2bvI0_Wu5kKudK4e7cfnN3GEoi4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2bvI0_Wu5kKudK4e7cfnN3GEoi4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2bvI0_Wu5kKudK4e7cfnN3GEoi4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;     &lt;/span&gt;Hemen hızlı bir giriş yapalım değil mi :)&lt;br /&gt;Şimdi asıl olay şu yaptığımız bir programdan diğer açık olan program pencerelerini nasıl kontrol ederiz? Tabiki user32 DLL'i ile :)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;      &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;[DllImport("user32.dll")]&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public static extern int FindWindow(&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;string lpClassName, // class name&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;string lpWindowName // window name&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Bu fonksiyon bizim açık olan programı buluyor ve bize onun Windows altındaki ID'sini veriyor. Tabiki "windows name" parametresine programın tam adının yazılması gerekli.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;     &lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;[DllImport("user32.dll")]&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public static extern int SetForegroundWindow(&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;int hWnd // handle to window&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Burası ise biraz önceki ID değerini alarak, bu ID'ye sahip olan pencereyi ön tarafa getiriyor.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;     &lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;[DllImport("user32.dll")]&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;public static extern int SendMessage(&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;int hWnd, // handle to destination window&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;uint Msg, // message&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;int wParam, // first message parameter&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;int lParam // second message parameter&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#66CCCC;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;     &lt;/span&gt;Bu fonksiyonla ise açık olan pencereye mesaj gönderebiliyoruz. Mesela klavyeye dokunmadan notpad'i aktif yapıp oraya birşeyler yazabiliriz :)&lt;br /&gt;Gerisi sizin hayal gücünüze ve yapmak istediklerinize kalmış. Sormak istediğiniz bir şey varsa çekinmeyin hemen sorun. Mümkün olan en kısa sürede cevaplamaya çalışacağım.&lt;br /&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;     &lt;/span&gt;İyi çalışmalar..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-357648925326079172?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/QiUMJQsQdQk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/357648925326079172/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=357648925326079172" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/357648925326079172?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/357648925326079172?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/QiUMJQsQdQk/windows-dllleri-ile-pencere-kontrolu.html" title="Windows DLL'leri ile Pencere Kontrolü" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/windows-dllleri-ile-pencere-kontrolu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQFQ3wycSp7ImA9WxBWEEQ.&quot;"><id>tag:blogger.com,1999:blog-8766974251424129141.post-6116619253929801707</id><published>2010-01-16T10:22:00.003+02:00</published><updated>2010-02-02T09:55:12.299+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-02T09:55:12.299+02:00</app:edited><title>Merhaba</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CxlIy260K5y1locJK94IfKZUaRA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CxlIy260K5y1locJK94IfKZUaRA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CxlIy260K5y1locJK94IfKZUaRA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CxlIy260K5y1locJK94IfKZUaRA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8xvA003mIvA/S2faROFaVpI/AAAAAAAAAIk/74eRaCNip6g/s1600-h/kucukArrow.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 16px; height: 16px;" src="http://4.bp.blogspot.com/_8xvA003mIvA/S2faROFaVpI/AAAAAAAAAIk/74eRaCNip6g/s400/kucukArrow.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5433551464819218066" /&gt;&lt;/a&gt;&lt;br /&gt;Uzun bir aradan sonra tekrar merhaba demek istedim. Bir takım işlerle uğraştığımdan bloğumla çok fazla ilgilenemez olmuştum ama artık nacizane örneklerle tekrar karşınızda olacağım.&lt;br /&gt;Hepinize iyi çalışmalar..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8766974251424129141-6116619253929801707?l=volkanalbayrak.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/VolkanAlbayrak-AspnetC/~4/oimqxWwAuJA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://volkanalbayrak.blogspot.com/feeds/6116619253929801707/comments/default" title="Kayıt Yorumları" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8766974251424129141&amp;postID=6116619253929801707" title="0 Yorum" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/6116619253929801707?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8766974251424129141/posts/default/6116619253929801707?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VolkanAlbayrak-AspnetC/~3/oimqxWwAuJA/merhaba.html" title="Merhaba" /><author><name>Volkan Albayrak</name><uri>http://www.blogger.com/profile/01509638823555919359</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_8xvA003mIvA/S1HFcSWDa4I/AAAAAAAAAHM/E-F7-1eWe94/S220/DSC00224.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_8xvA003mIvA/S2faROFaVpI/AAAAAAAAAIk/74eRaCNip6g/s72-c/kucukArrow.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://volkanalbayrak.blogspot.com/2010/01/merhaba.html</feedburner:origLink></entry></feed>

