Aug 17, 2011

Moving a label like Marquee Sliding Text or Continuous scrolling text in Visual C Sharp(C#)?

A very simple scrolling text in your visual c sharp form.

Just add a Timer from your ToolBox,
in the Form Design mode, double click the Timer.
Insert the code as shown below into your Timer_tick(you can see it, after your double click):

        private void timer1_Tick(object sender, EventArgs e)
        {
            if(label1.Right > 0)
                label1.Left = label1.Left - 5;
            else if(label1.Right <= 0)
            {
                label1.Left = 107;
               
            }
            label2.Text = label1.Width.ToString();
            label3.Text = label1.Right.ToString();
        }


Jun 19, 2011

Connecting Oracle 11g to Visual Studio 2008 with ODP.NET

Connecting Oracle Database to Visual Studio with ODP.NET is easy.
Please refer Using Oracle Developer Tools for Visual Studio
And if you are only about to develop a locally hosted application with Microsoft Visual Studio...

There is one step that must keep in mind. Enter the value for Database Source Name in the format shown below.
Database Source Name : localhost:1521/<yourDatabase_SID>
eg. localhost:1521/XE

otherwise, you'll be alerted with error message: ora-12560: TNS: protocol adapter error
You can use Visual Studio in window 7 with oracle 10g through the latest ODP.NET.

Apr 17, 2011

Pop-up alert your input text (Javascript)







Label Name:  
1st try

     function pop(){
alert (document.getElementById('my_input').value); } Label Name:  
<input id="my_input" onchange="pop()" type="text"/>< input type="submit" />

Mar 31, 2011

Simple Image Resize

This is the simple image resize link: simple and easy.
Beginner should start here:
http://scripts.ringsworld.com/image-handling/image-resize/sample-of-script-in-use/index.php.html

Download the provided files and test it in your localhost.