-
- haw make data transfer between modems, using tapi3lib
by gtimofte
- 2 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- hello, i'm using tapi3lib
i make the connection between my modem and one phone, but ..after connect, i don't know haw to transfer data
i use the folow code, for make connection:
If Not (TestCall Is Nothing ) Then
MsgBox("Previous Call hasn't been cleared yet.")
Exit Sub
End If
If Not (TestTAPI Is Nothing ) Then
TestTAPI.Shutdown()
End
-
- How to create many labels (same event)?
by Penicillin
- 14 Replies
- Last post
by ahmedilyas
- Hello
I want to create 20 labels (but event is same).
In VB6, I set "index" for everyone, and so the event becomes same.
What should I do in VB2005
I don't want to create from Label1 to Label20, and set the same event for everyone; it's too long code, classic and primitive.
I hope you understood what I said.
Thanks
-
- Adding Elements to an Array
by Bill Crawley
- 6 Replies
- Last post
by spotty
- Hi All, I have the following Code that splits a string into a number of array elements:
Code: Dim Sep(3) As Char
Sep(0) = CChar(",")
Sep(1) = CChar(";")
Sep(2) = CChar(ControlChars.CrLf)
If Not String.IsNullOrEmpty(objSrcReader.Item(39).ToString) then
strParticipants = objSrcReader.Item(39).ToString.Split(Sep)
End If This part works fine, however I then want
-
- Retrieving rich text from MS Access DB into RichTextBox.
by rbelknap
- 3 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hello,
I am trying to retreive data that was stored in richtext in a MS Access DB into a RichTextBox and am not getting the results I expected.
I am using the following line of code: (Verbage is stored as Rich Text in Access)
Code Block
RichTextBox1.Text = PresentationTableAdapter.GetData.FindByID(1).Verbage
the resulting displayed text looks jus
-
- Form Closing
by xplosiv_1
- 22 Replies
- Last post
by xplosiv_1
- Hi,
I have several forms that link to each other via the: -
Code Snippet
Me.Close()
Form2.Show()
When the user presses the ¡®X¡¯ button that comes with all forms I need the application to close not just the form, so I used :-
Code Snippet
Private Sub frmmain_FormClosing( ByVal sender As System.Object, ByVal e As System.Windows.For
-
- Marshalling?
by Timothy Atchley
- 4 Replies
- Last post
by kleinma
- Hi,
During my conversion to VB 6.0 to VB 2005, I ran into a few errors. I am using an API to open and save an excel file. I will provide a copy of my code:
Code Snippet
Private Structure OPENFILENAME
Dim lngStructSize As Integer ' Size of structure
Dim hWndOwner As Integer ' Owner window handle
Dim hInstance As Integer ' Template instan
-
- Mouse position, and mouse events.
by Asday
- 4 Replies
- Last post
by Asday
- I'm making an application to do repetitive tasks for people while they go away and do stuff. I need: A way to make the mouse left-click, a way to make the mouse ight-click, a way to make the mouse left-click-drag, a way of storing intervals (so that it can be x amount of time between event 1 and 2, and y time between 2 and 3) and some event handlers, such as, how to get the mouse position. My firs
-
- Filtering data in datagridview 2005
by Anonymous568107
- 3 Replies
- Last post
by Anonymous
- I have got an access table connected to VS 2005, on my form i have a datagridview, a listbox, a textbox and button, What i want is for the user to type in there query and the datagridview to display the results, So far heres my code, i am lost i dopn't know how i can get the datagrid to display the query results, plz help Private Sub btnfind_Click(ByVal sender As System.Object, ByVal e As System.
-
- VBA - Excel - Total number of pages
by bbbbbb0001
- 1 Replies
- Last post
by Kok4o
- Hi,
Can anyone tell me how to get the Total Number of Pages in the Excel worksheet using VBA.
I want to use it then in calculations.
Thanks
Boby
-
- How to get total directory size?
by cybertaz69
- 5 Replies
- Last post
by Bruno Yu - MSFT
- Anyone know of a function that will get a Directory Total size with files and sub directories
-
- Filling datagridview with data based on primary key from another datagridview
by Kelvin Leong
- 3 Replies
- Last post
by Kelvin Leong
- I am quite new to VB2005.
I have datagridview1 which displays all data in table1, and datagridview2 which will display data from table2.
I want to create an event when I select one of the row in datagridview1, it will display data from table2 in datagridview2 with the same primary key.
I am thinking of using the query 'select * from <table2> where <primarykeyfield>
-
- Setup Wizard in VB 2005 Standard SP1
by Colin Reid
- 14 Replies
- Last post
by David Guyer MSFT
- This one is aimed at Matthew Gertz in VB Development Team. Yes, I am aware that the Christmas Holidays are near but I hope your response will be quicker than last time.
First two points and then my query
1. Despite ticking the Alert Me box, I am not getting Alerts when you post responses.
2. The first time, I opened VB2005 after installing SP1, I got the error message "Run Time Error
-
- Multiple Forms and Mouse movements
by Grommet
- 4 Replies
- Last post
by Grommet
- Hi!
I want to have a Main Form and an undefined number of other forms(Auxiliary Forms), each containing an image in a PictureBox. The images are in different dimensions of the same object (N-Dimensional objects).
I want to define the coordinates of a feature in the image, by identifying the feature in one Auxiliary Form using the Mouse and getting the feature coordinates in the two dimen
-
- Proper way to setup an inherited form
by &#126;DigBoy&#
- 2 Replies
- Last post
by ~DigBoy~
- I was wondering if anyone could point me to the best practices regarding setting up an inherited form I have a method that does work but I'd like to know if there are inherent (get it ) flaws with it.
My situation is that I have an Mdi app where four child forms are displayed only one at a time -- this means that I have a method called SwitchForm that hides the currently displayed child an
-
- eConnect
by Johanw581996
- 2 Replies
- Last post
by Bruno Yu - MSFT
- Hi,
I have an interesting problem. I have an Batch XML doc which is integrated into Great Plains through eConnect. The Batch shows up in Great Plains, but it shows that there are no journal entries for this batch. Anybody any idea of what the problem might be
I'm using Great Plains vers 8, and eConnect 8.0.
The XML doc is as follows : - < xml version="1.0" > - <eConnec
-
- Pass Parameter to a single-instance app-
by jriggs
- 14 Replies
- Last post
by jriggs
- Even though 2005 has a nifty checkbox to make an application 'single-instance', the project requirements forced me to write my own 'sub main' object. My program can be called from another app. I have built in the code to make it single instance as well as accept command-line arguments. The calling app should pass either 3 or 4 parameters, how would I pull this data into my program if it is already
-
- ADODB recordset from VB.NET code: Marshal.ReleaseComObject doesnt ensure Close is called
by DavidR100
- 4 Replies
- Last post
by DavidR100
- I'm sure that in Vb6, if the RS variable is set to Nothing then I'm sure that .Close gets called in some way, but calling
Marshal.ReleaseComObject
doesnt have this affect under VB.NET
Is there any good way to ensure this happens (I had a recordset left open even after calling ReleaseComObject).
-
- Problems with assembly versions!
by epson
- 4 Replies
- Last post
by epson
- Hi, the program i'm developing is using a dll of a class library we did before, that library ("CM.Research.MDGraphicToProduction.dll") is working fine. But when i use a class contained in this dll, i receive a problem.
Look this is where i use the class:
'MDObject is a CM.Research.MDGraphicToProduction.MDRemote
...
re = CM.Base.RemoteInstance.RemoteElements.Import(MDObject)
-
- Include .mdb file in the .exe
by kidwizz
- 14 Replies
- Last post
by Nicolas_qc_au
- Hey, I have created a basic database project and i want to distribute the file as a single .exe but it needs the .mdb to be in the same directory. Is there a way to include the. mdb inside the .exe file
-
- replace isdate with string.gettypecode?
by cwillsh
- 5 Replies
- Last post
by Riquel Dong ¨C MSFT
- Is this the right .Net equivalent to use for IsDate()
If somestring. GetTypeCode = TypeCode.DateTime Then dosomestuff
-
- Printer Compatibility Library
by Robert Conley
- 10 Replies
- Last post
by Robert Conley
- The Print Method offers no provision for the ';' syntax of VB. While I understand that adding new syntax is not possible what can work is the ability to print lines without a carriage return.
For example
Object.PrintNoReturn("Hello")
Object.PrintNoReturn(" ")
Object.PrintNoReturn("World")
Object.Print("")
Would work the same as the VB6 code
Object.Print "Hello";
-
- Frustrating hex problem
by Adrian Aslett
- 4 Replies
- Last post
by Adrian Aslett
- I am using a modbus command that requires a specific value
Dim Err As Short ' return error
Err = Me.SmrnControl1.MbForceSingleCoil(7, 3, &HFF00) ' turn on
The code above is from the suppliers examples.
I cannot get VB to accept this format or do any conversions. I am feeling rather stupid as this is so simple. Has anyone got a suggestion as to what I am doing wrong.
Th
-
- TableAdapter.FillBy taking too long
by Charles Lewis
- 0 Replies
- Last post
by Charles Lewis
- I'm trying to create a little application that will do a lookup based on an ID card scan, display the information in a form and write a log record to another table. The code that I have works, but it takes about 6 seconds per lookup. I'm new to VB so I'm sure that I have not written optimum code. Is there a faster way to do lookups and inserts than by using TableAdapters
Private Sub TextFin
-
- Code to Convert numbers to time
by Bartley
- 7 Replies
- Last post
by CVA-62
- I hope I am in the correct forum it is my first posting
I have a database which has three fields for Hours Minutes and seconds these are just numbers and have no relation to time.
I need in a report,code that will convert the numbers to time and add the seconds to minutes and add the minutes to hours.
Thanks
Bartley
-
- Update SQL server using VB .net
by Virayuth T.
- 2 Replies
- Last post
by Bruno Yu - MSFT
- How can I update data from combo box (Using VB .net) into SQL Server 2005