|
I displayed a form at a starting location where my mouse was positioned but i faced an issue with it. My form at first was shown at a different location then it was drawn to my specified location . can u pls help me .i am using that form to display a preview of image on mouse hover.
|
|
|
|
|
Did you also set FormStartPosition to Manual?
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I think you are setting the location in the Form Load event. Try to set the location in the property window during design time. If you must do it at runtime, set the Visible property of the form to false and try this in Form Load event:
this.Location = new Point(x,y);
this.Visible = true;
Hope this helps,
Shameel
|
|
|
|
|
I have installed visual studio 2003 on my computer.When trying to run an application it gives me error message that unable to start debugging on web server this project is not configured to be debugged.I have installed IIS on my computer but it still gives me this error.What could be the reason behind this is it the IIS.What are the steps that i can take to resolve this error.Also one more thing that when initially i tried loading project in it i was asked for a conversion to the required format using visual studio conversion wizard.Originally the project was developed in visual studio 2003.
|
|
|
|
|
Dear, Try this
Go to IIS -> Right Click on you project directory -> In Directory Tab->Click on Application Setting's Create Button-> Click Ok
It may resolve your problem...
Otherwise Google this error.
Be an Eagle, Sky is Yours.
|
|
|
|
|
I have an assembly, which when is strongly types, returns incorrect results(A large Flaoting No) . But when the same assembly, has delay signing on the functionality works OK.
This assembly make use of the Legecy DLLs create in C++.
As I understand, there Strong Naming is linked with integrity of the assembly and doesnot effect the functionality.
Can some one please advise me if what could be the possible issue here.
Regards
Vineet
|
|
|
|
|
If your assembly is signed, it will only work with the versions of the referenced DLLs referenced when it was signed. If you recompile a legacy dll and the versioning changes, you will have to either re-sign the assembly or edit the configuration file for the assembly (or the exe using the assembly) to allow the new versions.
Note: you should not be signing an executable, only shared dlls should be strong named.
See this for detailed help[^]
|
|
|
|
|
I started using .NET C# with framework 1.0 , upgraded my applications through VS 2000 , 2003 , 2005 and now 2008 . each upgrade will install the new framework on my computer . Now I have all these .NET framework related applications which is taking large space
Microsoft .NET compact framework 1.0 SP3 Developer
Microsoft .NET compact framework 2.0 SP2
Microsoft .NET compact framework 3.5
Microsoft .NET Framework 1.1
Microsoft .NET Framework 1.1 Hotfix (KB928366)
Microsoft .NET Framework 2.0 Service Pack 2
Microsoft .NET Framework 3.0 Service Pack 2
Microsoft .NET Framework 3.5 Service Pack 2
, currently I am using VS2008 , can I remove application related to frameworks prior to 3.5 .
thanks
|
|
|
|
|
You should have done so as you upgraded.
only two letters away from being an asset
|
|
|
|
|
You can uninstall all of the .NET 1.x versions. Everything at 2.0 and above is dependant on the 2.0 CLR, so you cannot remove them. You must leave 2.0 and 3.0 in place in order to use 3.5. I think the .NET Framework will get a new CLR with the release of 4.0. Someone else is going to have to confirm or deny that though. I don't have the resources available to test it at the moment.
|
|
|
|
|
You should not remove ANY of them, as you may have applications that depend on them. Given the large disks on modern systems, the amount of space used by the framework binaries is pretty trivial. Vs2008 requires .Net 2.0 and all subsequent frameworks, so at most you could only remove the 1.0 and 1.1 frameworks. If you remove these, and it breaks an application that needs them, you will end up installing everything from scratch. Best advice is to leave well enough alone. Find something else to clean up if you are low on disk space, or think about moving to a larger drive.
|
|
|
|
|
hi every body..... am a student and need help over an issue....have been given .exe file of a customized media player with a few related dll's and library files. the player actually displays the video but uses the sound to generate a numeric data over screen. how can i get the algo or code for this player when i dont have the source code available....
looking forward for help please
|
|
|
|
|
raysabro wrote: am a student
Good, here is your first assignment, read this. Hint, look at item 3
http://www.codeproject.com/Messages/3122367/How-to-get-an-answer-to-your-question.aspx[^]
If the code is written in .NET you can use a tool like Reflector to look inside otherwise you'll need a decompiler. However, be warned that if this is commercial software the EULA most likely prohibits decompiling.
only two letters away from being an asset
|
|
|
|
|
Hi
I have associated a WPF application with a file(say abc.vdp)
When abc.vdp is clicked on ,application will be launched .
Before loading ,all data from folder where abc.vdp is residing will be copied into a temp folder.
When application is closed actual folder and files will be deleted and temp folder contents will be copied.But while deleting exception "folder cannot be deleted ,it is being used by another process" is thrown.This happens only if launched by .vdp files.
When executed through code folder gets deleted without exceptions.
Any idea on why is this happening ?
Please suggest a solution.
|
|
|
|
|
The only explanation is that you still have a file open in that folder.
|
|
|
|
|
Greeting,
I want to know to code an application to be multi-threaded one and each thread run on different processor using Visual Studio 2005?
Any help will be thankful if it fits into the content of this message...
Thank you..
|
|
|
|
|
You start by understanding threading and designing your app properly. Noone can tell you what to do because we know nothing of your application, data and synchronization rquirements, or anything else useful about your app. There are many different methods that can be used and various options that go with each, so it's pretty much impossible to tell you based on the information you supplied.
I suggest you start by Googling for "vb.net threading" and start reading everything you can.
|
|
|
|
|
Mr. Dave..
Thank you for being interest of such a topic..
I want to know only if it is easy to do so or not...
My application is a utility that run on windows server 2003 on computer of 4 processors..
when running this utility it will execute only on one processor and the others are not involved..
So, is multi-threading the answer to make all processors involved in executing this application. If it can be the solution, then what you think of how I could start implementing...
Thank You..
|
|
|
|
|
Whether Multithreading is the proper solution, again, depends on WHAT THE UTILITY IS DOING. Is it easy to do? That depends on what you want to have each thread do.
|
|
|
|
|
DND wrote: So, is multi-threading the answer to make all processors involved in executing this application
What is stopping you from trying it out? Operating system manages the threads and it's scheduling. On a multi-processor system, it may utilize multiple processors to execute the code in parallel or it may use time-slicing and use only one processor. You don't have any control over this.
DND wrote: If it can be the solution, then what you think of how I could start implementing...
As I said, write code and see how it behaves. Proper threading can improve application performance drastically. Threading is not very trivial. So I suggest to refer a good book before you start writing code. Here[^] is the best one you can get online.
|
|
|
|
|
Adding threads may help getting the job done sooner if:
- there are separable parts that could run concurrently (hence the algorithm isn't intrinsically sequential);
- AND you don't already have enough threads to utilize all cores.
As soon as your CPU load is close to 100%, adding threads won't help, and may even work against you.
All this assumes:
- you execute threading correctly (with sufficient synchronization);
- you don't have polling/waiting/busy loops.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
You can, of course, write a multi-threaded application using .NET. But you have no choice to decide which processor(s) each of your thread runs on. You just create your threads and start them and the runtime decides which processor(s) to run them on based on what is best for your application.
|
|
|
|
|
How many generations of garbage collection are there in .net? Why?
I was asked this question in an interview? I didn't know what exactly he meant by generations? can some help me in this question.
Thanks
KSR
|
|
|
|
|
|
AFAIK, There are 3 generations, zero, one and two.
All newly allocated objects goes into generation-0. GC walks though the object tree and marks all objects that are reachable. Garbage collection usually takes place in this generation. All the objects that are marked reachable will be promoted to generation-1 assuming these objects are long-living. unreachable objects will be cleaned up and GC compacts the heap. If these objects are again surviving collection, they will be promoted to generation-2. Garbage collection occurs very rarely on generation-2.
This generational algorithm helps GC to work efficiently. When memory is required, GC only needs to scan the generation-0 to free up the memory and other generations are scanned only when necessary. This will avoid scanning all objects that are present for an application.
|
|
|
|