Answer Questions
bb35 Word automation and System.IO.FileNotFoundException error
Hello, I'm having problems with an application that is automating word. I'm using VS .Net 2003, (Visual Basic), WinXP Pro, Office 2003. Here's what I doing: Imports Microsoft.Office.Interop ... Try Dim oWord As New Word.ApplicationClass ' Place call to COM object here. Catch ex As Exception MsgBox(ex.ToString) ' Display information about the failed call. End Try Here's what I'm gett ...Show All
Vedran951 What are the new keys for F2 and ShiftF2?
In VS2002 you could jump to the definition of a variable with F2 and back to the previous location in the edit window with ShiftF2. What are the new keys for this Tosch All keyboard settings are customizable. try Menu>tools>options>environment>keyboard. View.NavigateBackWord View.ObjectBrowser ...Show All
Timmy Dot Net PictureBox
I draw some objects (such as line,rectangle,text,...) with methods drawline,drawrectangle,drawstring,... (graphics namespace) on a picture box. but these objects are clearing when the picturebox moves out of screen and enter to screen or the form minimizes and the restore. i sove this problem with .AutoDraw=True in VB6 but i dont know how can i fix problem in VB.NET2005 You should handle the OnPaint eve ...Show All
Jamesofking Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
BenK Shortcut key
I have set shortcutkeys for buttons using properties. Now what i want to do is to underline the character which i have set as shortcut key,on the button text,which is possibe in VB ,(by setting as &Save, now underline will be below the 'S' character),In VB.Net, At runtime it is not displaying the underline for that character. I want this in VB.Net is there any way to do that. Please help me. Hi, I've mo ...Show All
Lizou Windows Application Resides on a single machine.
Is it possible that the application is installed on a single machine and the clients has a shortcut of that application so that if there is an changes to the application the update will be installed only on that machine. I suggest to use ClickOnce , you must put some files on a server, the others machines connect to it to get updates... ClickOnce Deployment ClickOnce FAQ But you can install an application in a network share and ev ...Show All
rj_khatri WriteAllText Method
Hi guys, I'm a new VB6 user. I'm trying to write text to a file using the reference provided on MSDN ( http://winfx.msdn.microsoft.com/library/en-us/dv_vbalr/html/f507460c-87d9-4504-b74f-3ff825c7d5c4.asp frame=true ) I'm using this code: Private Sub Command1_Click() ' Declaration Public Sub WriteAllText(ByVal file As String, ByVal text As String, ByVal append As Boolean) End Sub My.Computer.FileSystem.WriteAllText("C:\TestFolder1\test.txt", "Thi ...Show All
chawacho Number generator based of a bell curve
I'm looking to enhance my program with a better number generator than using random with a range. I'd like to be able to specify a mean, median, range, and standard deviation and have the program create a number. Any help would be appreciated! Thanks, Dat That's a good problem! I think you'll have look at the probability a randomly generated value would have and maintain a histogram of the ...Show All
The Blind Wig Problem with assigment
I used the following code to assign some values but lineItems(0), lineItems(1) always contains the last set of result of Salesline2. Dim salesLine2 As New taSopLineIvcInsert_ItemsTaSopLineIvcInsert Dim LineItems(1) As taSopLineIvcInsert_ItemsTaSopLineIvcInsert With salesLine2 .SOPTYPE = dr.Item("Type") .SOPNUMBE = dr.Item("DocNumber") .CUSTNMBR = dr.Item("CustId") .DOCDATE = dr.Item ...Show All
JGN resx assembly error
Hello I am trying to open a project given to me by a colleage which was developed in vb.net 2003 I'm using .net 2005 beta 2 I'm getting the following error: Warning 1 ResX file The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Line 279, position 4. cannot be parsed. 279 0 What does it mean - how do I proceed - thanks ...Show All
blucas2006 Using VB.NET to run External Applications
Is there anyway to use Visual Basic 2005 Express to run external files For example, pressing a button would open Notepad. Get rid of the quotes Roraima. process.start("notepad.exe", strFileName) What is the exact value of strFileName If I was starting a file by using notepad from the Run dialog box, I would be typing the following; notepad.exe C:\Some Path\Somefile.txt Your strFileName value should read; ...Show All
Tom_B Groupbox Limitations?
I am writing an application to control a couple of devices that I have. All of the control code is written so I am developing the UI. One of the forms that I have put together has eight groupboxes. Two of the groupboxes are on their own. One of these groupboxes contains six buttons. Each of these buttons corresponds to one of the remaining six groupboxes. Clicking on one of these buttons causes the third ...Show All
RFabian A simple file recognition problem
Hello, I am having a problem that although is a simple one it has me flummoxed. I don't know and can't find the proper syntax to use to get my program to locate a text file that I need to use in my program. I am using VB.NET 2005 The program is to run on a Smart Device and I am using an emulator that came with my Visual Studio 2005, the one I use is a Pocket PC 2003 SE device. I have the text file included with the program in the same dire ...Show All
pricebri Add New Data Source for My SQL doesn't work
I have tried also installing and using the ODBC driver version 3.51 and the My SQL driver 3.1.8. None of these work. What do I have to do to add a new MY SQL data source Michael Are you sure its the enterprise edition of 2005 and not the Express edition (Beta 2) I'm sure that no Enterprise Edition has been released to the public and I'm told with the Express Edition (Beta 2) it will it limited to connectivity with SQL Serve ...Show All
pooja.t.jain Context Menus
There must be an easy way to do this but I sure can't figure it out. I have three listboxes on a form and one context menu that has "Select All" and "Select None" in it as options. If I assign this one context menu to all three listboxes, how in the .Click event may I determine in which listbox to select all or no items This should do it for you: Private Sub SelectAllToolStripMenuItem ...Show All
