|
any one help i need sample in VB net 2003
Thx
|
|
|
|
|
In fact, this is the only one sample code of such a control.
I think only IBM published such a kind of control.
This code uses the WINAPI wich you can also use in VB. You
need to import the prototypes in your vb project and translate
some parts of this code to vb.
|
|
|
|
|
If you enlarge you TaskBar to it's double height (if its horizontal), while the control is displayed,
it begins to loose it's position in the taskbar. You are then able
to move other toolbars (like the language toolbar) over and across the control (sometimes
begind it).
However, this problem seem's to go away when you first enlarge the taskbar and then start
the control.
Does it need some additional resize message hooking ?
Markus
|
|
|
|
|
Well, this version does not include any kind of hooking. It uses just the polling mode. Every time the taskbar size gets changed, the progressbar should resize automaticly depending on the recangles of the specified taskbar classes. It seems to be an actualizing problem.
This problem has nothing to do with message hooking. I wasn't able to find a way for message hooking especially for the taskbar (not yet)
I'll take a look on it. Maybe I'll find a solution.
Thanks for testing!
-- modified at 12:54 Friday 21st July, 2006
|
|
|
|
|
Hi,
I know, it's not real hooking, I just tend to use that word
if something is done not quite the normal way...even if it's
technically not correct
Thanks for you reply anyway.
I really like the approach on how this is implemented and
hope it's possible to overcome this actualization problem as this
is - so far - the only issue I've seen.
Good work!
|
|
|
|
|
Well done. I updated it this evening. It depends on the codeproject team how fast it will be available.
|
|
|
|
|
Well done indeed.
That fixed the issue.
Good stuff!
|
|
|
|
|
I have downloaded the source codes and recomplied it via visual studio 2005. I run the application on the platform whose version is windows 2000 server. The window of progressbar will be shown at first, but then it will be covered by the icon of application on the task bar after some minutes.
I have test on the platform whose version is windows xp. The above issue is not existed.
|
|
|
|
|
Thanks for testing at first!
The Windows Taskbar is on each System w98 or above, including Windows Vista, the same as I described it. So, the main problem of the covered progressbar could be the timer. Due to the fact that this version does not use any kind of taskbar hook up system to receive the message that the iconbar on the right side has changed, implements that the only way to refresh the progressbar is, to use a timer. That's the refresh of the progressbar could take a time of max. 1 second.
It seems that the timer is the problem. Try to change the interval. I'll also do some more tests on a Windows 2003 Server System as soon as possible
|
|
|
|
|
|
Applications will freeze (plus everything else running) if you click on the righthand portion of the ProgressBar that overlaps the tab in the TaskBar. When this happens, CPU usage jumps to 50% or more and usage cannot be reduced.
The freeze affects everything in the TaskBar, SystemTray, LaunchPad area, and even the "Start" button in the bottom left corner of the screen. At this point, left click or right click of the mouse have no effect, and pressing the Escape button doesn't help either.
Because I was unable to regain control of any of the other applications running (including TaskManager), the only way I could kill the sample application was by pressing Ctrl-Alt-Delete (which then brought up the Windows Security dialog) that then allowed me to click on TaskManager to end the task.
Sample definitely needs major rework.
William
Fortes in fide et opere!
|
|
|
|
|
Hmm,
This problem should be already fixed by the messagemap of the control. That worked great so far on all my test systems. It's the version you've downloaded.
I did a test again right now and all seems to work great. I also have included it into BatteryX and did an about 3 Weeks test on it and all seems to work great.
Maybe that could be a message conflict between the main window and the taskbar.
I'll do further more tests on it and let you know.
Thanks for testing!
-- modified at 7:52 Sunday 30th October, 2005
|
|
|
|
|
- When you resize the taskbar, the control is always centered, not stretched.
- Fixed bug: If you run the classic skin in Windows, the Taskbar Shell_TrayWnd has a left of -2 in horizontal mode. In vertical mode it has a top-value of -2. In skinned modus all is placed correctly at 0. This problem is now fixed.
- If you have started more than one instance of this control before, the program caused an error, this bug is now fixed!
- ...
Enjoy it
|
|
|
|
|
Can anybody show me how to do this in C#?
|
|
|
|
|
Easy Way 1) Put this code into a dll
Hard Way 2) Write the code completely new in C#. For Win API based Functions etc. you've to declare these needed Functions at first.
Sample for FindWindowEx:
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr FindWindowEx(
int parent,
int next,
string lpszClass,
int sWindowTitle);
-- modified at 12:39 Tuesday 25th October, 2005
|
|
|
|
|
could you give me a little example for a completely re-written program in c#?
|
|
|
|
|
Working on it this weekend. I'm intresting in a C# version as well, so expect is next month.
mail: pj.vandesande@gmail.com
blog: http://born2code.net
|
|
|
|
|
Is it already done? And if not, can I help?
|
|
|
|
|
I'm working on a more generic version with a small team. One that has fully design-time support and is easy to use
The project will be hosted in Codeplex. If you want to stay informed or want to join the team free to drop an e-mail!
PJ
-
e-mail: pj.vandesande@gmail.com
blog: http://born2code.net
|
|
|
|
|
I want to do that in C# with a textbox or a label instead of a progessbar. I've seek on the Web, but I don't find anything…
Could you help me?
|
|
|
|
|
I have the same question: C# with a textbox and a button with a click.
Could you help me?
|
|
|
|
|
The problem is, if you do it like i do it in this project, you'll need to append a new windows to the taskbar. This means you should get right handle to the taskbar (hWnd where you want to place your control) and then insert it. So, if you try to press this added butten afterwards, the cpu >goes to 100%<. It has something to do with messaging. So, be carefull. I thing I "disabled" the progressbar in my project to avoid this problem (I forgot *g*)
By the way, what about a class which adds any control you want to any window you want. I think that would be a great idea. I.e what if somebody wants to add a button or something else to the tilebar of a window or create an animated titlebar or modify something else. Would this idea interrest you. And if so, should it be VC++ or C#?
-- modified at 6:21 Sunday 27th August, 2006
|
|
|
|
|
I wrote a C# class which adds a control to the taskbar.
with the function:
IntPtr ptr = NativeWIN32.CreateWindowExA(0, "edit", "", WS_CHILD | WS_VISIBLE | WS_DISABLED,
1024, 4, 127, 23, m_pcoParent, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
And it works...
But the problem is, I want to add my own control to the taskbar instead of a textbox.
(My control is a control with a picturebox and a textbox).
I've read that i must use WndClass and RegisterClassExA. but it doesn't work!
For the Cpu usage, it will not be porblem. I just want to display text.
somebody an idea how to use the CreateWindowExA function with a custom control?
|
|
|
|
|
Hi,
I am also interested in the C# version. Could you please send me
an example?
Cheers,
Franz
|
|
|
|
|
Did some code optimizations
-- modified at 2:07 Monday 17th October, 2005
|
|
|
|