|
You can try hooking into the assemblyresolve event on the AppDomain:
"AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);"
that will allow you to resolve the assembly yourself if .Net fails, that will atleast let you then do the load manually from the already loaded assemblies.
|
|
|
|
|
This is great! Now it finally works!
Although, similar to the solution posted on the MS boards (use the GAC, which I prefer not to (although I know I am recommended to)), the reason for why the bug actually existed is unclear.
|
|
|
|
|
|
I am using VS2005 with Windows XP and I want to programmatically access "Display Properties - Settings - Extend My Windows Desktop Onto This Monitor" by pressing a checkbox. Can you please tell me where I can access this property from my code, Thanks Brennan
|
|
|
|
|
Have you resolved this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi all,
Can some one tell me the new features of .net framework 2.0 at the architecture level,
i.e the changes in compilation,gc compared to compilation ,gc in 1.1 version.
I need the changes at the architecture level
would be happy if someone give reply.
|
|
|
|
|
Oh if only somebody could come up with some tool that would make it easy to type things in and search this new fangled interweb thingy. I wonder if somebody could come up with some way to do this:
http://www.google.co.uk/search?hl=en&q=new+features+.net+2&meta=[^]
See - it's easy. Just look at the top result.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi,
i checked the url already and it just shows the control suppport for .net framework 2.0 not at architecture level
i need the features at architecture level only
Thanks
Mukkanti
|
|
|
|
|
I don't know which URL you looked at, but the first hit when I run the search contains the following list:[^]
64-Bit Platform Support
Access Control List Support
ADO.NET (a number of changes)
ASP.NET (a number of changes)
Authenticated Streams
COM Interop Services Enhancements
Console Class Additions
Data Protection API
Debugger Edit and Continue Support
Detecting Changes in Network Connectivity
Distributed Computing
EventLog Enhancements
Expanded Certificate Management
.
.
.
It goes on for a while, I can't be bothered to copy paste it - needless to say it shows a lot more than just "controls".
We can't guess what you consider an architecture level, but if you do not see it in the list, it is probably not changed significently. For example, why should they change the garbage collector?
|
|
|
|
|
I want to do write protect a drive to all system users using Vb dot net. For that i am using the below code. But I am getting Deny permission for the "special Permission" of the selected Drive. Not for the write permission.
Please see the below code.
======================================================
Dim folderLocation As String = "F:"
Dim mydir As New DirectoryInfo(folderlocation)
Dim dirsecurity As DirectorySecurity = mydir.GetAccessControl
Dim fsec As FileSecurity
Dim domain As String = LCase(Environment.UserDomainName)
Dim username As String = Environment.UserName
Dim Drive As String = "F:"
fsec = File.GetAccessControl(Drive)
For Each rule As FileSystemAccessRule In dirsecurity.GetAccessRules(True, True, GetType(NTAccount))
username = rule.IdentityReference.ToString()
MsgBox(".[" + username + "]")
fsec.SetAccessRule(New FileSystemAccessRule(username, FileSystemRights.WriteData, AccessControlType.Deny))
File.SetAccessControl(Drive, fsec)
Next
==================================================
I want to that am i doing proper method or not. if not please suggest the correct way to me for doing the write protect a single drive .
Gopi Ramanathan,
Life will never be the SAME
|
|
|
|
|
Is there any downloads for Mircosoft.net for the contentpipeline content. like bitmap and picture content mainly.
Michael
(Up and coming Game programmer)
EST
|
|
|
|
|
If there is any green cheese on the moon? I doubt it... Oh wait, that was not your question. If you are not capable of writing something as simple as a subject header telling what you want then I suggest you start learning that before moving on to more dificult things like programming.
A search for Content Pipeline on Google suggest the XNA Framework[^].
Next time:
1) Google
2) Write a meaningful subject.
Personally I will not provide any further assistance before you learn these basic skills.
|
|
|
|
|
I agree. Many posters don't understand why meaningful subjects are important and, possibly, are not familiar with the terminology. If I need help with anything, I search the subjects. "Is there any..." will not help me in my endeavor. You got my 5.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi. Does anyone know how to make a windows form behave like a menu, such that it closes if the user clicks anywhere away from it?
It would also be nice if the window didn't steal the focus from the parent form, but this isn't necessary.
|
|
|
|
|
Haha, silly me:
private void NoteForm_Deactivate( object sender, EventArgs e ) {<br />
this.Close();<br />
}
|
|
|
|
|
Hi!
I have been looking all over internet after an Excel-component to use for reading excel-documents and calculate formulas.
Anyone know wher i can find it?`
//Maw
|
|
|
|
|
It's called Excel. There's no way I know of, apart from controlling Excel through the Microsoft Office SDK, whatever they call that thing.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Here is one way, although there may be other/better ways:
Add a reference to the MS Excel object library.
In your code, you can use the Excel objects directly:
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlBooks As Excel.Workbooks
Dim xlSheets As Excel.Sheets
Dim xlSheet As Excel.Worksheet
Once you create an instance of the Excel app,
xlApp = New Excel.Application
You can address any object in the spreadsheet
xlBooks = xlApp.Workbooks
xlBook = xlBooks.Open(strPath & "Sheetname.xls", True)
xlSheets = xlBook.Worksheets
xlSheet = xlSheets(1)
Values in cells can be accessed and modified by range
intListRow += 1
strRange = "A" & CStr(intListRow)
strSheetValue = xlSheet.Range(strRange).Value
Remember to close the app or there will be an Excel process still open on the machine.
xlBook.Close(True)
xlApp.Application.Quit()
xlApp = Nothing
|
|
|
|
|
I'm back with another question regarding some PHP code I converted to C#.
The PHP code uses OpenSSL to verify a signature (it's a string of characters, as opposed to being attached to a file). I have the public and private keys.
Can I use the crypto stuff built into .net to verify the signature, and if so, can someone point me to a place that describes how I would go about doing so?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I am going to develop a C# windows application and deploy in a server. This exe file will be used by around 10 people at the same time. I think it will create new instances for each user.
What I want to know is, are there any know issues for these kind of scenarios? What the general good practices for this kind of application?
Thanks & Regards
|
|
|
|
|
We use the same approach in one of our projects with no issues.
The reason is that you have only one exe but a process of its own per user.
But of course, if you are accessing any ressources (files, devices, ...) then you have to do it in a thread-safe manner.
Happy programming
Urs
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Can somebody guide about conditional compiler directives in .NET whereby I should be able to have a particular snippet visible only to 1.1 Compiler and a certain section only for 2.0 compiler.
Basically, I am trying to see an elegant way in which if had put a code for 1.1 and when the application is brought into 2.0, instead of just keeping it commented, we can have elegantly toggle between the versions.
|
|
|
|
|
Unfortunately, there are no built in conditional symbols for this. You will need to define your own in the project properties, under the Build tab. Add the comditional symbol you want to the "Conditional compilation symbols" text box (multiple symbols must be space separated).
Once you do that, you can wrap the code in #if [symbol] blocks. It would look like this (assuming you define a symbol named NET_20):
#if NET_20
#else
#endif
|
|
|
|
|
Thank you Scott. Let me give it a try.
|
|
|
|
|
No problem. Hope it works for you.
|
|
|
|