Don Yang's Q&A profile
Visual Studio Express Editions Submitting a Form over the Web
How would I have the data that users input in a form be submitted to me say over an e-mail. If you can not do this over an e-mail, could you please tell me how this would work. This is very important! Thank you all. you can use the System.Net.Mail classes to send an email to a specified email address however you must generally give it the Credentials so it can authenticate your account. you would use a MailMessage object to construct the email (sender, to, subject, message etc....) then use the SmtpClient class to send the email, of course giving it the IP Address of the mail server/SMTP server. Take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760457&S ...Show All
Visual Basic Having some trouble with Webbrowser manipulation
I am trying to write a program that will go to a webpage, select a specific item from the pull down in a form, enter something in a text box, and then hit the submit button. I have been able to enter stuff in the box and click the submit button but I can't for the life of me figure out how to select items from the pull down. Can anyone give me some example code or something like that Thanks! I think that was exactly what I needed! Thanks! This needs to be documented somewhere as like an example or part of a tutorial because I could not find it anywhere. ...Show All
Visual Basic Passing an array from a VC++ ActiveX component to VB .NET 2005
Please point me in the right direction if this has already been answered. I've looked all over and found things close to my problem, but nothing that adapted properly. All I want to do is pass a one-dimensional array from an ActiveX componenet written in VC++ (2003) to a program written in VB .NET 2005. It seems like I should be able to package the array as a Safearray and then as a Variant, and return that object. But I don't seem to be able to package it properly. Thanks! That is correct. I am creating the array in the C++ code and trying to use it in the VB code. I'm afraid I'll confuse you by posting my declarations, because the only method I could find that might work would be to create the ar ...Show All
Visual C# Recursive Hierarchy of generic interfaces
I'm trying to implement a parent-child relationship between 3 objects, and I want to constrain what can be a parent of what. interface3's parent can only be interface2; interface2's parent can be either interface3 or interface2 interface3 -> interface2 -> interface3 -> interface2 -> ... -> interface2 -> interface1 As a first step, I tried to implement an interface hiearchy that only allows interface3 -> interface2 -> interface1 I thought the following interface definitions would do it, but the compiler complains that The type 'interfaces.Interface2' must be convertible to 'interfaces.GenericInterface<interfaces.Interface2>' in order to use it as parameter 'P' in the generic type or method 'interfac ...Show All
SQL Server Snapshot Agent missing files.
My Snapshot Agent for SQL Server 2005 sometimes does not fully complete. I am expecting around 2073 files in the snapshot folder but only get 492 (this number does change). I have immediate_sync set to true, so I should get a full snapshot every time. It seems to quit after all data has been BCP'ed out and before the schema generation starts. I do get the " The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active. " message in the MSSnapshot_history table. I am guessing that there is some sort of blocking ...Show All
Windows Forms setup project and satelitte assembly
I have problem in build setup project. I have SomeExeProject that have referense to 3party multilanguage assembly, it placed on some net share like \\someWarehouse\3partyAssembly.dll So when i build SomeExeProject, it copy to bin folders like ru-RU/3partyAssembly.resource.dll and it works fine. But when i create setup project(SomeSetup) for SomeExeProject and add PrimaryOutput of SomeExeProject and Localized resources of SomeExeProject it not copy to msi folders ru-RU/3partyAssembly.resource.dll And so when i run SomeExe installed from SomeSetup it not work, because application can't find ru-RU/3partyAssembly.resource.dll. I can add File (ru-RU/3partyAssembly.resource.dll) because 3partyAssembly periodically changed and Setup Project i ...Show All
Software Development for Windows Vista Exception on raising an event
Hello, I'm developing an example project very similar to expense reporting (lab01), with two event handlers. I can fire the first one (submitted event) without any problems, but when I try to raise the second event (reviewed event) I get an exception that sais: "EventDeliveryFailedException was unhandled" and the message is "Event "RevisatCOF" on interface type "WorkflowValidacio.Interficie" for instance id "ef46e5fa-64c7-4343-9d3c-c62b829f9c37" cannot be delivered." I followed exactly the example in expense reporting, so I have the event declared in my interface and in the implementation class, and I raise the event like this: RevisatCOFEventArgs e = new RevisatCOFEven ...Show All
Smart Device Development confused about Windows Mobile different categories
Hello everyone, In my understanding, Windows OS for device is divided into two sub-categories, Windows Mobile and Window Embedded. And in Window Mobile, there are two sub-categories, Window Mobile Pocket PC Edition and Windows Mobile Smart Phone Edition. Is my understanding correct I have a further question, what is the common points and differences between Windows Mobile Pocket PC Edition and Windows Mobile Smart Phone Edition thanks in advance, George Some more background Info: Windows CE is the embedded real-time operating system used inside small devices e.g. controllers, GPS devices etc. Windows CE versions are 4.0, 4.2, .., 5.0 and upcoming 6.0 and so o ...Show All
Visual Studio Team System Deleting Team Projects
How can I delete a team project from my TFS I can remove it, but it still exists on the server. I would like to delete it completely. Thanks. Tried that method, but wihtout success, I'm getting to following error: TF30171: The Microsoft.ProjectCreationWizard plug-in used to create the new team project could not be initialized amd returned the following error: TF30270: Project site folder "<OrphanedFolder>" already exists. Thanks // Lasse ...Show All
SQL Server run-time changeable queries
I need to extract and store a value from a table (or from a MS Access file with OpenDataSource) which is not always the same and it is therefore stored in the @openfile variable. Something like this: ... declare @standardselect nvarchar(4000) declare @value int select @standardSelect='select top 1 @value=val from ' + @openfile exec (@standardSelect) ... It obviously doesn't work because the variable @value is not declared within the sql string. However, since @openfile is always different, I need to pass it through a string and the only way I know is within a variable. If I declare @value inside the @standardselect it is not accessible to the rest of the procedure, which is not acceptable for me. Any suggestions ...Show All
Visual Studio Team System Disable multiple checkout
We are experiencing some problems with multiple checkout. I want the exclusive lock behaviour, so I unchecked "Team->Team Project Settings->Source Control->Enable multiple checkout". Unfortunately we still have one class diagram file that seems to work in multiple checkout mode. I do some changes, my coworker can do them in the same time and when we check in we get conflicts. Any hints on why this happens Is it possible you or your coworker already had the file checked out prior to changing the Team Project setting When you check out the class diagram, does the pending changes window show the pending change as "edit,lock" or just "edit" Thanks, Ben Ryan ...Show All
Visual C++ Creating MD5 hash
Hello, i'm new in C++, i want to make console program for creating md5 has, you can enter string and from that string program would create md5 hash and display it on the screen. I have searched msdn library and i found MD5 class, but i don't uderstand it well, so can somebody give some tips or some sample code. Sorry for my bad english Ok, I just wrote about half a page of text regarding your choices between C++, C#, VS2003 and 2005. When I pressed the "post"-button, the website managed to log me off and trash what I had written. Since I'm running out of time here, I can't retype it all. To sum it up, though, you should consider starting your experience with C++ through books and tutorials, then use th ...Show All
Visual Basic How to send e-mail?
As the question, how to send e-mail I don't know what's the code for send e-mail. Can anyone teach me how to I have a button on the Menu Tool. I want when user presses that button, it will directly link to the Microsoft Office to send e-mail to me. Please teach me. By the way, I also want to know how to load a text file. I want to make another button on the menu tool so when user presses it, a text file will pop up. Thank you Hello. I don't speak english so much, but I'll say all I know with VS 2005. I know how to send a email form your application and not form MS Office. With the class System.Net.Mail.MailMessage, you put: to, from, subject, cc, bcc, Body. With the class System.Net.Mail.Attac ...Show All
Visual Basic MainMenu Question
When a menuitem is assigned to a subprogram via the click event such as Private Sub MenuItem3_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click End Sub how does one reuse the subprogram. If I delete my mainmenu and create a context menu instead, how do I reuse the already created subprograms. When I create a new menuitem and assign it the already existing name of MenuItem3, net creates a new sub program called Menuitem3_click1 is created. Thanks, I suppose you are creating your menus in the Form Designer. Then you need to go to the MenuItem Properties window, select the Events view and when you click the Click event f ...Show All
SQL Server SSIS:package contains two objects with the duplicate name
public static void CreateDestDFC1() { destinationDataFlowComponent1 = dataFlowTask.ComponentMetaDataCollection.New(); destinationDataFlowComponent1.Name = "SQL Server Destination 1"; destinationDataFlowComponent1.ComponentClassID = "{5244B484-7C76-4026-9A01-00928EA81550}"; managedOleInstance1 = destinationDataFlowComponent1.Instantiate(); managedOleInstance1.ProvideComponentProperties(); managedOleInstance1.SetComponentProperty("BulkInsertTableName", "Employee"); managedOleInstance1.AcquireConnections(null); managedOleInstance1.ReinitializeMetaData(); managedOleInstance1.ReleaseConnections(); } //Second one here.. public static void CreateDestDFC2() { destinationDataFlowCompon ...Show All
