|
That's what i said 10 minutes ago 
|
|
|
|
|
have you tryed :
Array.Copy(ggg, ggg1, 5);
|
|
|
|
|
int[] ggg = new int[5];
ggg = networks.layers[i].noron[j].sbaglanti;
int[] ggg1 = (int[]) ggg.Clone();
Array.Sort(ggg);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks friends.
i solved with array.copy();
regards
|
|
|
|
|
|
How to implement IUrlHistoryStg Interface in c#?
|
|
|
|
|
Hi,
I publish my windows application using clickonce. When some clients try to download it error occur. It is downloading in many other client machines with out any problem.
The deploy files are not getting downloaded in some client machine. I also delete the Apps folder in those machine and try again, same error occur.
Is ther any problem with the client machine or any problem in publishing?
Details of error :-
PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
SOURCES
Deployment url : http://192.168.1.41/ -- My URL ---
Server : Microsoft-IIS/5.1
X-Powered-By : ASP.NET
Deployment Provider url : http://192.168.1.41/-- My URL ---
Server : Microsoft-IIS/5.1
X-Powered-By : ASP.NET
Application url : http://192.168.1.41/-- My URL --- .exe.manifest
Server : Microsoft-IIS/5.1
X-Powered-By : ASP.NET
IDENTITIES
Deployment Identity : board.application, Version=1.0.0.5, Culture=neutral, PublicKeyToken=735d61f06c2141e7, processorArchitecture=msil
Application Identity : board.exe, Version=1.0.0.5, Culture=neutral, PublicKeyToken=735d61f06c2141e7, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://192.168.1.41/-- My URL --- resulted in exception. Following failure messages were detected:
+ Exception occurred loading manifest from file Client.dll: the manifest may not be valid or the file could not be opened.
+ File Client.dll is not a valid Portable Executable (PE) file.
+ The process cannot access the file 'C:\Documents and Settings\administrator\Local Settings\Temp\Deployment\L774NNJ6.6QD\EPT7095T.X26\Client.dll' because it is being used by another process.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [3/13/2009 10:41:24 AM] : Activation of http://192.168.1.41/--- My Link -- has started.
* [3/13/2009 10:41:25 AM] : Processing of deployment manifest has successfully completed.
* [3/13/2009 10:41:25 AM] : Installation of the application has started.
* [3/13/2009 10:41:25 AM] : Processing of application manifest has successfully completed.
* [3/13/2009 10:41:27 AM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [3/13/2009 10:41:27 AM] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file Client.dll: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest..ctor(String filePath)
at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.OnModified()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.IO.IOException
- File Client.dll is not a valid Portable Executable (PE) file.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.PEStream.ConstructFromFile(String filePath, Boolean partialConstruct)
at System.Deployment.Application.PEStream..ctor(String filePath, Boolean partialConstruct)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
--- Inner Exception ---
System.IO.IOException
- The process cannot access the file 'C:\Documents and Settings\administrator\Local Settings\Temp\Deployment\L774NNJ6.6QD\EPT7095T.X26\Client.dll' because it is being used by another process.
- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Deployment.Application.PEStream.ConstructFromFile(String filePath, Boolean partialConstruct)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
Thank you
YPKI
|
|
|
|
|
Hi Everyone,
I have Database XML which has list of all tables in the database and separate xml's for each table.
Instead of reading each table from database in C# and exporting the data to Excel.... my rqmt is to read this database XML and fetch the data from it and dump into excel file .
If, I have 10 tables and I want to dump the table data into separate worksheet in excel.
please suggest me the better way of working this.
Thanks in advance.
Ram
|
|
|
|
|
Hey
Ok so I am making a program with mutliple textboxes and what I want to do is when the textbox_enter event occurs it changes some properties of that textbox but i dont wanna make 20 textbox_enter events for each textbox. What is the code to mainstream it so for every textbox goes through the same event handler? And also in the event how do i select the textbox which started the event. E.g I know this. is used to select the current form. Is there a equivalent keyword for the element of the form being used?
Thanks in advance! 
|
|
|
|
|
textbox1.Event += new RequiredEventArgs(MethodName);
textbox2.Event += new RequiredEventArgs(MethodName);
etc...
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Well you can do this either using Property box or even creating the event handler yourself.
this.textBox3.Enter += new System.EventHandler(this.GenericTextBox_Enter);
this.textBox2.Enter += new System.EventHandler(this.GenericTextBox_Enter);
this.textBox1.Enter += new System.EventHandler(this.GenericTextBox_Enter);
private void GenericTextBox_Enter(object sender, EventArgs e)
{
MessageBox.Show(((TextBox)sender).Name);
}
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You can save characters by simply writing
this.textBox3.Enter += GenericTextBox_Enter;
this.textBox2.Enter += GenericTextBox_Enter;
this.textBox1.Enter += GenericTextBox_Enter;
Easier to read, too.
|
|
|
|
|
caveat. Only from .NET 3.5 IIRC.
|
|
|
|
|
|
Yup, just checked. Introduced in 2.0
|
|
|
|
|
By default, each control has a unique set of event handlers. You can overrirde the hadler to be used on the form's property sheet, look at the events tab.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
What?? That doesnt even make sense!
|
|
|
|
|
What don't you understand:
By default,
The standard easy to use idiot proof click in designer to create an event handler way
each control has a unique set of event handlers.
The event handlers will be named <control>_<event> so there is no reuse.
You can overrirde the hadler to be used
A few spilling mistakes; but who cares.
on the form's property sheet, look at the events tab.
I could have said 'select the control, press F4 - that's the property page, then click the 'lightning strike' to show the event handlers.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Nagy Vilmos wrote: By default, each control has a unique set of event handlers.
The event handlers will be named _ so there is no reuse.
Actually, each control exposes a set of events, not event handlers. And the event handlers aren't generated "by default", you'll have to use the designer to generate them or write them in code.
Your statement would be true only if Visual Studio for some reason generated all event handlers for all events whenever you add a control to a form.
Nagy Vilmos wrote: You can overrirde the hadler to be used
A few spilling mistakes; but who cares.
Typically, you don't override the handler, unless you're talking about overriding OnXXX methods, like OnKeyPress. Instead, you subscribe to event handlers.
Don't get me wrong, I get what you're trying to convey, but you're using the wrong terms, and that might confuse beginners.
|
|
|
|
|
Technically right, however I pretty much stand by my original wording. I'm sure the OP would have got the meaning I was trying to portray.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I think he means using the form designer. Although for doing 20 controls, copy and paste in the code would probably be quicker.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
When you hook up to an event handler, there's the sender object passed in as an argument. This tells you which instance was used to raise the event, so you could just cast this to a TextBox to see which box actually raised the event.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
How is it possible to run a vbscript (Stored locally) against a remote machine on the network?
At present I use the following line to execute the vbscript on my machine:
System.Diagnostic.Process.Start("c:\test\vbscriptSample.vbs")
Question:
How do I run this vbscript on a remote machine?
Is there something like:
System.Diagnostic.Process.Start("c:\test\vbscriptSample.vbs, RemoteMachineName")
?
Thanks
|
|
|
|
|
If it is on a networked machine you could do \\machinename\foldername
But the folder has to be shared across the network, also there may be obvious security limitations.
|
|
|
|
|
Hi,
I think what you mean is:
process.start("\\servername\vbscriptfilepath")
?
If this is the case then I believe you kind of mis-understood me.
Let's say you would like to use this vbscript which is on the network to run it against a server on the network.
Using the above code runs a script (depending where it is located) but it gets run on the local machine in which you are called the script from.
Whereas it should run on another machine which I can give the name of.
Hope you follow me.
Thanks
|
|
|
|
|