|
I tried to install a app that was made a year ago on a new computer with net framework 2.0 installed but when I fired up the app it crashed and demanded that I install net framework 1.1! Is this a bug in the app or do all users of said app have to install dnf1.1 even if they have 2.0 already?
If its a bug, how do I remedy it?
Grateful for any clarification
Ulf Rosvall
|
|
|
|
|
If the app is demanding the .NET Framework 1.1, you'll have to install it. Not every app that was written under 1.1 will work with 2.0. There ARE breaking changes between 1.1 and 2.0.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Do you by that mean that it is possible to write a app under 1.1 that will work
under 2.0 whithout the installation of 1.1?
Could you specify som problematic points? Or point me in the direction of a FAQ or like.
I do have the source for the app in question, if I could modify it so as to not demand the installation of the 1.1 on a machine that allready has 2.0 installed that would be very worthwhile.
Thanks
Ulf
|
|
|
|
|
All you have to do is search MSDN for ".net 1.1 2.0 changes"...here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hey kids,
I've always been annoyed that Windows won't let you drag the tasks around on the taskbar so I thought I might try to write a small app or service in .Net to do this. I've written plenty of .Net web pages and Winforms apps but to be honest with something like this I'm not that sure how or where to start - for example, I assume I'd have to use the native windows classes but that's about as far as I know. Can the taskbar be accessed from v2 of the framework easily? Is it easy to implement drag and drop when it's outside of a form (ie: on the desktop window)? I'm sure this must be possible to do but I just need a kick-start from a few folks more knowledageable in these sort of things than I am.
Alternatively, if asyone knows of a good app or utility to do this I'd love to hear about it.
TIA for any suggestions etc.
Mike
|
|
|
|
|
Since Windows does not allow you to drag-drop items in the Taskbar (which annoys me too), I assume that there is no API which will allow you to do it. If the API existed, then Windows would have the feature in the first place. (I could be wrong about this.)
:josh:
My WPF Blog[^]
|
|
|
|
|
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.)
|
|
|
|