|
The simplest way is to put a shortcut to your app under the Startup folder of the Programs menu in your Start menu, the more complicated way is to add it to add a key to the registry .
|
|
|
|
|
Hi!
Can someone tell me how do I must set up my C# windows form solution
to get the feature: "Group similar taskbar buttons" + same application icon +
a groupe name.
Regards,
gicio
|
|
|
|
|
The rough hack appears to be setting a registry key under
HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache
for the full application path with a group name value
eg. name: "c:\myapp\app.exe", value: My Apps
will group all instances of your application under "My Apps"
|
|
|
|
|
Hi all,
I m doing work on application like remote desktop.
I have made a server and client.
Server Description:
server first listen for client request. Upon receiving client request
server Starts a thread using ThreadStart and delegates a function that
handling all the things like capturing desktop image, break that image
into parts, calculating checksum for updated parts, saving image into
Networkstream and sending updated region to client. I m doing all the
work in one thread function.
Problem: I m facing problem of CPU usage. Currently My CPU usage on
server side is 45 to 60% thats not acceptable. I think that CPU
usage is due to the poor threading. Someone suggest me to use
threadpool but threadpool is usefull for short time threads.
Can someone suggest me how can i improve CPU usage and application
performance.
Is there any effect by increasing the number of threads?
Keeping in mind that it is real time application.
Tahnx for ur suggestions
|
|
|
|
|
Thread context switching is expensive and having too many threads active in your application is no better than doing everything in one thread. The ThreadPool class is for bette scalable solutions because the system will enlarge the pool if necessary (based on the performance of the application and if it can handle more) and doesn't have to create new threads but, instead, reuses existing threads which also decreases overhead. There's a lot of blogging about this at http://blogs.msdn.com[^] you should check out if you're interested.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Thanx dear,
But i have generated the profile of my server
application while it is sending updated desktop
regions and i have noticed that least CPU time is
used by the code which capture images, calculate
checksum , save into memory stream and writing data
on network stream. Then where is CPU used?
Why it goes to upper limit of usage?
I think its due to the not properly managed thread.
|
|
|
|
|
Thats not neccessarily true, you need a profiler to actually to find out whats going on, try checking some of the perf counters while your app is running, maybe you are allocating several objects and not disposing them causing the GC to run often, The network stream could also be acting asychronously
If you are having more than one client connecting to your server then possibly the ThreadPool will be better as it will manage your thread allocation more efficiently.
|
|
|
|
|
Thanx
You have mentioned that network stream could also be acting asychronously.
But i m not using it asynchronously then how?
|
|
|
|
|
I want to clean up my projects C# source code by removing things (unused functions, variables, parameters etc) which are no longer being used. I could find a tool for VB [^] but not for C# yet.
Can anybody recommend me a good one?
|
|
|
|
|
Visual Studio 2005 includes a static analysis tool that may do the trick. This was previously known as FxCop (well, still is) and is available on http://gotdotnet.com[^].
The important thing to keep in mind, however, is if other assemblies are using that functionality. If you've exposed such entities publicly and you're assemblies are used by third-parties you should go a version or two using the ObsoleteAttribute on those entities and eventually removing them. This will help third-parties maintaining their code to know that soon that functionality will be non-existant in future versions.
If this code is being used by COM clients do not change interfaces that have already been published. This violates certain rules of COM that make allow for newer implementations to implement older interfaces that older clients know about and can use without breaking.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
What about NCover, its primarily used to check for test coverage but can be used for your purposes too I think
|
|
|
|
|
ReSharper[^] is a good really tool.
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
I would like to make the font of the selected tab page on my tab control bold. How do I do this?
|
|
|
|
|
You would have to custom draw the tab itself. See http://www.codeproject.com/cs/miscctrl/#Tabs+and+Property+Pages[^] for some potentially helpful articles.
Basically you want to set TabControl.DrawMode to TabDrawMode.OwnerDrawFixed and draw the tabs yourself. If the tab is selected use a Font with Font.Bold set to true .
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
|
You're about 7 weeks to late for Talk like a Pirate Day! It's September 19th.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
|
hello friends
actually i am using picturebox control in my window application and have set there property to transparent.but when i minimise the application and maximise it back,it shows flickering.
|
|
|
|
|
You probably won't be able to stop flickering on the default windows PictureBox. But, you could create your own custom control that is derived from it, and use Control.SetStyle() to enable double buffering, which should eliminate the flicker.
|
|
|
|
|
Hi,
I m having problem in hiding node in treeview..
help pls..
Thanks
|
|
|
|
|
I think you cant actually make a node not visible (as in dissapear it). What you can do, is remove it from the tree. If you need to reference this node later, you can store it in an ArrayList for later use.
Best Regards,
azazel
|
|
|
|
|
removing a node will not help me..
Actually i m loading XML in a treeview and i want to change the value of elements from textboxes....
so, i will be needing childnodes while clicking parentnode but i don't want to display them(childnodes) in treeview
|
|
|
|
|
Do'nt draw the childelements to the treeview, you can store them as XmlElements in the tag property of the parent node and retrieve it when you need
|
|
|
|
|
|
Hai all,
I have created a Dll which i want to place it in GAC so that I can use it in another projects.
I am new to dotnet.
Please show me the way the assemblies are placed in GAC.
SukanyaVarma
|
|
|
|