|
You can access the clipboard by using the My.Computer.Clipboard object. You would still need an event to use to copy and paste (maybe using buttons). Ctrl-c, and Ctrl-v automatically work as intended on both Browser and Textbox contrtols.
|
|
|
|
|
Hi,
i am new for this.
I am trying to compile an old VB project but it is giving error in
a line like [Can't find Project Or Library]
strdate = Format(Now,"YYYY-MM-DD-HH.MM.SS")
why it is giving this error . do i need to add any reference for this.
please help me
Thanks
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
no "-" after DD
strdate = Format(Now,"YYYY-MM-DD HH.MM.SS")
and also check by going to your references , it will show you the missing Project Library starting with the word Missing that is there any lib missing also or not. Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Ya it shows the MISSING : APEX Array Object
it refers to xarray32.ocx
but i thought it is other problem.is it ?
|
|
|
|
|
try to add reference Manually to that missing library if it doesnot exits at that location Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Have your tried the FormatDateTime() function.
|
|
|
|
|
hi i got the solution
i just unchecked the missing component
and compiled it again.
that it now my application is running.
Thanks! 
|
|
|
|
|
I am able to publish applications but when I tried to run setup I am get an error message. Can not start application.
An error has occurred writing to hard disk. Check if there is enough available disk space. Contact the application vendor. here is the log file below and how do I fix error. I have over 200 gb of free space.
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file: Application url : file:
IDENTITIES
Deployment Identity : TodaysCafePos.application, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil
Application Identity : TodaysCafePos.exe, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\todayscafe\TodaysCafePos.application resulted in exception. Following failure messages were detected:
+ Downloading file: + The file 'I:\Documents and Settings\Daniel Engelkes\Local Settings\Temp\Deployment\GW8EOZA8.KMK\X1OEK3EE.TK5\2gs_extendedtextbox.dll' already exists.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [3/9/2010 9:32:14 PM] : Activation of D:\todayscafe\TodaysCafePos.application has started.
* [3/9/2010 9:32:17 PM] : Processing of deployment manifest has successfully completed.
* [3/9/2010 9:32:17 PM] : Installation of the application has started.
* [3/9/2010 9:32:17 PM] : Processing of application manifest has successfully completed.
* [3/9/2010 9:32:24 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [3/9/2010 9:32:25 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file: - Source: System.Deployment
- Stack trace:
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.IO.IOException
- The file 'I:\Documents and Settings\Daniel Engelkes\Local Settings\Temp\Deployment\GW8EOZA8.KMK\X1OEK3EE.TK5\2gs_extendedtextbox.dll' already exists.
- 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.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
------------------
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file: Application url : file:
IDENTITIES
Deployment Identity : TodaysCafePos.application, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil
Application Identity : TodaysCafePos.exe, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\todayscafe\TodaysCafePos.application resulted in exception. Following failure messages were detected:
+ Access to the path 'TodaysCafePos.exe.manifest' is denied.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [3/9/2010 9:57:06 PM] : Activation of D:\todayscafe\TodaysCafePos.application has started.
* [3/9/2010 9:57:12 PM] : Processing of deployment manifest has successfully completed.
* [3/9/2010 9:57:13 PM] : Installation of the application has started.
* [3/9/2010 9:57:13 PM] : Processing of application manifest has successfully completed.
* [3/9/2010 9:57:20 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [3/9/2010 9:57:25 PM] System.UnauthorizedAccessException
- Access to the path 'TodaysCafePos.exe.manifest' is denied.
- Source: mscorlib
- Stack trace:
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String path, Boolean recursive)
at System.Deployment.Application.TempDirectory.DisposeUnmanagedResources()
at System.Deployment.Application.DisposableBase.Dispose(Boolean disposing)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I republished the application and left the dll file off the published edition and now able to install application. But another question has popped up, when I run setup wizard it does not install application to the directory I want to install to, It installs to a temp directory, How do I change that?<div class="signature"><div class="modified">modified on Wednesday, March 10, 2010 1:25 PM</div></div>
|
|
|
|
|
Does the user who is running the setup have permission to create folders/files in the root of Application Files folder? This tends to be restricted to Admin priviliges.
I experienced this a few years ago when Admin installed the app, but when the user first ran it, the app created the default config file, but this failed due to priviliges in this folder.
|
|
|
|
|
yes the user logged is a user account with admin privileges.
|
|
|
|
|
Other than user privileges the only other things i can think of is a process already has a lock the file if it is existing already and is trying to be overwritten.
The exception clearly states unauthorised access though;
* [3/9/2010 9:57:25 PM] System.UnauthorizedAccessException
- Access to the path 'TodaysCafePos.exe.manifest' is denied.
|
|
|
|
|
I republished the application and left the dll file off the published edition and now able to install application. But another issues has popped up, when I run setup wizard it does not install application to the directory I want to install to, It installs to a temp directory, How do I change that?
|
|
|
|
|
I am looking for some code the will import files similar to the Windows Image Uploader. I want the user to be able to create or select a folder or event name for the imported files.
Any ideas or suggestions?
Thanks,
RGecy
|
|
|
|
|
Noone is going to write this for you. We'll answer questions on you writing your own though.
You haven't said anything about the type of app you're developing, Windows Forms or ASP.NET, or anything else remotely useful to make any kind of good suggestions.
|
|
|
|
|
Dave,
I really didn't expect anyone to write anything for me! I believe I asked for ideas or suggestions!
I was hoping there may be some code already written out there that would point me in the right direction. Maybe with a few modifications. I am developing a Windows Form app. The user will need to select the appropriate folder and the app will look for the required/correct files to import into the designated folder.
RGecy
|
|
|
|
|
This is easy enough with the FolderBrowserDialog class and the Directory and File classes. Look into the GetFiles method on the Directory class in the System.Io namespace.
|
|
|
|
|
I am using a richtextbox in my project, and want to be able to drag files into it.
While I can get a file and get it to load, the file object is also inserted into the control.
There appears to be no handled property on the DragEventArgs of the DragDrop event for the richtextbox.
I've been back and forth through the docs and nothing I've tried seems to work.
|
|
|
|
|
Also noticed something else re: richtextbox.
Tried setting up a reverse find. Seems that no matter what I did, the find always started at the end.
I used instance.Find(theText, startPos, RichTextBoxFinds.Reverse)
And while it would find theText, it would always find the same text, last one in the box. I could put a starting position between 2 known locations of theText, and it would make no difference.
In the end, I put the text into a string, then did an InstrRev to get the location, then set the SelectionStart and SelectionLength accordingly, and it works.
But it should work using the .find!
|
|
|
|
|
I seem to be having trouble with the batch build.
While I can get the item in the build menu, it remains grayed out.
I set the solution properties to multiple configurations, but it doesn't stick, and I can't get it to build both the release and debug versions at the same time. I can change configurations and do each one individually, but no batch.
|
|
|
|
|
I think you're misunderstanding what Batch Build does.
You cannot pick the same project to be built twice. Batch Build only lets you pick which projects in your solution you can build and using which configuration (Debug, Release, CPU, custom). You cannot tell it to build the same project twice, once Debug, once Release.
|
|
|
|
|
Oh? I know I'd been able to do this with VS 6.
Was it taken out in VS 2008 or before?
When I did batch build on VS 6, a window would come up with release and debug with checkboxes to include in the build.
This window was similar to the configuration manager in VS 2008, but release and debug had separate lines whereas the one in VS 2008 has only 1 with the dropdown for debug, release and whatever else might be added.
|
|
|
|
|
llandyw wrote: Was it taken out in VS 2008 or before?
I went back to 2003 and still couldn't do it.
llandyw wrote: When I did batch build on VS 6, a window would come up with release and debug with checkboxes to include in the build.
I used to do it all the time in VC6. Frankly, now I don't even bother with Release until I'm ready to go to UAT and ship it.
|
|
|
|
|
Must have last been available in VS 98 (6).
Unfortunately, that one doesn't work on Windows 7. Maybe I should try loading it into the VPC. Anyway, sure would be nice if it allowed debug/release at the same time in batch.
|
|
|
|
|
hey experts,
i m sending multiple emails from my code in bulk, i just want to check which mail succeeded and which mail fails, i searched a lot but i m not getting any idea, can anybody help me with that. Or may be help in creating a email sending monitor
waiting for positive replyRegards
Narendra Singh
(Jindal Tech Ventures)
|
|
|
|
|
Please do not repost the same question; I already answered this in the C# forum.
OK, my answer got lost for some reason (mistake on my part). Generally speaking mail systems do not do this, as they follow the physical mail model. You post a letter but you can only be certain it gets delivered if you get a response from the person who receives it. It is not very efficient for a mail system to send you a message every time it delivers an email, and many messages may go to accounts that nobody reads; but there is no way for the mail system to know that. You can tag messages with a request for a read receipt, but that still relies on the recipient agreeing to send you one - I never do.txtspeak is the realm of 9 year old children, not developers. Christian Graus
modified on Tuesday, March 9, 2010 8:15 AM
|
|
|
|
|