AlucardHellSing's Q&A profile
Visual C# FileSystemWatcher to monitor directories not working.
Hi all, Hopefully someone can help me find a solution to a problem i'm having. I have an application that downloads files from an FTP site to a specified download location. The application then launches an SSIS package to process the downloaded directories. What i want to do is set up a FileSystemWatcher object to monitor the download directory. As the SSIS package processes the directories it removes them to an archive or quarantine location. As they are removed i want the FSW Changed event to fire and to update a label in the application to show the number of directories remaining in the download folder. Can someone polease nelighten me as to how this can be done. At present the FSW Changed event doesn't seem to be firing and i don't knw ...Show All
Windows Forms Basic question about using custom files/classes
Hey there, I know C++ fairly well and in order to learn Windows Forms I decided to make a calendar application. Here is the layout i spent some time on using the designer. (the main parts including the days arent included yet due to my problem) I have no problem making simple interaction with these controls, for example. I have the "Next" and "Previous" buttons scroll through the months of the year, and the corresponding year is displayed in the label above the buttons. This was simple for me to figure out because I declared and used my integer(identifies the current month) right in Form1.h. However, as almost all applications, my project requires custom classes and files. So, say i want to create MyFile.cpp and My ...Show All
Windows Forms Concurrency violation help me please
hi i use vb.net 2005 and an access database i connect to one table and change many things on the table and then save it again i use the disconnected mode i disappointed i try to solve the concurrency violation like the msdn said (get a fresh copy of the table and merge it to the worked one)but it sometimes save and sometimes not !!!!! although im one user for the database help me thanks in advance. hi .. thanks very much for replying me i don't use macros or any execution of any code or VBA and also the only dataset that update the table is only one i try to close the connection after each update is finnished but no use !!! one big note :the update process success sometimes and fail sometimes !!! if you have ...Show All
Community Chat Free Online Visual Basic 2005 book
I have recently made my book free, sponsored by AdSense of course. The book is designed for non-programmers. After many hours of tweaking javascript I have finally completed most of the design of the page, so that it works with google and also so that there are no frames. If anyone would like to help with the book, ie: make it better, then feel free to contact me here or at the site. You can find the book link in my signature... I am thinking of using DP Syntax Highlighter ( http://www.dreamprojections.com/syntaxhighlighter/Usage.aspx ) for highlighting the code, and also adding C# to it. Perhaps even C++ I would need some help with this though, as I'm not really that great in those two languages. If anyone wants ...Show All
Visual Basic Desktop folder question
Hello, I was using the "My" namespace to reference the Desktop folder, like this: My .Computer.FileSystem.SpecialDirectories.Desktop but it was not showing all the contents of the folder. Another person said that the "My" value returns the filesystem folder corresponding to the desktop and not the Windows shell desktop folder. Is there more than one Desktop What does this mean Thanks for any suggestions. The following My.Computer.FileSystem.SpecialDirectories.Desktop will simple return a path to the current user desktop folder. Every user has there own desktop folders and you can then use something liek the following to return all the files in the folder ...Show All
Visual Basic How to make labels transparent
Using the transparent color for label backgrounds do not work. Any ideas Can you do it with textboxes Thanks. I think what that color does, it changes the label's background color to the forms background color making it look transparent from the form's perspective... no big. ...Show All
SharePoint Products and Technologies Page Viewer Web Part Problem
I am unable to display files in the Page Viewer Web Part as the MS documentation says I can. When I select "File" from the Web Parts properties, no Browse button appears (as the documentation says it should) and if I try to enter the path to the file manually, the system always tells me it is invalid. Is this working for anyone else out there If so, please tell me what I am doing wrong. I am running WSS 3.0. Please note, I can display a web page in the Page Viewer Web Part without any problems, so I know that aspect of it works. There's no "Browse" button; you just enter the URL of the file in the "Link" text box. Remember that you have to enter an address that will be accessible by the end user ...Show All
Software Development for Windows Vista Change the flow at runtime
Let's say I have this scenario: Workflow starts with code activity A Flow continues to the next activity called B Flow continues to next activity called C In activity C some custom code is deciding to continue executing the workflow or to go back to the fisrt step, in this case, activity A . What code I have to write in activity C to have the normal flow diverted to activity A and continue normal execution again Thanks, Jose HI. you must create a Decision Activity and implemente custom schedule for composite Activity. and, if you implemente presentation of GO TO , the root Composite Activity maybe would be inherited from FreeformActivityDesigner. the FlowChat Samle is a go ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Transparent Texture Mapping
Hi all, I know this forum probably isn't for general graphics programming techniques, but since I'm using XNA I was wondering if perhaps I could get some pointers on what to search for on the web :-) What I'm trying to achieve is basically this, I have a texture (png) with a transparent background. I would like to apply this texture and have the areas textured with the transparent section to be ... well ... transparent :-P Right now, the sections that are supposed to be transparent are showing up white. Thanks for any help you might be able to offer. As you want only some keywords you should looking for "Alpha Blending" and "Alpha Test". ...Show All
Visual Studio Team System Credentials of the SubscribeEvent WebService
I'm using the WorkItemChangedEvent and subscribe the Event to a WebService. The Credential of this WebService is the credentials of the tfsservice account. Normally you can change the Credentials of a WebService: service.Credentials = System.Net. CredentialCache .DefaultCredentials; But how can I change the Credentials of the WebService which is subscribed on the Event I want to connect to TFS without having to set credentials in my webservice code. So I added to the web.config: <appSettings> <add key="WorkItemTrackingCacheRoot" value="C:\Inetpub\wwwroot\TFSWebService\TFSCache" /> </appSettings> <system.web> <identity impersonate="t ...Show All
Internet Explorer Development iframe doesn't work in IE7
Hello, I am new to IE7 and am a bit boggled by the fact that this simple page doesn't work: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Novell GroupWise</title> <meta http-equiv="Refresh" content="900"> <base href="http://mail.parametrix.com/" target="_self"> </head> <body style="margin: 0; padding: 0"> <div style="text-align: center; font-family: Arial,Verdana,sans-serif; color: white; background-color: red"> ...Show All
SQL Server LOCAL USER vs GLOBAL USER set in agent service
My replication is not working. I was able to create a transactional replication successfully. However, when i tried starting the agent on the snapshot, it wouldn't work. I figure that it was because my agent service login is different from that of the subscriber. my publisher and distributor is on local user whereas my subsciber sql services use our global login. Thank you in advance. Good day! mongol wrote: My replication is not working. I was able to create a transactional replication successfully. However, when i tried starting the agent on the snapshot, it wouldn't work. I figure that it was because my agent service login is different from that of the subscrib ...Show All
.NET Development Can class instances be reflected without giving reflection a reference to the object?
If I have a program in which I've declared a few instances of a class, is there some way I could write a reflection component that could be plugged into this program and read instance information off of the class(es) without reflection being passed a reference to the instances I can already read all the information off public properties and fields of a class instance when I pass a reference to the instance to my reflection code, but I don't want to have to pass an instance, I want reflection to discover what instances exist in a program and read their public property information off of them. This won't be possible using managed code due to the architecture of the CLR. The only point at which you can know where all of the objects a ...Show All
SQL Server Verification origin
Hello, it wanted to know since I can do so that enla ejecucuion of the package is verified if the archives of origins of excel exist, in the case that do not exist not to execute their flow thanks Hello, I thank for your aid, but as the existence of the file could implement in script and as it would update the variable so that it takes the container from sequences. Greetings ...Show All
SQL Server dynamic reports
Hi, I have a situation wherein, I am using the ReportViewer control to bind the report. It is a local report. The dataset to be bound to the reportviewer control, has dynamic number of columns. I need to display charts based on the data in the dataset. How should I go abt doing this. My assumption is, I need to create .rdlc files on the fly based on the columns in the dataset. So how to create .rdlc files on the fly. In other words, how to dynamically create rdlc files. Please help. Thanks, Saravanan. ...Show All
