dtrenaman's Q&A profile
Visual Studio Tools for Office sending e-mail from a SmartTag
Hi, I am trying to make my SmartTag to send e-mail but I dont know How. I have a contact list from SharePoint that contains name and e-mail address, when you write name of one of the contacts you get the Action of the SmartTag, ( I mean it works and it recognizes the name of my contacts in sharepoint) , my problem is how it can send e-mail I tryed following code: (it does not work) ProcessStartInfo StartMail = new ProcessStartInfo("OUTLOOK.EXE"); StartMail.Arguments = string.Format("example@hotmail.com"); Process.Start(StartMail); I get following error: Cannot start Microsoft Office Outlook. The command line arg ...Show All
Visual Basic Programming Challenge since u re great guy
For this challenge, you'll need to write an algorithm to find your way from one corner of a field to another as fast as possible. You will be given a starting point and an ending point, and you'll need to tell us how long it will take you to get from start to finish. The field is a grid, and you can only move up, down, left and right. Each move of one grid square takes 1 second. Unfortunately, there's also walls in the way.....the rest is here: http://www.scm.ca/programmingchallenge/maze.htm No No I m not joking That s a question some body received before a job interview, I m not sure about the difficulty of the problem ...Show All
Visual Studio Team System How to delete a Build Type?
How can i delete a Build Type from a team project There is no direct way to delete a build type from UI. You will have to delete the folder corresponding to the build type name under the TeamBuildTypes folder from the repository. This would be $/TeamProjectName/TeamBuildTypes/BuildTypeName in the source control repository. ...Show All
Visual Studio 2008 (Pre-release) Invalid security token after approx 15 minutes of inactivity
We have a WinForms application that is communicating with a series of WCF Services that are being hosted in IIS using the wsHttpBinding (with default settings, such as Windows Auth). If we leave our application sitting idle for approx 15 minutes we receive an exception about having an invalid security token. If within the debugger we make the service call happen a second time directly after the call that causes the exception the service call works as expected. Any ideas Thanks, Steve Hi Steve, Are you caching the channel proxy for the service . The Binding WsHttpBinding uses secure conversation by def ...Show All
SQL Server loop for insert into
Hello, I have 10 tables (T1Orj,T2Orj,…T10Orj) and I need to find modified rows from each table and insert them to T1Bak, T2Bak, …T10Bak. Although original and bak tables have the common fields , the original tables have more fields than bak tables, and T1Orj, T2Orj, … T10Orj tables have different table structures. I can go head and write a insert into query for each table, I am just wondering Is there any way I can do this in a loop for all tables You can use EXEC to ececute a dynamically constructed SQL statement that would run your query on every table from a list. ...Show All
Windows Forms Button Image and Text with OVERLAY puts text BEHIND image
Maybe I am missing something. I came up with a nice button image graphic, and selected IMAGE and TEXT, and to OVERLAY, and the image COVERED the text. The opposite would in general seem more useful to me. Why would you ever want to have text overlayed that you could never see I tried using background, but of course you can not declare a transparent color, and also it eliminates the image when you mouse over the button. Regardless, is there any way to get my text in front of the image on the button I appreciate the confirmation. Sometimes it just helps to know where things are. FYI: (a) i tried - it is visually different, and doe ...Show All
Visual C++ compiling mixed mode DLL always recreates the DLL's .lib file
Hi all I have a project that has both a completely native (non .NET) DLL (call it A) and a mixed mode DLL (call it B). DLL B has an unmanaged interface so that DLL A can consume functions from it. This means that DLL B can take advantage of .NET but DLL A can still use it. The problem is that when I compile DLL B it always recreates the .lib file. It doesn't matter if I'm changing the unmanaged interface at all, it will still recreate it. That means that DLL A thinks it needs to relink itself. Now recompiling DLL B is quite quick but DLL A is a different story. It means that a single line change has turned into a 5 minute ordeal It is ...Show All
Visual C++ arrow key held down
when i press and arrow key and then let go an event occurs (OnKeyUp) and my listbox moves up or down one. is there an event so that when i hold the arrow key down it scrolls fast through my listbox how would that be done maybe a timer to see how long i held the key down so instead of the OnKeyUp it should be OnKeyDown i am not sure how to capture how long i have held the key down and have it scroll while the key is pressed i didnt know that when you held the key down that windows sent multiple key presses, then this should be easy to implement, thanks! ...Show All
Visual Studio Team System Process Templates
Hi, I am trying to create my own process template. I will test it in Team Foudation beta 3. I really want to know if there is a graphic interface that helps me to create my own template process. If anyone know somethng about it, please, tell me. I either would like get some tips about how to create a new process template, if anyone knows some URL, pleasse tell me. It's an early release but I saw this demo'd on a recent course. It looks quite good and should help you in creating custom templates and work items. http://www.imaginets.com/Default.aspx tabid=133 If I was creating a process template I'd export one of t ...Show All
SQL Server Adding many templates at once
I can’t find out how to put SQL 2000 templates that I’ve already created into SQL 2005, en masse. I don’t want to put them in one at a time. I’ve got 40 or 50 of them. Can you please direct me to the location I can paste them in and have them show up. I’ve tried this location, where the ones built-in exist: C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\sqlworkbenchprojectitems\Sql When I put my own folder in there with my custom templates, they don’t show up and there is no REFRESH button on the Template View. When I saw that existing ones had the .sql extension, I renamed them from .tql to . ...Show All
Visual Studio Express Editions Getting started with VB Express 2005
When I click on "new project" the new project window opens but there is not a browse button for selecting the folder for the new project. When I click OK I get the following error message: "The filename, directory name, or volume label syntax is incorrect (Exception from HRESULT: 0x8007007B)" The <Tools><options><Projects and Solutions><General> all of the text boxes are filled in with the default folder paths, and all are valid folders, which do exist. Can someone help me to get started Peter - Try setting the Visual Studio projects location in the Tools | Options dialog by using the browse b ...Show All
Windows Forms Binding of dynamically created controls
hi, i have a form which creates in the loop i am creating them nicely here is my code for that Sub createcontrols() Dim i As Integer = 1 Dim j As Integer = 1 Dim k As Integer = 64 For i = 1 To Me.txtloop.Text ...Show All
Visual Studio Express Editions How display a help box when mouse hovers?
Hi all, I'm making a little program and I wanted to add a small feature. When you hover over buttons, or other various objects, after a few seconds a yellow text box opens up that tells what that object is. For example, if you hover and keep it still over the forward/back/reload buttons on your web browser it tells you what they do. What is this called in c# Thanks all, Tim That is called a ToolTip. You would add one to your form in the designer, which will add a new pseudo--property to each control named "ToolTip on <ToolTip Name>". Whatever text you assign to that property will be displ ...Show All
Visual Studio Express Editions How can I cancel the navigation and get the URL so I can use it myself?
I'm building a tabbed web browser in VBE. When I click on a link in a page that opens a new window, the new window is launched in IE. I want to intercept this and open the window in a new tab in my browser. VBE doesn't give me beforenavigate or newwindow3 or newwindow2. It gives me newwindow but it only passes byval. Private Sub wb_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) How can I cancel the navigation and get the URL so I can use it myself Why doesn't VBE give me beforenavigate or newwindow3 or newwindow2... ...Show All
Windows Forms Forward and Back Button enabled/disabled using the WebBrowser Control using VB 6.0/.NET
You have to do the following things to update automatically the forward/backward button using internet control. Step 1: Declare constant variables ====================== Private Const CSC_NAVIGATEFORWARD As Integer = 1 Private Const CSC_NAVIGATEBACK As Integer = 2 Step 2: Write code on the Web Browser Command State Change ...Show All
