.NET General

Moderators: None (Apply to moderate this forum)
Number of threads: 797
Number of posts: 1359

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to show some activity Posted by shoogo on 7 Apr 2004 at 5:06 AM
Hi all
I have this problem : i want show some activity loading, computing etc.
but a don't know when will be finished. i want use something like win XP when loading (something like progressbar ) but i don't know this contol
can somebody help me?


Report
Re: how to show some activity Posted by Xtreme.NET on 11 Apr 2004 at 4:02 AM
well.... use a progressbar...


"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]

Report
Re: how to show some activity Posted by shoogo on 13 Apr 2004 at 10:02 PM
: well.... use a progressbar...
:
thanx very much but i don't know what progressbar is ....

:
: "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
:
:



Report
Re: how to show some activity Posted by athomas on 14 Apr 2004 at 2:10 PM
Hi,

a ProgressBar is Control that displays an Infotext and a slice bar that progresses in a certain amount time - in fact as long as your process takes - and disappears when the process is done.

Note that a ProgressBar is like a Modal Dialog, that is, you cant do nothing while this Dialog is shown. Only when the ProgressBar has done its job you can keep on working with your app.

Hint: Most Setup programs use ProgressBars to show progress of Installation.

I think you need to use the Compent class of .NET to use it.

Usually, Progressbars have a startvalue - i.g. 0 - and end endvalue
- i.g. 100. So you need to declare a timer variable iCnt, a variable for
statvalue and a loop to go through the whole time:

int iCnt;

for(iCnt = 0;i<100;i++)
{
//do whatever you intend to do;
}
I guess that ProgressBar Control will have properties or members to set startvalue and endvalue. Check out Microsoft .NET Code Base for tutorials and further help.

Cheers.
Alex


: : well.... use a progressbar...
: :
: thanx very much but i don't know what progressbar is ....
:
: :
: : "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
: :
: :
:
:
:
:

Report
Re: how to show some activity Posted by shoogo on 14 Apr 2004 at 10:07 PM
: Hi,
:
: a ProgressBar is Control that displays an Infotext and a slice bar that progresses in a certain amount time - in fact as long as your process takes - and disappears when the process is done.
:
: Note that a ProgressBar is like a Modal Dialog, that is, you cant do nothing while this Dialog is shown. Only when the ProgressBar has done its job you can keep on working with your app.
:
: Hint: Most Setup programs use ProgressBars to show progress of Installation.
:
: I think you need to use the Compent class of .NET to use it.
:
: Usually, Progressbars have a startvalue - i.g. 0 - and end endvalue
: - i.g. 100. So you need to declare a timer variable iCnt, a variable for
: statvalue and a loop to go through the whole time:
:
: int iCnt;
:
: for(iCnt = 0;i<100;i++)
: {
: //do whatever you intend to do;
: }
: I guess that ProgressBar Control will have properties or members to set startvalue and endvalue. Check out Microsoft .NET Code Base for tutorials and further help.
:
: Cheers.
: Alex
:
thanx very much, but i know what progressbar is (i have my own types of progressbars) but i'm looking for something what use win xp when loading .
my reply
" thanx very much but i don't know what progressbar is .... "
was only a joke


:
: : : well.... use a progressbar...
: : :
: : thanx very much but i don't know what progressbar is ....
: :
: : :
: : : "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
: : :
: : :
: :
: :
: :
: :
:
:



Report
Re: how to show some activity Posted by athomas on 15 Apr 2004 at 12:59 AM
Hi,

so you want to show a ProgressBar when XP loads. You need to write a sytemwide DLL then but thats really nothing for beginners. I dont know if its even possible using C#. May be you have to use Windows API and C language.

Ah, I got the hint... its very unlikely to do it because you would need to change core XP Kernel modules or add your own module.

When XP starts it only loads core kernel modules - like the one that shows up the splashscreen. All other dlls or modules are loaded at runtime.

Cheers.
Alex

Cheers.
Alex



: : Hi,
: :
: : a ProgressBar is Control that displays an Infotext and a slice bar that progresses in a certain amount time - in fact as long as your process takes - and disappears when the process is done.
: :
: : Note that a ProgressBar is like a Modal Dialog, that is, you cant do nothing while this Dialog is shown. Only when the ProgressBar has done its job you can keep on working with your app.
: :
: : Hint: Most Setup programs use ProgressBars to show progress of Installation.
: :
: : I think you need to use the Compent class of .NET to use it.
: :
: : Usually, Progressbars have a startvalue - i.g. 0 - and end endvalue
: : - i.g. 100. So you need to declare a timer variable iCnt, a variable for
: : statvalue and a loop to go through the whole time:
: :
: : int iCnt;
: :
: : for(iCnt = 0;i<100;i++)
: : {
: : //do whatever you intend to do;
: : }
: : I guess that ProgressBar Control will have properties or members to set startvalue and endvalue. Check out Microsoft .NET Code Base for tutorials and further help.
: :
: : Cheers.
: : Alex
: :
: thanx very much, but i know what progressbar is (i have my own types of progressbars) but i'm looking for something what use win xp when loading .
: my reply
: " thanx very much but i don't know what progressbar is .... "
: was only a joke
:
:
: :
: : : : well.... use a progressbar...
: : : :
: : : thanx very much but i don't know what progressbar is ....
: : :
: : : :
: : : : "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
: : : :
: : : :
: : :
: : :
: : :
: : :
: :
: :
:
:
:
:

