JAul's Q&A profile
Visual Studio Tools for Office how do i deploy my addin?
Hi, I have finished working on my addins and i wanted to deploy it. I tried running it as release but it gives me some .dll files. May I know how can i deploy it as a setup so that others are able to install the plugins at any outlook 2007 Hi Osprey, Addins are DLL files and you can deploy them via MSI installer which takes care of the DLL, prerequisites and CAS policy. Please read the deployment articles in VSTO 2005 Resource List thread. ...Show All
Microsoft ISV Community Center Forums Creating and Editing Microsoft Access Reports using Visual Basic
Hi, I am trying to create a report based on the selection from a combo box in a form. i have some data, of which one of the fields is callled "projects". the combo box selects selects a project, and i would like to be able to open a report showing the data that belongs to the specific project on the click of a button. i have written the code below, but the report is only ever blank. i can create a query based on the same sql statement, and it works fine. can someone help Dim thisDB As Database, strSql, projID As String, rpt As Report Set thisDB = CurrentDb projID = existingProjSelector.Value strSql = "SELECT * FROM MyTable WHERE ([PROJECT ID]='" & projID & "') ...Show All
Visual Basic Listbox trouble need a running total
I am trying to make a listbox that the user enters numbers into a textbox and the button is pressed and it gets added to the listbox while another textbox keeps a total of all the numbers. Can someone please tell me what I am doing wrong or give me a push in the right direction Here is my code for the button click. Private Sub btnAdd_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim intPresent As Integer Dim intTotal As Integer intPresent = Me .txtPresent.Text Me .lstBox.Items.Add(intPresent) intTotal = intTotal + intPresent Me .txtTotal.Text = intTotal Me .txtPresent.Clear() Me .txtPresent.Focus() End Sub ...Show All
Smart Device Development Where to place my customized .dll file?
Hi All, i'm developing smart device that need to call JAPI.dll, but i'm kept facing one problem. i place my JAPI.dll file @ this directory. My Documents\Visual Studio 2005\Projects\SubmitCompany_mobile\loginAndDll\bin\Debug anyone have any solution for this thank you. public partial class frmLogin : Form { [DllImport("JAPI.dll")] public static extern int ImageCapture(); private void frmLogin_Load(object sender, EventArgs e) { int goodImg = ImageCapture(); "Can't find PInvoke DLL 'JAPI.dll'." if (goodImg == 1) { lblStatus.Text = Convert.ToString(goodImg); } else { lblStatus.Text = "bad image"; } } } ...Show All
Visual Studio Express Editions EOF with Program Resource?
I'm stumped. I'm including several text files in my program's resources. I'm trying to read those resources until the EOF. Here is my code: Private Sub fileRead() Dim txtLine As String FileOpen(1, My .Resources.abcd, OpenMode.Input) While Not EOF(1) txtLine = (InputString(1, 1)) strLesson = strLesson + txtLine End While MsgBox( "" & strLesson) End Sub But, I'm getting an error "PathTooLongException: 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." I found information on how to parse the path, and tried this: Pr ...Show All
Visual Studio 2008 (Pre-release) Where to get FindPrivateKey.exe?
im using latest SDK and play with some samples. when run the setup.bat, it fail at locating FindPrivateKey.exe. Obviously, this file is not in my C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin and i searched my whole machine still can't find it. Anyone know where to download it and why it doesn't come with the SDK installation thanks advance ...Show All
Windows Forms ClickOnce deployment
I can't get click-once deployment to work from Visual c# express. The upload works fine, but when I click on the link to install, an XML page opens and nothing else happens. I am using my ISP's host server. Thanks Andrej. The problem is I don't have any control over the server - it's the free web space provided by my ISP. Is there any way of forcing these setting (I have read something about htaccess files, but it didn't explain much) is my only option to find a different host ...Show All
Windows Forms go back in graphics
how can i go back to previous state when i draw graphics shaps such as ctrl+z key Please see the following link. This may be useful to you http://www.marcclifton.com/Articles/DesignAndArchitecture/UndoRedoBuffer/tabid/100/Default.aspx ...Show All
Smart Device Development Getting Warning WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) in VS 2005
Hi, i have ported the project from vc++ 6.0 to VS 2005.while compiling i have received the warning message "WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)". Pls let me is there any solution for the above warning message. Thanks, Ganesh ...Show All
Microsoft ISV Community Center Forums Need direction on using code instead of VLOOKUP
Hi, all. I've been looking through the forum, and there's a lot of great info here. I'm learning VBA, but I'm running out of time on a project that I'm working on, and would like help if anyone can offer it. I use a spreadsheet that contains a lot of VLOOKUP functions as well is the Excel IF function. Currently I paste two reports into two separate blank worksheet tabs, and the first worksheet uses the VLOOKUP to import the data needed. It's cumbersome and I run into errors once in a while because some yahoo has added a column to one of the reports. I would like to be able to add a macro that searches for a column by header name on a worksheet, then copies the data from that column into a specifed column on another worksheet. Can anyone gi ...Show All
Visual C# Collection Differences
I want a collection for dynamically adding/removing/sorting lists of strings. From what I can tell, the best options are List and StringCollection, but what I can't tell is what exactly the difference would be. They both seem to have many of the same methods, and in the documentation they are both used as examples of Collections that are not prone to performance hits (at least, for my usage). If anyone could explain to me what the difference is, and why I might prefer one to the other, that would be greatly appreciated, as right now I'm very confused, and don't want to start using the wrong one only to have to find that out a while into the programming! Thanks very much! James Curran wrote: ...Show All
Software Development for Windows Vista HandleExternalEvent activity in Parallel
I have a few activities in parallel that listen for the same event. With the event arguments I will see which one of the parallel activities to execute. It seems though that the event is only fired in the first activity and not in all the activities waiting for this event to fire. I would say, this is the 99.9% bug. When you define an event, you are forced to use "event" keyword (ExternalDataExchangeService) which is actually a MulticastDelegate. What means - several subscribers for the same event... I see no reason, why your workflow does not react properly... Otherwise it must be "delegate" keyword... Second, I have never ever heard that in .NET the source of the event HAS TO ...Show All
Windows Live Developer Forums Use local.live.com
Hi, Is it possible to use local.live.com in its entirety on my own site and add my own custom stuff to it We want almost all the functionality that local.live.com (Print, DD, etc.) and add some custom stuff to it. Is that viable If yes, how If no, what are my other options Thanks, Sanjeev Quoting Cheekster: "The new SDK has new and better ...." The SDk that you refer to - is this the Virtual Earth SDK or some other SDK I haven't seen/heard of a specifc SDK for Live.Local.Com... Thanks ...Show All
Visual Studio How to create a snippet function
Hi, I would like to know how can I create and nest a function inside the <Function/> element in a snippet definition The switch snippet has a nice GenerateSwitchCases function to generate dynamic snippet code. Is it possible to create my own function like that Thank you very much, Jaco Typically, Service Packs are used to deliver fixes to commonly encountered code defects and much more rarely for new features. We are not planning any new functionality for Code Snippets in VS 2005 SP1. Thanks, Sean Laberee ...Show All
Visual Studio Express Editions Allowing user to query MDB file from textbox
I have a form with a textbox, a datagridview, and an execute button. I would like for the user to be able to enter a query, such as, 'Select * from Components where ProjID = 1' and then have the datagrid populated once the execute button is clicked. The MDB file has two tables, 'Projects' and 'Components'. I am able to populate the datagrid with parameter based queries, but I cannot figure out how to allow the user to enter a query into the textbox and then click the button to execute the query. I am using VB 2005 and the MDB is Access 2003. Thanks for your help! You would want to do something like this: imports system.data.oledb Public Class Form1 Dim tbQuery as string Dim myCommand as New OledbCommand ...Show All
