stujol's Q&A profile
Visual C# Error sending filled form via email
This is the code I use to send my form via email: protected void sendMail(string strFrom, string strBody) { //create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress(strFrom); mail.To.Add("myEmail@myDomain.com"); //set the content mail.Subject = txtSubject.Text; mail.Body = strBody; mail.IsBodyHtml = false; //send the message SmtpClient smtp = new SmtpClient("noAuth.myDomain.com"); smtp.Send(mail); } And this is the error message I received: Server Er ...Show All
Visual C++ [setup-project] How to copy external Files (*.jpg)
Hi ! My Application needs besides the executable file a huge amount of images (about 1500, 3 GB). Ok. Since these images change quiet often, I do not want to embed them into my setup project statically. What I would prefer is to make the installer copy a directory into the target directory. Something like "copy .\images\*.jpg [TARGET_DIR]\" where "." points to the location where setup.msi lies. How can this be realized BIG THANKS FOR YOUR HELP IN ADVANCE!!! Oliver Demetz Ok. But I think, this should also be possible with a setup project from Visual Studio. Please Help Me! Thanks in advance! Oliver De ...Show All
Visual Studio Express Editions Access files on a Mobile Device
I am currently having issues with my first Visual Studio program. I have written an application that selects a file using the openfiledialog class, it then copies the file to a backup folder, and then reads the same file and creates an edited copy for use in our office. The program is very simple, and works. EXCEPT, that i want the original file that is being selected via openfiledialog class, to come from a mobile device. When the open file dialog box appears in the program, 'Mobile Device\' does not show up, and i can't seem to navigate to it. When i run the program ActiveSync is running and connected to the device, and when i open My C ...Show All
Software Development for Windows Vista Can I hide "standard" properties on the designer?
Hi there Im working on an application based on WWF who lets user build workflows graphically. They don't have to write a single line of code. They can't for example add handlers or code conditions etc. to their workflows. So on the hosted designer there are many "standard" properties on the worklfows and activities, like "Commented" or the different handlers, which should not be there. Is there a possibility to hide them I tried to override them in code, but that doesn't work with all of the properties or the handlers. Thanks! Thomas I've found three ways to do this. 1. use a CustomTypeDescript ...Show All
.NET Development Change source URL of webservice client
Hi I have a webservice that i wish to call from a client app. This easily done in VS 2005, but my problem is that i want to programatically change the URL during runtime. I do not want add a web proxy and then change the URL in the config file. I want the user to be able to type in the URL and right after that call the webservice. I have tried to create my own webservice proxy (via VS 2005) and modifying the SomeSerivce.URL property but this does not seem to work. I think that I am looking for a solution that uses a TCPConnection, or something similar and manually builds up my calling string, invokes the webservice and then returns the ...Show All
Visual Studio Extending VS2005
Hi all, I have a custom tool pane to aid in the documenting of our source code, but i have no idea how to read the line where the cursor is at in the editor, i need this to see what Methode or type i have selected.. Could anyone point me in the right direction Greetings Well that makes sense because I put the interface name down wrong. Try searching for IVsCompletionSetBuilder. That will teach me to just toss out an interface name without actually verifying it is the correct one :-). Sorry for the confusion, Dylan ...Show All
Visual Studio Unable to add the command
Hello, I need to add a command to the context menu of the project. I am running the following code: object[] contextGUIDS = new object[] { }; Commands2 commands = (Commands2)_applicationObject.Commands; CommandBars commandBars = (CommandBars)_applicationObject.CommandBars; try { _command = commands.AddNamedCommand( _addInInstance, "WCFProxyGenerator", "Add WCF Service Reference...", "Windows Communications Foundation Proxy Generator", & ...Show All
SQL Server Calling user defined function from other server
I have UDF in a database on SQL2000 server. Is it possible to call this UDF from other server (SQL2005) I did setup a linked server to SQL2000 Call to the following function returns an error: Msg 207, Level 16, State 1, Line 1 Invalid column name ' srv2000 '. select [srv2000] .db_test . dbo . F_TEST () You cannot call remote UDFs in SQL Server right now. So you will have to use pass-through query using OPENQUERY to call the UDF or EXECUTE AT in SQL Server 2005. -- SQL Server 2000/2005 select i from openquery([srv2000], 'select db_test.dbo.F_TEST() as i') -- SQL Server 2005 ...Show All
Visual C++ customize codepage used by "cl.exe"
I'm using Visual Studio 2005, I'm wondering whether there's anyway to set the codepage used by "cl.exe" instead of the default system codepage. For example, the system default codepage (ACP) is 936, but I want the "cl.exe" to use code page 1252 instead. Any suggestions Thanks in advance! As you probably are aware, the compiler uses the codepage corresponding to the setting under the "Regional and Language Options" control panel. I'm assuming that you do not want to change your entire system to English, but rather just use the English codepage for the compiler in particular. I'm not wholly sure how this w ...Show All
Visual Studio Crystal Reports Service Pack message failed to create backup folder -110
I have a C# app that using Crystal 9 Advanced. Every time a service pack is released the service pack installer gives the message "failed to create backup folder -110" many times. This is pretty embarrassing when I ask a customer to install the service pack to correct a problem. Also, I would like to deploy the service pack with my installer and since there are no merge modules that include any of the service packs I would have to launch the service pack installer in which case those messages would really confuse my users. Can anyone tell me what it is trying to create and/or why it is failing Perhaps I could create the fold ...Show All
Visual Studio Tools for Office Picklist of public folders
Hi I am new to add-in's. I am using vs 2005 and vsto to create an addin in outlook. I would like to create a picklist of public folders for a user to select. I have not had much luck at progressing beyond iterating through the top level of folders. This is what I have so far. in my ThisApplication_Startup function Dim AllFolders As Microsoft.Office.Interop.Outlook.Folders = Me .ActiveExplorer().Session.Folders For Each Folder As Outlook.MAPIFolder In AllFolders MsgBox( "folder " & Folder.Name) Next I can't seem to get the subfolders below the top level. Alternatively I have tried ...Show All
Visual Basic adventure works and 101 Sample files
hi All i have downloaded both of the above but can't seem to get any of the sample files to run in VB express 2005 which need the adventureworks_data db. does anyone know if it should work at all I succeded running the CreatingMasterDetails sample doing the next: 1) Using the DataBase Explorer (Open Table Definition), I have added the next two columns to Employee table: DepartmentID smallints Allownulls=true BaseRate money Allownulls=true 2) Using the DataBase Explorer upadate the colu ...Show All
Windows Forms The Perfect Host - MSDN March 2006 Article - VB.NET Code
For those VB.NET folks who don't know C# very well, I converted the code to this fantastic article. The code is now in VB.NET 2005. Get the code here . You can also read about other notes regarding Hosting Custom Designers on my blog . I'm on the learning curve on this, so if there is anything you'd like to share, please do so. Thanks and I hope this code serves you well. Mark ...Show All
Visual Studio Express Editions How do I retrieve an SQL database record by primary key?
I completed the " Creating Your First Database" walkthrough where you create the "Addresses" SQL database all of the way through " Adding or Modifying Your Records: Updating Data". Now, I want to retrieve records like this: When I type the first letter of a person's last name, the first record with a last name that starts with that letter will display on the screen. When I enter the second letter, the first record with a last name that starts with those 2 letters will display. I will then keep entering letters until the record that I want is retrieved. How do I do that ...Show All
Windows Forms datagrid problem when accepting changes after deleting row
I have a datagrid on a form in which the user can insert, edit and delete records. It seems that it is working fine but when I'm deleting a row and accept the changes in the linked datatable (dg.datasource), the grid shows an additional row with dbnull values if I insert a new row/value. For example: The grid shows 111111 222222 empty row I delete 222222 the grid shows 111111 empty row I add 333333 in the empty row and click somewhere in the grid the grid shows 111111 null null empty row What I'm doing in my code is handling the dg_CurrentCellChanged event: save the changes to the database, and accept the cha ...Show All
