ManMuffin's Q&A profile
Visual Basic Try...Catch statement Question
I have a Try...Catch statement that contains 12 Operations inside it. On the catch I want to display a msgbox that tells exactly which operations failed. I was looking through the exception methods and couldn't find one that worked. All of the methods provided relative information but nothing specific. The reason I want to pinpoint exactly which operations failed is so that the user can email the error message to me and when I get it I will know exactly how to fix it. Thanks. Is there a way to show information like a breakpoint shows For example my breakpoint details say: At Form1.vb, line 129 character 13 ('Char1_Read', line 25 ...Show All
Visual Studio Team System Intellisense????
I'm delighted and amazed that this product is coming however I already have one RFE....object Intellisense, the like of which is done by Prompt SQL (which has just been bought by Redgate). e.g. I type a table name followed by a period (.) and intellisense pops up a list of all the columns names. Any chance of getting that in Thanks -Jamie At this point, Intellisense is not in the product. Trust me, you're not the only one asking for it. Cheers, Brian Randell MCW Technologies ...Show All
Visual Studio Tools for Office Why I can not open remote Office document in browser?(vb.net)
Hello,everybody. I have a problem like this: I want to click a doc hy-link in the client browser to call local office application and open an office document saved in the server,like Word or Visio.but it is always wrong. I use VB.NET, and the codes: 'WebForm1.aspx Imports OWSSUPP 'an Office 2003 DLL Public Class WebForm1 Inherits System.Web.UI.Page Dim openDoc As New OWSSUPP.COWSNewDocumentClass Private Sub btnEditFile_Click() Handles btnEditFile.Click Dim bFileOpened As Boolean Try bFileOpened = Me.openDoc.ViewDocument(" http://localhost/UpFiles/1.doc ") Catch ex As Exception Me.lstMsg ...Show All
Visual Studio Express Editions Is there a way to open macro
Hi, I have a project in VB and it connects to a Access database. And there is a macro in my Access database, which opens a table in that database. I want to create a button, so that when i click on the button, the macro in Access will be executed. Is there a way to do this by using functions provided in VB 2005 express or writing some code to do it Thanks. Add the Office Primary Interop Assemblies onto you machine. Add a reference to Microsoft Office Interop Access and then use something like the following code. Dim Adb As New Microsoft.Office.Interop.Access.Application Adb.OpenCurrentDatabase( "Path To ...Show All
Windows Forms textbox property
VS2005 c# The textbox has a property Lines string []Array. Can anyone explain what this is used for - Thanks It is used for the multiline property, so when a new line is inserted into the textbox, a new element is added to the array. ...Show All
Visual Studio 2008 (Pre-release) When and where to set custom IIdentity when implementing custom authentication
Hi - If custom user name/password authentication is being implemented, where is it possible/recommended to set the "PrincipalIdentity" to a custom IIdentity object So far I have custom implementations of ServiceCredentials, UserNameSecurityTokenAuthenticator, UserNameSecurityToken and IAuthorizationPolicy all hooked in and working nicely to verify user credentials against a custom store. I am looking to attach a custom principal object following the example in this thread . However, the object obtained from EvaluationContext.Properties["PrimaryIdentity"] when IAuthorizationPolicy.Evaluate gets called is a GenericIdentity. Where should I (ca ...Show All
Visual Basic VB Exit by the X box
I have written a reasonably complex VB code that when exited by the upper right corner X box, leaves itself in memory. The exit box control I added exits fine. Each time a user exits via the X box an additional copy is left in memory (as viewed by the Task Manager). Am I doning something wrong that is causing this problem The common cause I see for this is when one has created threads of their own to do work and did not set their IsBackground property to True. Could this be your case as well ...Show All
Visual C++ BHO Publisher in Add-ons list
I'm writing an application that will also have a browser helper object component. Does anybody know how can I include publisher (name) string that will automatically appear the IE's Add-ons list Thanks in advance _gcvt wrote: Does anybody know how can I include publisher (name) string that will automatically appear the IE's Add-ons list In your resource file add a VERSION_INFO block, and fill in the Company name field over there. This will also help identify you in other software (like Windows Explorer, Process Explorer, tasklist.exe, most firewall software, most malware file scanners). ...Show All
SQL Server 64-bit SSIS
Newbie question on SSIS and 64-bit....Looking for pointers ...Thx in advance... Can we develop SSIS pkgs on 32-bit machines and deploy to 64-bit Any software needed on 64-bit machine , like .NET 2.0 64-bit, etc... Any knobs/switches to do during deployment, to ensure pkg runs on 64-bit... Any gotchas...things to be aware of... If accessing SAP, SQL, Oracle, do OLE DB .NET drivers need to be 64-bit as well, if PKG is running on 64-bit machine... if developing SSIS pkgs on a 64-bit machine, any issues to be aware of Thx again RC The absence of the Jet OLE DB Provider (which means Excel too) and the require ...Show All
Visual Studio Error "Operation is not valid due to the current state of the object"
I'm trying to use the ReportViewer control (in remote mode) in a winform app. Everything works great until I try and change the ReportPath of the control (in response to a TreevIew after select event ) when the currently visible report is a report that has been drilled into from the original report specified in ReportPath e.g. ReportViewer rv = new ReportViewer(); /* other code */ rv.ServerReport.ReportPath = "/Report1"; rv.RefreshReport(); User then clicks on a link in Report 1 that jumps to Report 2 (still within the same control). Now if you try and set the ReportPath to anything you get an "Operation is not valid ...Show All
Visual Studio Team System Visual Studio RC1 + Foundation Server Beta 3
Hi, Can somebody clarify the following for me please. I have Foundation server Beta 3 installed on a server machine and Visual Studio Release candidate installed on a VPC on a seperate workstation. 1. Can the two interoperate OK 2. The server was created within a Domain but the workstation is standalone in a workgroup. Will it be able to connect to the Server OK 3. I installed the team test and developer options in my Visual Studio installation do I still need to install the client from the Foundation Server CD to get connectivity I thought by installing the Team test/dev options this was the client tools. Cheers. Beta 3 TFS ...Show All
Smart Device Development How to send file via IRDA ( BEAM ) By programming
I am developing a project for customizing the windows native applications, i need to send file or contact via beam by run time (programmatically) Do u have any idea about that Thanks in advance !! What is your target platform WinCE, PPC or SP Do you want to communicate between two devices or device and Windows PC Following article might be useful http://www.microsoft.com/mind/0599/wince/wince.asp Hope this helps! Manav ...Show All
Visual Studio Team System When I get a specific version why does the contents of Source Explorer change?
The objective of the Source Control Explorer is to display the contents of the TFS repository; is that correct Therefore the folders pane should show the current folders in the repository for my Team Project and when I select one of these folders the right pane should show the current contents of that folder in the repository. By 'current' I mean 'latest version'. Given the above, I find the following behaviour strange... I copy a specific version of my Team Project's source code into my workspace (select the Team Project folder in the folders pane, right-click | Get Specific Version). Although this does not change the TFS rep ...Show All
Visual Studio Express Editions how can .net framework 2.0 replace 1.1?
i use mathcad 13 in my daily life, and this software need the support from .net framework 1.1. after installing vb express, .net framework 2.0 is installed, and i uninstalled 1.1. however, mathcad can now run after that, and i have to reinstall 1.1. it is not so amusing to see both of the two different vision of .net framework in my computer, how can i replace 1.1 with 2.0 correctly You have different runtimes for VB Classic (3, 4, 5, 6) and they all have to reside on your machine at the same time. And different DLL's for other languages, so why not for .NET ...Show All
Visual C# How can I cover the menu item's shortcut?
Supposed I have a form with KeyPreview=true and a menu item whose shortcut is CTRL+C. Add a Textbox on the form. When I select some text in the Textbox and press CTRL+C, the selected text just can not be copied because system just call the menu item's OnClick event handler. And then how can I copy the selected text via CTRL+C, that is to say, how can I cover the menu item's shortcut Onclick event handler in some particular situations Your idea and suggestion will be highly appreciated. Thanks! Hi, I know how it feels like. But you could have a work around. In your menuitem_click event check first if the this.Activ ...Show All
