BRenfro's Q&A profile
Visual Basic Checking internet connection using My namespace
Hi all, I was under the impression that I could use the My namespace to check for an internet connection, specifically this: If My .Computer.Network.Ping( "www.microsoft.com" ) Then however this is not working. In vb 2003 I was using the WebRequest and HttpWebResponse method to determine if an internet connection is available. I'm trying to use some of the new features of 2005 and hence why I'm trying to use the my namespace for this. ...Show All
SQL Server unreceivable messages
Hey guys I have another weird looking problem I have a queue with a certain number of messages waiting in it to be processed. When I try and receive a message from this queue, I get back an empty row; no message. However, when I try and select from this queue, I see all the messages in there. Even sp_spaceused reports that there are rows in this queue. The status of each unreceivable message is 2. What would be the reason why I c ...Show All
Windows Forms Using Winzip in a Project?
Not sure if this can be done, but I'm developing an app that uses forms bound to data in a MS Access db, and I'm planning on distributing the app to different users around the country. Is it possible to write a function that tak ...Show All
Visual FoxPro Tools Option question
There is an option in Tools=>Options=>General=Data Entry It says: " Fill New Records with Current Values ." It is a checkbox. Mine was not checked when I paid attention to it. So I decided to check it. Could anybody provide an explanation: What kind of Current Values is it talking about Why is this checkbox necessary Why is it here What kind of sense does it make Thanks. It is a legacy from the old XBASE days. It specifie ...Show All
Visual Studio Express Editions Reference an Array using a String Variable
I want to be able to pull an array using a string that I built. Is there any way to do this Here is my example code: dim ary1() as string dim ary2() as string private sub test() dim totalLength as integer dim i as integer totalLength = 0 for i = 1 to 2 totalLength = totalLength + getAryLength(i) next i end sub private function getAryLength(i as integer) dim ary as string ary = "ary" & cstr(i) 'This is the part wher ...Show All
SQL Server Create Partition using ASSL
Hi, Is there any sample code about create partition using ASSL (Analysis Service Script Language) thanks, There is no ASSL. There is a DDL - data definition language for Analysis Services objects. It is XML-based. Try in the SQL Managment Studio to right click on your partition and script it into the XMLA editor. You will see DDL definition of the partition. You can modify it, change the partition ID ...Show All
SQL Server How to show two dataset with equal & non equal of multiple selection.
Dear Friends, In my report, I am having Listbox for users to choose Country, City & Company. The user can choose Country. Based on the country selection, cities will be listed out. Based on the city selection, Companies will be listed out. They can choose companies. Now, I have to show two set of results. A. List of Companies as per selection ( dataset with equal to selection ) B. List of Companies which are not selected ( ie dat ...Show All
Visual Studio Express Editions Error with && operand
Hi!! I’m very, very newbie ic C#. I’m getting error with this piece of code I get the following error: Operator '&&' cannot be applied to operands of type 'bool' and 'int' I’ve programming in C (Turbo C) and there are a lot of things I’m not remember about C Somebody knows what is the cause of the error Thanks in advanced. private void ordBurbuja(int[] a, int n) { int interrupt = 1; int pass, j; for (pass = ...Show All
Software Development for Windows Vista Dec CTP SDK configuration error
I have Win XP with SP2 on my system. I tried installing the Dec CTP of WCF. I have successfully installed WinFX runtime components. However, when I try to install the SDK, I get the following error: Windows SDK could not be configured, see the 'Installing the SDK' section of the Samples\Setup\HTML\ConfigDetails.htm document for more information. How do I get around this problem Hi JASON I h ...Show All
Visual Basic 2005 App terminates when I switch to another program
My VB.NET 2005 application terminates any time I swtich to another program, both in the IDE and deployed. For example, I'll run the app in the VS.NET 2005 IDE, and CTRL-ALT toggle to Internet explorer, and my app terminates. There is no warning or error, it does not break on any line of code. It just disappears. Any thoughts Thanks in advance. Adrian Just a few questions. First, are you certain t ...Show All
Visual Basic Best method of printing in vb.net
Can anyone recommend a method i could use to print reportys in vb.net that is tied to a database Thanx SQL Server 2005 has reporting services - perhaps that's the direction you want to go ...Show All
Microsoft ISV Community Center Forums Can I unProtect a document?
My VB code protects a Word object without setting a password, like this: Call Document.Protect(2) Is it possible to Unprotect this document If so, how (Did I post this in the right forum ). Thanks in advance for help. -Jeff Use the uprotect method of the document If ActiveDocument.ProtectionType <> wdNoProtection Then ActiveDocument. Unprotect Password:=strPassword End If T ...Show All
Visual Studio Express Editions Where To Put Initialization Code
I keep some interface settings in a local MSaccess database. The question I have is: where should I put the code that queries that database and sets up some initial variables so that they will be available to the entire application as needed. Would I just have to add a module to my solution to do this, and put the code that initializes in there If that's the answer, I can't figure out what sort of sub to put my database query code in. Th ...Show All
Windows Forms Setting a table column to shortdate format
Hi all, I have a bound textbox to a date of birth column. The textbox is showing a format of dd/mm/yy 00:00:00 which I assume is physically in the column of the datatable. 1) Is there a way to have the table column formatted to only s ...Show All
.NET Development List<string> vs. StringCollection?
Hi, any pros and cons regarding using List<string> or StringCollection Thx, Osi Here are the MSDN list of members for each respective class: http://msdn2.microsoft.com/en-US/library/system.collections.specialized.stringcollection_members(VS.80).aspx http://msdn2.microsoft.com/en-us/library/d9hw1as6(VS.80).aspx If you look closely you will notice they are very similar, however there are subtle differences. One important thing is that ...Show All
