Answer Questions
dmeikle StreamReader
Hello, I’m trying to create a program will supply information for variables from a text file, so that as the possibilities change, a simple text file will need to be amended, rather than rewriting the original code. I am reading about FileStream and StreamReader, which seem like just the ticket. For instance, if I wanted to populate a TextBox with items I wrote in a text file, such as: Tom Mike Jim Jean I t ...Show All
Moorstream Is "Visual Studio Tools for Office" necessary
Without "Visual Studio Tools for Office" is there ANY way to access the data (both read and write) in an Excel workbook from VB.NET 2005 You don't need VSTO to work with Excel workbooks. If you add a reference to the Microsoft Excel X.0 object library (of 11.0 for Office 2003, 10.0 if you are using Office XP), you can automate excel. Please not the the 'Microsoft Office Excel X.0 Object Library' i ...Show All
andrewz Dropdown item crashes VB2005 Express
Hi! I just installed the Visual Studio 2005 Express edition on my XP Home. If i try to add a dropdown to a form, Visual Basic freezes. In the Task Manager i can see that it use the 95% of my cpu, but i can't do anything in the IDE. Is it a documented bug so... i'm really the one with that kind of problem Please guys, let me know! I just reinstalled my PC but i got the same crash... ...Show All
Rob P Help with Auto-Complete (Fill with blank)
Hello, I'm having problem with autofill I think vb automatics "kill" blank spaces so when we write this Dim s As String * 10 s = text1.Text text1.MaxLength = 10 text1.Text = "hello" Print Len(RTrim(s)) ' Prints "hello " But I can't figure out how to do this in my code for print it... I'm working on a application that replace fields in word and print it later look at code of prog thats replace fields: -- Private Su ...Show All
andrey Unknow Error 3000 (-1601) with Jet 3.51, Repair and compact does not fix it
Hi, I have problems with a replicable database, (Repair and compact does not fix it), and i can't get information in the web. Unknow Error 3000 (-1601) while replicating the databases I'm using Dao 3.51 because is the only that let me to work with the replicas and is difficult to migrate the application and the database to Access 2000. I copy the database from a backup and in a few hours of works, i have the same problem. (Everyday) R ...Show All
MSJ Server Error in '/' Application
Can someone help me with this error Server Error in '/' Application. ...Show All
66cooper Toolbox still does not display user controls.
My project, which has 2 user controls in it- does not display the user controls in the toolbox. Has anyone else had this problem, and/or know of a solution I have tried adding other user controls to the project, they do not appear in the toolbox. I have tried creating a new project, and it's user controls DO show up in the toolbox. If I add the user controls from the first project to the new project -THEY show up in the toolbox for that projec ...Show All
Vladimir Sapronov Calling API with "void *"
I declare a function in VB6 thusly: Private Declare Sub CopyPtrFromStruct Lib "kernel32" Alias "RtlMoveMemory" ( ByVal ptr As Integer , ByRef Struct As Any, ByVal cb As Integer ) and call it: CopyPtrFromStruct(mxcd.paDetails, Struct, Len(Struct)) What should I change the "Any" to in order for this to work I tried Integer, but then got the compiler error "Struct cannot be converted to Intege ...Show All
ldc555 Cross-thread operation not valid
Please tell me that you are going to fix this before the official release!! I am using VB not C++. I really shouldn't have to care that my code is not running in the same thread as the one that created the form that contains the control that I am trying to update. Please fix this or at least have some real examples that show how to update a control on a form. The examples that I found were not helpful at all. Well you really sh ...Show All
Tom McAnnally shDocVw.dll in VB.Net 2003
Hello in there... I'm having a small problem that's eluding attempts to resolve. I'm creating HTML in BuildCreateExportFilesResults(), which I'm writing to a file on the local hard drive. I want to display it in the shDocVw.webBrowser, but I can't make it work. Here's the code: Public Sub DisplayCreateFilesResults() Try m_strMsg = "" m_strMsg = BuildCreateExportFilesResults() '<-- creates a HTML page ...Show All
phunkie Using Call, is it worth it?
Call funcOne() or funcOne() Is there a difference (besides the obvious aesthetic difference) I did a google and the sources I found said there's no difference. There is no real difference - many moons back in the mists of time, in VBx you did need to put call keyword in. Its supported for legacy purposes and there should be no difference. There is one or two places where it is still used - but if you havent found where t ...Show All
Sergio Costa Faria How to Disable a tabpage in a tabcontrol?
i need to disable a tabpage in a tabcontrol. Is there any good solution to this the tabcontrol doesnt have a selecting event. Please help. I dont want the hide and show technique. I still preffered the disabled tabpage. I want a tabpage which is gray and unclickable. For me that is the ideal way of disabling a tabpage. If hiding it doesn't work (i can't seem to hide mine either) do a search on the msdn forums for removing a tabpage ...Show All
Frank Foerster MDI help
Hey everyone, I'm new to using mdi forms. Basically, the problem is that when I maximize my child form an extra line is added to the top of my main form with control box/max/min buttons for my child form. I don't want that line on there at all! I've tried everything, disabled everything. Any ideas on how to shut this off would be great! Here is a screen shot of what I'm talking about. http://www.accs.net/users/anonymous ...Show All
bb_spinoza objects
Hi everybody! What I wanna do is to create objects during runtime, which will differ from each other by a number which should increment each time I create the object. What I'm doing is to get input from a file and then, based on the number of records that the file contains, to instantiate the corresponding number of bitmap objects. These objects should be something like myVar.i , where i is the incrementing number I mentioned above. ...Show All
t-965 how to print a rich text box
HELP! How do you print rich text boxes Thank you, I have been looking for this for some time now.. Thanks MacMatt_98! Look at the PrintDocument class in Visual basic. Here is a scaled down, generic example (this is assuming VS2005 and all controls referenced below are added, and does not account for paging or line counting): Private Sub Button3_Click( ByVal sender As System.Object, ByVal e As Sy ...Show All