Report
Re: how to show some activity Posted by shoogo on 15 Apr 2004 at 1:15 AM
: Hi,
:
: so you want to show a ProgressBar when XP loads. You need to write a sytemwide DLL then but thats really nothing for beginners. I dont know if its even possible using C#. May be you have to use Windows API and C language.
:
: Ah, I got the hint... its very unlikely to do it because you would need to change core XP Kernel modules or add your own module.
:
: When XP starts it only loads core kernel modules - like the one that shows up the splashscreen. All other dlls or modules are loaded at runtime.
:
: Cheers.
: Alex

sorry for my english
but U dont understand what i mean.

when is win xp loading there is a control that looks like progressbar but it's not a progressbar
i want to use this control in my application
my situation :
my app is loading some data from configs, making some preparation for open tcp channel etc and it take some time (4 -5 sec) and I want to use somethig to show to user that my app is making some activity and I like this win xp control



:
: Cheers.
: Alex
:
:
:
: : : Hi,
: : :
: : : a ProgressBar is Control that displays an Infotext and a slice bar that progresses in a certain amount time - in fact as long as your process takes - and disappears when the process is done.
: : :
: : : Note that a ProgressBar is like a Modal Dialog, that is, you cant do nothing while this Dialog is shown. Only when the ProgressBar has done its job you can keep on working with your app.
: : :
: : : Hint: Most Setup programs use ProgressBars to show progress of Installation.
: : :
: : : I think you need to use the Compent class of .NET to use it.
: : :
: : : Usually, Progressbars have a startvalue - i.g. 0 - and end endvalue
: : : - i.g. 100. So you need to declare a timer variable iCnt, a variable for
: : : statvalue and a loop to go through the whole time:
: : :
: : : int iCnt;
: : :
: : : for(iCnt = 0;i<100;i++)
: : : {
: : : //do whatever you intend to do;
: : : }
: : : I guess that ProgressBar Control will have properties or members to set startvalue and endvalue. Check out Microsoft .NET Code Base for tutorials and further help.
: : :
: : : Cheers.
: : : Alex
: : :
: : thanx very much, but i know what progressbar is (i have my own types of progressbars) but i'm looking for something what use win xp when loading .
: : my reply
: : " thanx very much but i don't know what progressbar is .... "
: : was only a joke
: :
: :
: : :
: : : : : well.... use a progressbar...
: : : : :
: : : : thanx very much but i don't know what progressbar is ....
: : : :
: : : : :
: : : : : "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
: : : : :
: : : : :
: : : :
: : : :
: : : :
: : : :
: : :
: : :
: :
: :
: :
: :
:
:



Report
Re: how to show some activity Posted by athomas on 15 Apr 2004 at 1:51 AM
Hi,

ok, now I know what you mean. You mean this "KnightRyder"-style Control that shows up on the black splashscreen with the Windows Logo before XP Window shows up.

I dont know if this is a Common Control. You can only use the Common Controls of Windows in your apps. However, you can create one like this on your own but you need to use "subclassing" that is creating your own ProgressBar class. Again, I dont know how to do it in C#

I know how to do it with WinAPI and C but this ends up in a systemwide dll again.

Cheers.
Alex


: : Hi,
: :
: : so you want to show a ProgressBar when XP loads. You need to write a sytemwide DLL then but thats really nothing for beginners. I dont know if its even possible using C#. May be you have to use Windows API and C language.
: :
: : Ah, I got the hint... its very unlikely to do it because you would need to change core XP Kernel modules or add your own module.
: :
: : When XP starts it only loads core kernel modules - like the one that shows up the splashscreen. All other dlls or modules are loaded at runtime.
: :
: : Cheers.
: : Alex
:
: sorry for my english
: but U dont understand what i mean.
:
: when is win xp loading there is a control that looks like progressbar but it's not a progressbar
: i want to use this control in my application
: my situation :
: my app is loading some data from configs, making some preparation for open tcp channel etc and it take some time (4 -5 sec) and I want to use somethig to show to user that my app is making some activity and I like this win xp control
:
:
:
: :
: : Cheers.
: : Alex
: :
: :
: :
: : : : Hi,
: : : :
: : : : a ProgressBar is Control that displays an Infotext and a slice bar that progresses in a certain amount time - in fact as long as your process takes - and disappears when the process is done.
: : : :
: : : : Note that a ProgressBar is like a Modal Dialog, that is, you cant do nothing while this Dialog is shown. Only when the ProgressBar has done its job you can keep on working with your app.
: : : :
: : : : Hint: Most Setup programs use ProgressBars to show progress of Installation.
: : : :
: : : : I think you need to use the Compent class of .NET to use it.
: : : :
: : : : Usually, Progressbars have a startvalue - i.g. 0 - and end endvalue
: : : : - i.g. 100. So you need to declare a timer variable iCnt, a variable for
: : : : statvalue and a loop to go through the whole time:
: : : :
: : : : int iCnt;
: : : :
: : : : for(iCnt = 0;i<100;i++)
: : : : {
: : : : //do whatever you intend to do;
: : : : }
: : : : I guess that ProgressBar Control will have properties or members to set startvalue and endvalue. Check out Microsoft .NET Code Base for tutorials and further help.
: : : :
: : : : Cheers.
: : : : Alex
: : : :
: : : thanx very much, but i know what progressbar is (i have my own types of progressbars) but i'm looking for something what use win xp when loading .
: : : my reply
: : : " thanx very much but i don't know what progressbar is .... "
: : : was only a joke
: : :
: : :
: : : :
: : : : : : well.... use a progressbar...
: : : : : :
: : : : : thanx very much but i don't know what progressbar is ....
: : : : :
: : : : : :
: : : : : : "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
: : : : : :
: : : : : :
: : : : :
: : : : :
: : : : :
: : : : :
: : : :
: : : :
: : :
: : :
: : :
: : :
: :
: :
:
:
:
:

