|
Try to use Assembly.LoadFile Method
System.Reflection.Assembly.LoadFile("path-to-your dll");
The LoadFile method can load assemblies from diferent locations.
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
... need to get names of files that have been changed, added etc in a dir and subdirs.
Is it possible to do through filesystemwatcher-service?
/h
-- modified at 4:55 Monday 28th November, 2005
|
|
|
|
|
|
how to edit FAT table?
Is there any method to edit filename in FAT table directly?
Can anybody help me
|
|
|
|
|
No, there isn't. You have to load the sectors directly off the disk, edit them, then write them back. There is nothing in the .NET BCL that supports this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have downloaded version 2.0 in order to get the system.io.ports namespace but it still doesnt recognize it.
I have the vs.net 2003.
can someone help me?
|
|
|
|
|
gadgallea wrote: I have downloaded version 2.0 in order to get the system.io.ports namespace but it still doesnt recognize it.
I have the vs.net 2003.
You can't use .NET 2.0 with vs.net 2003. Downlaod the express edtion of the vs2005 and you can use .net 2.0
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
Visual Studio 2003 cannot use .net 2.0. You will only be able to use the new classes from within VS 2005
|
|
|
|
|
You can compile your projects using command line , but I agree that VS 2005 IDE can make your life easier ...
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hello,
After playing a while with the new VS2005 I started to convert my existing
Windows Forms projects from .NET 1.1 in VS2003 to .NET V2.0 in VS2005.
After a few days converting and warning and bug hunting I finaly had a
succesfull build op my projects and libs but great was the desolution if I
saw that my application was still using the old style op buttons, textboxes
etc.
My new projects use the nice controls but my converted one not, what am I
missing?
Greets
Jean Paul Mertens
|
|
|
|
|
I think you may need to add "Application.EnableVisualStyles();" right before your call that loads the form.
|
|
|
|
|
|
hi
how to set the paper size in c#.net.
i tried with this code, which is not reflecting.
printersettings.printsizes.equal(print_size)
print_size, i got this value from the paper sizes selected for hp printer.
how to proceed with this?
hope i ll get help.
regards,
Sarayu
|
|
|
|
|
I don't know how to write the statments in C# but i can in MC++, you can easly cconvert to your C#. (I Realy don't know if this works)
<code>using namespace System::Drawing;
using namespace System::Drawing::Printing;
PageSettings ^pg = gcnew PageSettings();
pg->PaperSize->Height = 500;
pg->PaperSize->Width = 400;
PrinterSettings ^ps = gcnew PrinterSettings();
ps->PaperSizes->Add(pg->PaperSize);</code>
<blockquote class="FQ"><div class="FQA">sarayumadhavan wrote:</div>printersettings.printsizes.equal(print_size)</blockquote>
I hase seen you are using equal(). This function conpares and returns a boolean value if they are equal. example:
<code>String str1 = new String("1");
String str2 = new String("2");
String str3 = new String("1");
str1.equal(str2); // returns false
str1.equal(str3); // returns true</code>
|
|
|
|
|
hi
thank you. i got the answers.
regards,
sarayu
|
|
|
|
|
Does anyone know of a free/open source .NET 2005 compatible docking+toolbar library? There are many very expensive libraries, but I can't seem to find any free ones. I used to use Sandbar/Sanddock from divil.co.uk, which was fantastic but then the owner made it crazily expensive and removed the non-commercial license so I can't use it any more.
Shane
|
|
|
|
|
I may have a solution.
http://www.icsharpcode.net/opensource/sd/[^]
This program is Open-Source (in C#) and has simular IDE VS (Blue Color). But if you don't want to release your software as Open-Source, then please ask an author for permision.
|
|
|
|
|
Hi, this isn't quite what I meant. I'm not looking for an IDE, i'm looking for a window docking and toolbar library.
|
|
|
|
|
Well it does have a libary. you can find:
SharpDevelop2.0.0.784_Source.zip\SharpDevelop\Src\Libraries\DockPanel_Src
it is stand alone project. And it is writen in C#
|
|
|
|
|
|
Can anyone help me? I`ve just started my adventure with .NET.
I want use regular expression in my text box to validate text. For example reg. expression like this : "[0-9][0-9]-[0-9][0-9][0-9]" accepts only for example "43-456" text. What if I enter "54-8f5" ? .NET Regular Expressions tells me that this text is not correct. But it doesn`t tell me which character is invalid.
My problem is that I want .NET show me which character (which character index in this incorrect string) is invalid.
Can anyone help with this?
conrados
|
|
|
|
|
I think, and only i think.. that .NET not capable to do that... so you could do it manually... using the string methods and check if the string is numeric or not, then you could run the validation as an expression....
or you could ask the MSDN
...Miliaware
..Faris Madi
-- modified at 20:16 Thursday 24th November, 2005
|
|
|
|
|
As militiaware writes, the Regex capabilities in .NET do not offer the option to find the place where the Regex fails to match.
However, you could write your own regular expression parser to find the "best match" to your string and, then, you will know which character failed.
I recommend this book, especially Chapter 8, "Parsing Regular Expressions":
Title: Building Parsers With Java
ISBN: 0201719622
Though the code and examples are in Java, you can easily translate it to the .NET-supported language of your choice.
The design of his parser has a bestMatch() method that will return the string that best matches your given input, in this case, "[0-9][0-9]-[0-9][0-9][0-9]".
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
I have a solution which has projects dependent on SSPI (Security Support Provider Interface ).
When I try to build the solution from vs.net command prompt using following command I get "Invalid Solution Configuration" error:
"E:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" <solution path=""> /rebuild debug /out builddetails.log
I tried out by changing the "Platform target property" from "Any CPU" to "X86" but it is still giving the same problem. Also the "platform target property" for "SSPI" project always remains "Win32".
Same solution is compiling properly with vs.net 2003.
Any suggestion on how to proceed.
Hiral
|
|
|
|
|
In IDE open that solution to convert it.
|
|
|
|