Results 1 to 6 of 6

Thread: ProgressBar In TextBox

  1. #1
    Join Date
    Nov 2009
    Posts
    862

    ProgressBar In TextBox

    Hello, I am creating a project in C# and now I want to create a web browser with webkit. I want to know that is it possible to post a progressbar as background in the textbox. If it is possible to change the opacity of the textbox then please tell me how to perform it. If anyone is having good book in C# programming then please provide me that. Please help me to achieve it.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: ProgressBar In TextBox

    If you want to create a progressbar in a Textbox then I think you must need to make use of the following code line. I think you must need to make use of it.
    Code:
    taTextBox.BackColor = Color.Transparent;
    I think if you add this line in your code then you will get solution for your problem.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: ProgressBar In TextBox

    If you make use of the textbox base and improve the graphics of it, then you will able to get the solution for your problem.
    I think you can make use of the code below for it:

    Code:
     class Testing: TextBox
        {
     
            protected override void OnPaint(PaintEventArgs e)
            {
                Basic.OnPaint(e);
            }
     
        }

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: ProgressBar In TextBox

    Hello, I am not having more knowledge about the c# programming but, I have got the code below for creating progressbar. You can make use of the code for your use.
    Code:
    pbar1.Maximum = 200;
    pbar1.Manimum=0;
    pbar1.Step=20;
    protected void time (object sender, System.EventArgs e)
    {
    if (pbar1.Value >= 200 )
    {
    pbar1.Value = 0;
    }
    return;
    }
    pbar1.Value += 20;
    }

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: ProgressBar In TextBox

    Hello, If you make use of the code below then you can able to create a progressbar. I am not having code to create a progressabar in textbox.
    Code:
    #region Using directives	 
    	using System;
    	using System.Collections.Generic;
    	using System.ComponentModel;
    	using System.Data;
    	using System.Drawing;
    	using System.Windows.tests;
    	 
    	namespace ProgressBar
    	{
    	    partial class test1 : test
    	    {
    	        public test1()
    	        {
    	            InitializeComponent();
    	        }
    	 
    	        private void test1_Load(object sender, EventArgs e)
    	        { 
    	            pbar1.Maximum = 1;         
     }
    	 	  private void button1_Click(object sender, EventArgs e)
    	        {	 
    	            int value;	 
    	            for (value = ; value != 1; value++)
    	            {
    	                pbar1.Value = pbar1.Value + 1;
    	            }
    	 
    	        }
    	    }
    	}

  6. #6
    Join Date
    Apr 2008
    Posts
    1,948

    Re: ProgressBar In TextBox

    For getting reference you need to make use of the books below for c# programming :
    • Sams Teach Yourself C# in 24 Hours
    • Data Structures and Algorithms with Object-Oriented Design Patterns in C#
    • Dissecting a C# Application: Inside SharpDevelop
    • C# Nuts and Bolt

Similar Threads

  1. How to use progressbar in windows phone 7
    By Yogus_X in forum Portable Devices
    Replies: 6
    Last Post: 27-10-2010, 02:27 AM
  2. Replies: 2
    Last Post: 20-08-2010, 01:23 AM
  3. Textbox validation in ASP.NET
    By Kasper in forum Software Development
    Replies: 4
    Last Post: 19-01-2010, 08:28 PM
  4. Numerical value on TextBox
    By KABIRA16 in forum Software Development
    Replies: 3
    Last Post: 29-10-2009, 04:25 PM
  5. how to hide a textbox in asp.net
    By Alejandro in forum Software Development
    Replies: 2
    Last Post: 10-06-2009, 10:43 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,054,566.89016 seconds with 16 queries