Report
Re: how to show some activity Posted by shoogo on 15 Apr 2004 at 2:06 AM
: Hi,
:
: ok, now I know what you mean. You mean this "KnightRyder"-style Control that shows up on the black splashscreen with the Windows Logo before XP Window shows up.
:
: I dont know if this is a Common Control. You can only use the Common Controls of Windows in your apps. However, you can create one like this on your own but you need to use "subclassing" that is creating your own ProgressBar class. Again, I dont know how to do it in C#
:
: I know how to do it with WinAPI and C but this ends up in a systemwide dll again.
:
: Cheers.
: Alex
thanx for info i'll try to make my own or i'll looking for it in internet.


:
:
: : : Hi,
: : :
: : : so you want to show a ProgressBar when XP loads. You need to write a sytemwide DLL then but thats really nothing for beginners. I dont know if its even possible using C#. May be you have to use Windows API and C language.
: : :
: : : Ah, I got the hint... its very unlikely to do it because you would need to change core XP Kernel modules or add your own module.
: : :
: : : When XP starts it only loads core kernel modules - like the one that shows up the splashscreen. All other dlls or modules are loaded at runtime.
: : :
: : : Cheers.
: : : Alex
: :
: : sorry for my english
: : but U dont understand what i mean.
: :
: : when is win xp loading there is a control that looks like progressbar but it's not a progressbar
: : i want to use this control in my application
: : my situation :
: : my app is loading some data from configs, making some preparation for open tcp channel etc and it take some time (4 -5 sec) and I want to use somethig to show to user that my app is making some activity and I like this win xp control
: :
: :
: :
: : :
: : : Cheers.
: : : Alex
: : :
: : :
: : :
: : : : : Hi,
: : : : :
: : : : : a ProgressBar is Control that displays an Infotext and a slice bar that progresses in a certain amount time - in fact as long as your process takes - and disappears when the process is done.
: : : : :
: : : : : Note that a ProgressBar is like a Modal Dialog, that is, you cant do nothing while this Dialog is shown. Only when the ProgressBar has done its job you can keep on working with your app.
: : : : :
: : : : : Hint: Most Setup programs use ProgressBars to show progress of Installation.
: : : : :
: : : : : I think you need to use the Compent class of .NET to use it.
: : : : :
: : : : : Usually, Progressbars have a startvalue - i.g. 0 - and end endvalue
: : : : : - i.g. 100. So you need to declare a timer variable iCnt, a variable for
: : : : : statvalue and a loop to go through the whole time:
: : : : :
: : : : : int iCnt;
: : : : :
: : : : : for(iCnt = 0;i<100;i++)
: : : : : {
: : : : : //do whatever you intend to do;
: : : : : }
: : : : : I guess that ProgressBar Control will have properties or members to set startvalue and endvalue. Check out Microsoft .NET Code Base for tutorials and further help.
: : : : :
: : : : : Cheers.
: : : : : Alex
: : : : :
: : : : thanx very much, but i know what progressbar is (i have my own types of progressbars) but i'm looking for something what use win xp when loading .
: : : : my reply
: : : : " thanx very much but i don't know what progressbar is .... "
: : : : was only a joke
: : : :
: : : :
: : : : :
: : : : : : : well.... use a progressbar...
: : : : : : :
: : : : : : thanx very much but i don't know what progressbar is ....
: : : : : :
: : : : : : :
: : : : : : : "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
: : : : : : :
: : : : : : :
: : : : : :
: : : : : :
: : : : : :
: : : : : :
: : : : :
: : : : :
: : : :
: : : :
: : : :
: : : :
: : :
: : :
: :
: :
: :
: :
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.