|
I'm using VS.NET 2003. When i use unicode in my control, I must Save As... with Save With Encoding ... How I can config my IDE to default my Encoding. Thank for advances.
Nothing
|
|
|
|
|
|
Can anyone help me get this thing started... I mean what input variables, what output variables do i need? how many files do i need in order to make this thing work? How do i make the output file save as .html? how do i create an option of a random background color for the user? How many arrays do i need in my program? Any help would be nice. Thank you for your time!
|
|
|
|
|
I would start by deciding what kind of web page I'm making.
ZMAN0728 wrote:
How do i make the output file save as .html?
The same thing that you make other files.
ZMAN0728 wrote:
How many arrays do i need in my program?
It depends, what kind of web page are you making?
<italic>Work hard, Work effectively and a bit of luck is the key to success.
|
|
|
|
|
hi all,
I hope any one can help me in this problem...
suppose i have a picture folder .. how i can to get the size of this folder in C# language.
thanks
|
|
|
|
|
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\");
System.IO.FileInfo[] files = dir.GetFiles();
long totalsize = 0;
for (int i = 0; i <= files.GetUpperBound(0); i++)
{
totalsize = files[i].Length;
}
MessageBox.Show(totalsize.ToString());
Best of Luck
Forever Developing
|
|
|
|
|
I am trying to have assembly A load assembly B into a seperate domain. It's odd because when I load the assembly into the second AppDomain, it is also loaded into the default domain. So, when I unload the second AppDomain, it doesn't actually unload the assembly. Am I doing something wrong here:
AppDomainSetup setup = new AppDomainSetup();
setup.ApplicationBase = AppDomain.Current.SetupInformation.ApplicationBase;
setup.ApplicationName = "Test";
AppDomain domain = AppDomain.CreateDomain("NewDomain", null, setup);
IInterface i = (IInterface)domain.CreateInstanceFromAndUnwrap("AssemblyB.dll", "AssemblyB.Interface");
If I run AppDomain.Current.GetAssemblies() to get the loaded assemblies before I run this code, it does not show AssemblyB loaded. If I run it after, it is loaded in the default domain. If I unload the second domain, it is still loaded in the default domain. No other project in the solution is dependent on AssemblyB, so it shouldn't be loading it into the default domain. Any ideas?
|
|
|
|
|
Are the two types in separate projects?
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Yes, IInterface (whatever interface it may be) is in AssemblyC, which both AssemblyA and AssemblyB reference AssemblyC. But no assembly references AssemblyB.
|
|
|
|
|
Okay. After going in many small circles due to encroaching fatigue, I found this article[^].
Its focus is specifically on plug-ins, but in general it's about making assembly loading and unloading in remote AppDomains workable. I made up a little test code using the technique, and it works dandy.
The key is to set up the second (remote) AppDomain to use a shadow cache, so you have to use an AppDomainSetup, which has some really cruddy documentation (took me 20 minutes playing with it even after reading the article above to make sense of it).
Ultimately, though, I was able to load my interface type into the remote AppDomain without it appearing in my primary AppDomain, and of course I was able to unload it with no problems.
Hope this helps.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
|
if anyone can help me out please do all the information is found at this address
http://groups-beta.google.com/group/microsoft.public.dotnet.csharp.general/browse_thread/thread/b6e5879b1a6b8de0/31753bb8be88ade7#31753bb8be88ade7
Alexandre Brisebois
Alexandre.Brisebois@gmail.com
|
|
|
|
|
"this line produces the error :
temp = o.GetType().InvokeMember("", BindingFlags.CreateInstance, null,
null, null); "
1. Seperate the code, iow 1 instruction per line.
2. You trying to get the constructor? Use Type.GetConstructor.
xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots
|
|
|
|
|
hi experts
i have a string let say
string dummy="hello"
i want to remove 'h' and 'e' from this string and want to show a remaining string "llo" on the messagebox.
waiting for reply
|
|
|
|
|
string dummy = "Hello";
dummy = dummy.Replace("H", "");
dummy = dummy.Replace("e", "");
MessageBox.Show(dummy);
Forever Developing
|
|
|
|
|
Or, use the Substring() function. Depends on what exactly you want to do.
|
|
|
|
|
Using Com interop, I open an Excel worksheet. With Range's Find - method I search for a certain cell.
So far so good. Now the user should be able to edit this cell. But how can I make Excel scroll to that cell ?
|
|
|
|
|
Application.Goto (ActiveWorkbook.Sheets("Sheet2").Range("E6"))
Forever Developing
|
|
|
|
|
it works!!! Thanks very much
|
|
|
|
|
string test = "1";
test.Replace("1","2");
i tried doing this in something more complex like cleaning out characters in a big string, but even after this code i'm seeing .net ignore me...test should equal "2" after this, and it doesn't.
|
|
|
|
|
Strings are immutable in .NET. This is for thread safety and other reasons. Do this instead
test = test.Replace("1", "2");
-
Drew
|
|
|
|
|
Wow little ackward but owell...Thx for clearing that up for me
|
|
|
|
|
How can I get a dataset of selected rows in a DataGrid? It should get me the correct selected rows even if the grid is sorted on any one of the columns.
|
|
|
|
|
snnn wrote:
How can I get a dataset of selected rows in a DataGrid? It should get me the correct selected rows even if the grid is sorted on any one of the columns.
I am still looking forward for an answer. Would anyonr please help?
|
|
|
|
|
Hi,
We have this SelectedIndexChanged event that is raised by the .NET listview control.
I wonder why there is no SelectedIndexChanging event in the listview control. I have a need whereby i need to store the current index somewhere before the selectedindexchanged event is about to be raised. I can't see how i can achieve this. I certainly need an even that will tell me that the index is about to be changed. SelectedIndexChanged event is too late for me to store the index of the previously selected index.
Any ideas?
|
|
|
|