|
I think Josh is right. I haven't seen any support in the Shell API to support Drag and Drop in the TaskBar.
Of course, this may change in Vista...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Greetings
I need to fetch microprocessor specific information (brand, temperature, usage etc.) programmatically. Is it possible while I am using .NET. Any ideas on how to do this.
Soon helpful replies will be appreciated as I have to start this ASAP.
Thanks.
Ali
|
|
|
|
|
Ali I. wrote: brand
CPUID instruction at the assembly language level will give you processor specifics.
Ali I. wrote: temperature
Not 100% sure about this. Maybe reading from the BIOS.
Ali I. wrote: using .NET.
I don't think .NET lets you get to the low level that is required for this. Write a .dll using unmanaged code to get results from CPUID and reading BIOS.
Ali I. wrote: usage
You can look at the PerformanceCounter class for that in .NET.
Hope this is a start for you
|
|
|
|
|
Per usual it has to be as confusing as possible when it comes to C#.
Something simple in VB like My.Settings.name becomes appnamespace.Properties.Settings.Default.name.
This isn't really that bad except that the word Default is associated with both User and Application settings.
The first time Settings.Default.Save() is executed, which by the way can only affect User settings, my definition of the word default goes out the window. Even though there are lines of code buried in the designer which contain System.Configuration.DefaultSettingValueAttribute, the values associatied with them have nothing to do with the values returned by Settings.Default following a save.
For reasons I have yet been unable to fathom the initial value for all settings is stored both in the designer code and the app.config file. The next thing I should do is change the app.config file manually and see which "default" value is actually returned. No real question this time. Just needed to vent a bit...
>>>-----> MikeO
|
|
|
|
|
|
I have an engineering rather than a software background, so maybe a word like default has a different meaning for me than it does for a real programmer. I modified a value in the app.config file and ran the debugger. The value used by the program was the value in the app.config file. Later, when I looked at the Settings.settings designer, it identified the mismatch. Apparently the value in the Setttings.Designer.cs is used only by the designer. Some of this is making more sense except for the use of Default in the namespace.
>>>-----> MikeO
-- modified at 13:54 Wednesday 5th July, 2006
|
|
|
|
|
I have been trying to read values from an application written in Java using an applicaiton written in .Net. The Java app is a third party application so I have no control over it. I am trying to get the value of some textboxes and combo boxes on the Java Window.
I thought this was going to be easy just use spy++ to grab the control ids and get the value, but none of the java controls are recognized by Spy++. Upon further research Java controls do not use the OS for managing there controls. It is all done by the open java window.
I have thought about using sendkeys to tab to and copy the values out of each control, but this seems very quirky. Using sendkeys also generates more issues. There is no way for me to know where I am on the form and I can't copy values out of the combo boxes because they are like the .net drop down only style.
Is there any way I can get the values out of the java controls?
Thanks,
Mike Lasseter
|
|
|
|
|
hi,
i have a problem about creating class instances from an assembly.
in our company we have developed an app with both client app and also .net web service. client app creates class instances from assemblies downloaded (if assembly doesnot exist in client app's folder each time client is run) from web service. Until a few days ago the system worked fine for me. now the client can not find nearly any class from assemblies downloaded to local folder. (we dont register downloaded assemblies to gac)
the error is "X cannot create class Y from assembly Z".
i noticed that the system doesnot work for ONLY my profile (domain user) ON SAME computer (my computer). When someone logons to MY computer the app/system works fine. When I logon to DIFFERENT computer i can use the app/system. So there is something about my profile on my computer. I removed my profile data from my computer and re-logon to my computer and worked successfully but see below.
The interesting thing is when i rebuild (for any reason) the client project/solution my profile goes weird and i cannot use the client app anymore for same problem i explained above (same error).
i think the build process of client solution makes my profile unable to execute client app successfully (still works but cannot create requied classes from assemblies).
i tried to delete gac cache, delete assembly files of client and take them from a friend, checked solution build events for some strange behaviors. no success.
shortly; after a fresh user profile until i re-build the solution, client app works but when i rebuild the solution client never works again.
Do i forget sth about any other thing?
|
|
|
|
|
Ok. I have an app in C#. It uses a com object in main thread. Then there is a button which calls a method in that com object that takes a long time. So I added a thread (backgroundWorker) which calls that function on that COM object. Trouble is that while the worker thread is working the main still is not responsive! Why is that?!
Please help!
|
|
|
|
|
Maybe something to do with thread safety?
|
|
|
|
|
How can I determine which keys on the keyboard are currently depressed? Specifically, I do not want to handle keystroke events, I just want to do a one time poll to see what keys are currently pressed, and save that information.
I notice that using My.Computer.Keyboard I can poll whether specific system modifier keys are down (shift, caps, alt, etc.), or send key events, but I see no way to poll regular key status.
Anyone have some tips here?
Thanks!
-swc
|
|
|
|
|
|
I have converted a large application to 2.0 and it compiles and runs. How do you make the UI look like a 2.0 application with the rounder controls etc. It looks that way in VS but not when it is compiled.
Brian
|
|
|
|
|
Add the calls to EnableVisualStyles() and SetCompatibleTextRenderingDefault() in your application's Main() method.
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run (new MyForm());
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
i have developed m-file in matlab now i wanna connnect that in C#.net. how can i call in C#.net.tell me the steps i wanna follow
|
|
|
|
|
Can this help: link
Best,
Jun
|
|
|
|
|
Hi All,
I am using a .net listview control with the AutoScroll property set.
I want to programatically scroll the listview control. I tried using P/Invoke messages.
When I used the SetScrollPos message, the scroll bar moves but the content of the listview itself doesnt move. Anbody faced a similar problem before? Any clue how i can solve this??
|
|
|
|
|
AutoScroll doesn't do what you apparently think it does. P/Invoking the Win32 API is also overkill. All you have to do is call the ListView's .EnsureVisible(index) method!
Documentation[^] on ListView.EnsureVisible method
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
What is the differenece between the debug and release ?
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|
|
In release, compiler will not create debug information.
Best regards, Alexey.
|
|
|
|
|
"Debug" and "Release" are just names given to the default solution build configurations. Each refers to a set of options that are used to build your solution with proper support for what your build needs at the time. Check out the top link on this[^] page for more information.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, ive have been using an assembly in my project and have just tried to use a newer version of the assembly and i get this error.
Could not load file or assembly 'eBay.Service, Version=3.1.2090.38214, Culture=neutral, PublicKeyToken=c7506f8c5fa78874' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
what is the best way to go about specifing that a new version of the assembly is in my project?
an answer with clear steps would be very much appreciated
|
|
|
|
|
is this the right kind question to ask this forum?
really stuck on this one, any help would be great
|
|
|
|
|
If you want to upgrade an assembly after building/deploying your project, you can add a binding redirect section to your application's config file. Look at the documentation for <assemblyBinding> and <bindingRedirect>, there are good examples.
Hope this helps,
Tim
|
|
|
|
|
Your company has developed a message board system that is being used by hundreds of web sites. The licensing model gives away the software for free but produces recurring revenue by charging ten cents per unique user that posts on the board. You have been tasked with developing a billing system that can determine in real-time the accounts-receivable per customer for all customers. Explain how your system works and why it’s a good solution for providing real-time information.
|
|
|
|