NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Mon
31
Jul '06

Hello World - Python application for Windows with Tk.

 
from Tkinter import *
root = Tk()
w=Button(root,text=“Pooooooi!”)
w.pack()
root.mainloop()
Fri
28
Jul '06

VBA - Connect SQL Server from Excel

 
Private Sub CommandButton1_Click()
    
    Set con = CreateObject(“adodb.connection”)
    Set rs = CreateObject(“adodb.recordset”)
    con.Open “Provider=sqloledb; Data Source=db-serv;Initial Catalog=test; User Id=admin; Password=admin;”
    rs.Open “select *from test2″, con
    i = 2
    Do While Not rs.EOF
        Cells(i, 2) = rs(“categorie”)
        rs.movenext
        i = i + 1
    Loop
    rs.Close
    Set rs = Nothing
    Set con = Nothing
    
End Sub
Fri
21
Jul '06

SQL Query and DOTNET?

Yes!!! - The LINQ Project - .NET Language Integrated Query

The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. It extends C# and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities.

http://msdn.microsoft.com/data/ref/linq/
Tue
18
Jul '06

div and span - visibility example

This sample code demonstates “hide” and “show” SPAN and DIV tags.
 
 
<div id=“divTest” style=“position:absolute; width:200px; height:115px; z-index:1; left: 149px; top: 43px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;”>test div </div>
<span id=“spanTest”>This is a span</span>
<p>
  <input type=“submit” name=“Submit” value=“Hide” onClick=“document.getElementById(’divTest’).style.visibility=’hidden’”/>
  <input type=“submit” name=“Submit” value=“Visible” onClick=“document.getElementById(’divTest’).style.visibility=’visible’”/>
</p>
<p>
  <input type=“submit” name=“Submit” value=“span Hide” onClick=“document.getElementById(’spanTest’).style.visibility=’hidden’”/>
  <input type=“submit” name=“Submit” value=“span Visible” onClick=“document.getElementById(’spanTest’).style.visibility=’visible’”/>
</p>
 
'

.NET Framework 3.0 Technologies

Get more information on the Microsoft .NET Framework version 3.0 (formerly WinFX) technologies, such as Windows Communication Foundation, Windows Presentation Foundation, and Windows Workflow Foundation.

Windows CardSpace (formerly “InfoCard”): Windows CardSpace (formerly “InfoCard”) is a Microsoft NET Framework 3.0 (formerly WinFX) component that provides the consistent user experience required by the identity metasystem. It is specifically hardened against tampering and spoofing to protect the end user’s digital identities and maintain end-user control.

Source : http://msdn.microsoft.com/winfx/reference/infocard/default.aspx

Windows Communication Foundation” Windows Communication Foundation (formerly code-named “Indigo”) is a set of .NET technologies for building and running connected systems. It is a new breed of communications infrastructure built around the Web services architecture.

Source:http://msdn.microsoft.com/winfx/technologies/communication/

Windows Presentation Foundation:The Microsoft Windows Presentation Foundation (formerly code named “Avalon”) provides the foundation for building applications and high fidelity experiences in Longhorn, blending together application UI, documents, and media content, while exploiting the full power of your computer.

Source: http://msdn.microsoft.com/winfx/reference/presentation/default.aspx

Windows Workflow Foundation:Windows Workflow Foundation is the programming model, engine and tools for quickly building workflow enabled applications on Windows. It consists of a Microsoft NET Framework version 3.0 (formerly WinFX) namespace, an in-process workflow engine, and designers for Visual Studio 2005.

Source: http://msdn.microsoft.com/winfx/reference/workflow/default.aspx

Microsoft .NET Framework 2.0:Find information on Microsoft .NET Framework 2.0 on the .NET Framework Developer Center.

Soruce: http://msdn.microsoft.com/netframework/
'

Learn .NET Framework 3.0

The Microsoft .NET Framework 3.0 (formerly WinFX), is the new managed code programming model for Windows. It combines the power of the .NET Framework 2.0 with four new technologies: Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows Workflow Foundation (WF), and Windows CardSpace (WCS, formerly “InfoCard”). Use the .NET Framework 3.0 today to build applications that have visually compelling user experiences, seamless communication across technology boundaries, the ability to support a wide range of business processes, and an easier way to manage your personal information online. Now the same great WinFX technology you know and love has a new name that identifies it for exactly what it is – the next version of Microsoft’s development framework. This change does not affect the release schedule of the .NET Framework 3.0 or the technologies included as a part of the package.


The .NET Framework 3.0.


More Info: http://msdn.microsoft.com/winfx/learning/
'

SQL Server CURSOR - loop through records

This code demonstates how to loop through records with CURSOR?

 
DECLARE @mycur CURSOR
DECLARE @test VARCHAR(10)
 
SET @mycur = CURSOR
FOR
SELECT nummer FROM mytable
 
OPEN @mycur
 
FETCH NEXT FROM @mycur INTO @test
 
WHILE @@FETCH_STATUS = 0 
BEGIN
	PRINT @test – sample statements
	FETCH NEXT FROM @mycur INTO @test
END
 
DEALLOCATE @mycur
Thu
13
Jul '06

MONO for Windows?

Using Mono on Windows

MONO
Mono runs on Windows, this page describes the various features available for users who want to use Mono on Windows as well as using Mono-based technologies on Windows without Mono (like Gtk#).

http://www.mono-project.com/Mono:Windows
Fri
7
Jul '06

OpenSource and DOTNET???

Yes… Here is some Open Source Content Management Systems (CMS) in C#

ndCMS
DocLib
Go.Kryo
Amplefile
nkCMS
Rainbow
Kodai CMS
umbraco
Cuyahoga
mojoPortal
Thu
6
Jul '06

Tips: Rename SQLServer dababase

 
sp_renameDb  olddbname,  newdbname
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website