Wednesday, April 20, 2011
Tuesday, April 19, 2011
عجیب اپنی یہ زندگی ہے
سمیٹو جتنا بکھر رہی ہے
ہم ایک پل کو بھی جی نہ پائے
یہ لمحہ لمحہ گزر رہی ہے
عجیب اپنی یہ زندگی ہے
ہیں خواہشوں کے ہی پیچھے بھاگے
حسرتوں کو گلے لگائے
یہ آج آنکھوں میں جو نمی ہے
یہ اپنے خوابوں کی بے بسی ہے
دلوں کی باتیں جو کہ نہ پا یے
ہمارے آنسو جو بہ نہ پا یے
تمہارے جانے کی بعد ہم بھی کہیں
سکوں سہ کہی رہ نہ پا یے
ہر ایک راستے پر روک رہی ہے
ہماری چاہت بھٹک رہی ہے
عجیب اپنی یہ زندگی ہے
Saturday, April 16, 2011
کشتیاں جلا آیے -
ان پر پھر سے سوار ہونے میں ڈرتے ہیں
تو اس سے کوئی فرق نہیں پڑتا کے
پیچھے کوئی کشتی باقی بچی ہے یا نہیں .
Thursday, March 17, 2011
بہائم کی اور اُن کی حالت ہے یکساں
Tuesday, March 08, 2011
New .NET Ribbon Control
Recently I have been exploring the use of Ribbon Control. Yesterday, I posted a tutorial on its use with Windows Workflow Foundation. However, I am far more comfortable developing applications with Windows Forms . So, I searched for Ribbon Control for Windows Forms. Although I found an open source version here, there was no associated tutorial. So I decided to write one. In this tutorial I will explain how to create a simple windows forms application with a Ribbon Control and how to add buttons.
1. Download the Ribbon Control binaries here.
2. Create a Windows Forms Visual Studio Project.
3. Add reference to the downloaded System.Windows.Forms.Ribbon.dll
4. Chose Items and Browes the Ribbon dll and Add then you can see Ribbon controls on you
Item list.
5. Dreag and drop the Ribbon Penal and Ribbon Tab on your frm.
Your Windows Form Should look like this;
From this point onward, adding controls to the ribbon should be easy.
5. To add a tab to your ribbon control, click ‘Add Tab’. I have added three tabs; Home, Data Manipulation and Visualization. As with any control, you can change the properties of the tabs using the properties grid.
6. Once the panels have been created, click a panel. The property grid shows options for the panel. Besides ‘Add Button’, these options include ‘Add Button List’, ‘Add Item Group’, ‘Add Separator’ etc. Click the ‘Add Button’ command. A button is created. You can use the property grid to set the text, tool tip and image for the button.
7. Ribbon Button click Event.
Private Sub RibbonButton7_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RibbonButton1.Click
MsgBox("test")
End Sub
MsgBox("test")
End Sub
Congratulations! you have successfully added a ribbon control to your Windows Forms Application. You are good to go!
Thursday, March 03, 2011
بدلتا ہے رنگ آسماں کیسے کیسے
بدلتا ہے رنگ آسماں کیسے کیسے
وہ لوگ بہت خوش قسمت تھے
جو عشق کو کام سمجھتے تھے
یا کام سے عاشقی کرتے تھے
ہم جیتے جی مصروف رہے
کچھ عشق کیا کچھ کام کیا
کام عشق کے آڑے آتا رہا
اور عشق سے کام اُلجھتا رہا
پھر آخر تنگ آ کر ہم نے
دونوں کو ادھورا چھوڑ دیا
فیض احمد فیض
Monday, February 28, 2011
Create Data Table and Data Row.
Table Columns name , type
Public Function MyDataTable() As DataTable
Dim dt As DataTable
dt = New DataTable()
dt.TableName = "WorkAddress"
dt.Columns.Add("name")
dt.Columns.Add("type")
Dim r As DataRow
r = dt.NewRow()
r(0) = "id"
r(1) = "uniqueidentifier"
dt.Rows.Add(r)
r = dt.NewRow()
r(0) = "street"
r(1) = "smallint"
dt.Rows.Add(r)
r = dt.NewRow()
r(0) = "address"
r(1) = "varchar"
dt.Rows.Add(r)
r = dt.NewRow()
r(0) = "city"
r(1) = "varchar"
dt.Rows.Add(r)
r = dt.NewRow()
r(0) = "state"
r(1) = "varchar"
dt.Rows.Add(r)
Return dt
End Function
