|
PLease let me know the provider or the connectionstring i should use to
read a .dbf file.
|
|
|
|
|
I used the Microsoft Visual Fox Pro driver which can be found somewhere on Microsofts site.
The connection string is really simple:
<br />
"Provider=vfpoledb;Data Source=C:\\DataDir;"<br />
Note that the path you give is NOT the filename but the directory where it lies in. When formulating SQLs the filename (without extension) will be your tablename.
|
|
|
|
|
Please hel..i want to know how to create a running no i my application form..
for example..i want to create running number for the reference number..
i also want to know how to create search function that can search data between to date.
Thank You....i appretiate if you can help me
help me to find the right code
|
|
|
|
|
hi There
Brief your question where in we can understand what exaclty you want
|
|
|
|
|
Hi, I am trying to get Windows media player to play when a certin condition in my program happens. I have a playlist that i would like it to play. Does anyone know how to code this so it gets my playlist then starts playing when these conditions are met? So far the only thing i can do is do auto play but i dont want it to start playing as soon as the program starts. Please any help would be greatly appreciated.
P.S. Please feel free to email me answers at iamydd@bellsouth.net
Thanks in advanced
|
|
|
|
|
Turn off the autoplay option, and then call the play method, which I think is on the controls property.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
You wouldnt happen to know what it is called once inside the controls property would you? Because I can't seem to find one that will work. If anyone knows where i could find out how to do this or if you know how to do this please let me know.
Again, Thanks
|
|
|
|
|
Here's my code:
mainMedia = mainPlayer.newMedia(info.FilePath);<br />
mainPlayer.stretchToFit = true;<br />
mainPlayer.settings.autoStart = false;<br />
mainPlayer.currentMedia = mainMedia;<br />
mainPlayer.settings.volume = RegistryFacade.PlayerOptions.TrackVolume;<br />
<br />
mainPlayer.BringToFront(); <br />
<br />
mainPlayer.Ctlcontrols.play();
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hey, thank you very much. I'm not sure how i managed to miss that section lol. I really Appreciate your time and help.
|
|
|
|
|
hihi,
I am creating a datagrid and i wanted to display all the values that i retrieve from the database. I was able to do this. However, i need to add a checkbox into one of the columns. This checkbox is not binded or link to the database, it is use for my own reference. I was wondering how can i create this checkbox into the datagrid without any mappingname. Hope someone can help me with this. Thank You..
Kekin
vb.net Programmer
|
|
|
|
|
I assume you are wokring with DataTables/DataSets. If yes, you will have to add a column to the DaatTable where you want the extra column in the grid to appear. I think there is no other way.
|
|
|
|
|
Hi there,
I am still relatively new to vb programming, and after migrating to vb.net, I have come across a problem.
I am wanting to store the details of around 15 FTP servers. The plan is to populate a treeview with the server's names, and show the corresponding hostnames, port, username, password and notes in the textboxes (similar to FlasFXPs interface).
However, I would have previously used the "Type" object, and then set up an array based on that type. Example :
=========================
Private Type FTPSitesType
ServerName As String
Hostname As String
Username As String
Password As String
Port as Long
Dim my_FTPSites(1 To 15) As FTPSitesType.
========================
I am trying to do the same thing within a class, but I can't seem to get any results, nor think of a google search query that will actually return something helpful.
Any help would be much appreciated!
Mason
|
|
|
|
|
|
Thank you for your very neutral arguments on this topic
|
|
|
|
|
Something like this should address your question:
Public Structure FtpSite
Public Hostname As String
Public Username As String
Public Password As String
Public Port As Integer
End Structure
Public Class UsesFtpSite
Public Sub MyMethod()
Dim al As New ArrayList
Dim fs As New FtpSite
fs.Hostname = "ftp.mysite.com"
fs.Port = 21
fs.Username = "user"
fs.Password = "password"
al.Add(fs)
End Sub
End Class
Although, it is also possible to use a class in this situation as well. Another alternative might be to create a DataTable in memory.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Thanks for that. I can see exactly how that should work, but I don't think I am putting in the right statemets in the relevant places. Here is my layout:
I have a main form, frmMain.vb... I then have a class, ftpClass.vb, which contains all the main operations.
I then have another form, frmSiteManager.vb, and I want to add another class, SiteManager.vb.
Could anybody tell me where I should be placing this code, and the correct method for accessing it's features? Everything I have tried so far, such as Dim my_sites as FTPSites ont he sitemanager form, always gived me a "Decleration expected".
Sorry to be any bother I can't find any decent tutorials for storing data.
|
|
|
|
|
Right... the Dim statement is limited to declaring variables within Functions or Subs, any other declarations in your classes or modules must be marked Public, Private or Protected. Does that help?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hi
Is there any body help me to solve my problem ?
I read a HTML file from web unsing MSWinSock and I need show some strings contaned in it that is UNICODE (such as "س") in a textbox, but i can't convert it to original carachters readable for human.
Please help me
if you can help me please send your solution to my mail box : mirzaei@gmail.com
Thank You
|
|
|
|
|
Hi
Is there any body help me to solve my problem ?
I read a HTML file from web unsing MSWinSock and I need show some strings contaned in it that is UNICODE (such as "س") in a textbox, but i can't convert it to original carachters readable for human.
Please help me
if you can help me please send your solution to my mail box : mirzaei@gmail.com
Thank You
|
|
|
|
|
How do I get the real serial number of the hard drive and mother board in VB6
|
|
|
|
|
The GetVolumeInformation API will return a hard drive serial number.
Don't know about motherboard.
Robert
|
|
|
|
|
You'll have to use WMI (Windows Management Instrumentation) to get this information. Be warned though, not all manufacturers supply providers that will server up this information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I have an Access form that I created an Unbound OLE object frame on it. The OLE object was configured (by the Wizard) to accept Excel and I want to use it as a portal to import Excel worksheets into my Access DB (drag/drop filename and voila, my OLE object has an Excel sheet!)
My question is, once that the Excel worksheet is in the OLE object, how can use VBA code to go through the Excel object and extract field values and populate a given Access table?
Here are some defintions that I started to try but did not work:
<br />
Private Function ReadExcelObject()<br />
Dim bRetStatus As Boolean<br />
<br />
Dim oXLapp As Excel.Application<br />
Dim oXLwsh As Excel.Worksheet<br />
Dim oXLrng As Excel.Range<br />
bRetStatus = True<br />
<br />
'OLEUnboundExcel is an Unbounded Object Frame<br />
' Set oXLapp = OLEUnboundExcel.Application 'this produces a type-mismatch<br />
' Set oXLwsh = oXLapp.Worksheets(1)<br />
'OLEUnboundExcel<br />
'Set oXLapp = GetObject(, OLEUnboundExcel)<br />
' Set oXLapp = OLEUnboundExcel.Object<br />
' Set oXLwsh = oXLapp.Worksheets(1)<br />
<br />
'what do I do to make this work???<br />
<br />
ReadExcelObject = bRetStatus<br />
<br />
End Function
Thanks in advance!
Johnny
|
|
|
|
|
Oh, my configuration is as follows:
Access 2000
Excel 2000
VB 6.0, ver 8435
Win2000
Johnny
|
|
|
|