Dick's Q&A profile
Visual Basic VB & Word macro problem.
I've created a macro in word. I'm trying to use Winsock to establish a TCP/IP connection. When I load the Macro in Word, it keeps telling me that Winsock isn't defined. Is there a way I can load Winsock I tried using "Load Winsock(i)" but that failed as well. Here's my macro: Sub ANewsmtp() Winsock1.Connect "my.smtp.host", 25 Winsock1.SendData "EHLO my.domain" & vbCrLf Winsock1.Sendata "MAIL FROM: my@email" & vbCrLf Winsock1.Sendata "RCPT TO: my@email" & vbCrLf Winsock1.Sendata "DATA" & vbCrLf Winsock1.Sendata ...Show All
Visual Studio 2008 (Pre-release) Can you do Duplex message exchange with netPofileTcpBinding?
hi, I'm a bit confuse about this, according to the programming Indigo book by David Pallmann, it's possible. But when I tried to set the 'clientBaseAddress' attribute, a. the intellisense didn't register, b. at runtime I'm getting an error saying it's an invalid attribute. Can someone clarify this for me Thanks. -Andy You can. There is a difference, as you have noticed, with tcp bindings, which are inherently duplex. The code to set up http and tcp duplex channels would look something like this: InstanceContext instcon = new InstanceContext ( this ); WSDualHttpBinding binding = ...Show All
Visual Basic Trouble with Forms
Hello, I'm about to start working my way through a two O'Reilly books; Learning Visual Basic .NET and Programming .NET Windows Applications. I was playing with the latter this afternoon using the new VB Express Beta 2. The following code I could not get to work and I think it is something to do with the difference between .NET 1 and 2. The book examples are in .NET 1. Imports System.Windows.Forms Namespace ProgrammingWinForms Public Class HelloWorld Inherits System.Windows.Forms.Form Public Sub New () ...Show All
Visual Studio Team System TFS Warehouse errors
The trials with Beta 3 are still going well, but I've spotted the following in the Application Log. Apart from watching TFS Version Control, TFS Services, TFS Warehouse and TFS WorkItem Tracking stopping and starting themselves, we've been getting hourly errors. It has settled down now to be: ERROR MSSQLServerOLAPService : Event 3 : OLE DB error: OLE DB or ODBC error: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.; 22007. WARNING TFS Warehouse : Event 3000 : An unexpected condition has occurred in a Team Foundation component (etc.) Process Details: Process Name: w3wp P ...Show All
Visual Studio Tools for Office taskpane
in the ms-access2003 task pane, we can see home, next and previous buttons. when i click on any of these buttons, i want to remove controls from the actions pane and display the other one. now the point is how to access these home, next and previous buttons from my vsto appln Hi, VSTO suppors customization of the actions pane in Word 2003 and Excel 2003 only. I don't think there is a way to programmatically access the Home, Previous and Next buttons of the task pane in those appplications. You might have more luck with questions about Access 2003 by posting your question to an Access newsgroup ...Show All
Visual C# how do I do this? (sorting)
Hi. I feel terrible asking this but i cannot figure it out. I think my mind is all over the place. OK, I will be reading elements from an XML file. File has "Start Time" which has h:m:s and "End time" which has h:m:s What I want to do is sort the start time in order. Sure, I could put them in an arraylist then call the sort method, but I want to match the start time with the end time sorting in the start time order. any ideas/thoughts Well, what you did is also a good solution. You could also create a SorteList (it's an IDictionary) and add StartTime as key and your object as value. So the list is automatically ...Show All
Windows Forms DateTimePicker column
Does anyone know if Microsoft will be including a DateTimePicker column in the DataGridView (for underlying date values) The current article says "TextBox, Image, CheckBox, ComboBox, Link, and Button column and cell types" will be included. I'm hoping for a DateTimePicker one as well... From: http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=13&Cat=Runtime&tabindex=5 ...Show All
.NET Development localisation query
Hi. I was just sitting down and had some ideas in general for my application and thinking in general in the future what "architecture" or features would be a standard thing in my application. I am just wondering how this would work: Lets say that I am going to implement localisation in my application (english, spanish, italian, german) Now, since my application by default is in english, anything displayed on the UI (for example, the status, error messages given by the application itself - not the framework) I would like it to be localised to the language chosen by the user. I am wonderin ...Show All
Visual Basic getting application data folder!!
i want to know if there is a api for getting application data folder in windows xp!! like getsystemdirectory or getcurrentdirectory n does the path like( c:\documents and settings\"username"\local setings\.. )does this type of path varies for different windows versions!!:) Hi, For ClickOnce published application, I think IsolatedStorage is a better solution. .NET Framework 2.0 introduces a new Application scope that will move with your application updates (see this blog http://blogs.msdn.com/shawnfa/archive/2006/01/18/514407.aspx ). You can find more information about IsolatedStorage: http://msdn2.microsoft.com/en-US/library ...Show All
Windows Forms MouseClick event at design-time
Hello there, I have been searching through the internet the last couple of days trying to find a way to use the MouseClick event at design-time, but without any result. What I'm trying to make, is a very simple wizard-style form with the Back and Next buttons, yet what I'd like was to be able to change between the different wizard "sheets" at ...Show All
Visual Studio 2008 (Pre-release) DataGrid (C#) Sample
I read Microsoft Window SDK readme file. I see DataGrid (C#) example in Window Presentation Foundation section. May i get this example. Everyone have this link, please let me know. Thanks Steven. Hi Steven, Unfortunately at this point we do not have an example that we can point you to. Have you taken a look at our ListView control, which supports GridView Thanks, Tina ...Show All
Visual Studio Express Editions I get 3 build errors while publishing (Please Please Help)
Error 1: Cannot publish because a project failed to build. 1 1 Band Web Browser(BETA) 1.0.0.0 Error 2: Unable to copy file "bin\Release\Band Web Browser(BETA) 1.0.0.0.exe.manifest" to "bin\Release\Band Web Browser(BETA) 1.0.0.0.publish\Band Web Browser(BETA) 1.0.0.0_1_0_0_0\Band Web Browser(BETA) 1.0.0.0.exe.manifest". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. Band Web Browser(BETA) 1.0.0.0 Error 3: Unable to copy file "obj\Release\Band Web Browser(BETA) 1.0.0.0.exe" to " ...Show All
.NET Development New System.Net.Mail.MailMessage Body Square characters
I am trying to create multiline body using VB 2005. I dynamically build up the body with the following code: If strLine <> "" Then msgBuilder.Append(strLine.Trim() & Environment.NewLine) End If After converting to string, the final result results are added to the Message.Body and the email is sent. There are no problems sending the message. The problem is that carriage return and linefeed appear as square boxes in the message body. I've tried using vbCrLf, vbLf, Chr(13), Chr(10). They all appear as square boxes in the message body. How can I force a new line in the message body without it appearing as a sq ...Show All
SQL Server Need distributed service broker sample
I'm working with the April CTP of SQL Server and I'm trying to create a proof of concept using service broker. I'm struggling with the "abc's" of it. If anyone has or can point me to a distributed "Hello, World" for service broker between SQL Server 2005 and SQL Express instances it would save me some time and trouble. thx! Niels, The two link http://staff.develop.om/nielsb/code/routing2.zip http://staff.develop.com/nielsb/code/routing-aprilctp.zip still do not work (a connection with the server could not be established). I do not know if the server is down, or is the document no longer for pul ...Show All
Visual Basic system.InvalidOperationException
Visual Studio 2005 Professional Edition: My app runs fine on my development computer, but, bombs out on the 3 other computers that I installed it on. It installs OK, but, upon execution, it immediately aborts with a System.InvalidOperationException. And these all have version 2.0 of the .NET Framework installed on them ...Show All
