Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2008 |
| Replies: 3 Views: 552 Hi,
Man i dont wana to dash your hopes, but what you r trying to do is quite difficult using such controls. I advise you to look for an alternative idea. |
Forum: Visual Basic 4 / 5 / 6 Dec 23rd, 2007 |
| Replies: 3 Views: 1,468 Hi,
Open the new form in a new application and change the form name preperty and save it. After that add it to your application and it will work. Or you can change the name property of the original... |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2007 |
| Replies: 4 Views: 2,290 Hi,
[code]xlApp.ActiveWorkbook.Close True, App.Path & "\gegevens.xls"
xlApp.Quit
Set xlApp = Nothing[/close] |
Forum: Visual Basic 4 / 5 / 6 Dec 13th, 2007 |
| Replies: 6 Views: 3,447 Hi,
I previously had a function that gets a screen shot but i can't finf it any more. Look on the internet for a function that perform "Print Screen" and then a function to crop that picture. |
Forum: Visual Basic 4 / 5 / 6 Dec 13th, 2007 |
| Replies: 6 Views: 1,867 Hi,
When u say you have to build an internet application do u mean you want to create dynamic webs or what?? |
Forum: Visual Basic 4 / 5 / 6 Dec 9th, 2007 |
| Replies: 4 Views: 1,172 Hi,
I think the altimate challange in VB is graphics (such as dynamic drawing and games). But as no one uses VB for that APIs are good and proivde you with 100s of functions that you didn't think... |
Forum: Visual Basic 4 / 5 / 6 Dec 9th, 2007 |
| Replies: 2 Views: 1,008 Hi,
Mainly passwords are stored in databases with adding restrictions over the tables that it is stored in. Unless you encode those text files some way I advise you not to store it as text files.... |
Forum: Visual Basic 4 / 5 / 6 Nov 8th, 2007 |
| Replies: 2 Views: 3,165 Hi,
Please attach a sample of each of the files and i will check it. |
Forum: Visual Basic 4 / 5 / 6 Nov 6th, 2007 |
| Replies: 6 Views: 2,489 Hi,
I have created you a small example of recprdset coding and attached it. Check if it is what you need. If further assistance is needed please reply. |
Forum: Visual Basic 4 / 5 / 6 Nov 2nd, 2007 |
| Replies: 8 Views: 1,227 Hi,
The pro. way of doing it is using the index of the field for ex: rsPegawai(1) |
Forum: Visual Basic 4 / 5 / 6 Nov 1st, 2007 |
| Replies: 1 Views: 656 Hi,
My friend, you will get no benefit like this. Did you even bothered yourself looking for some ideas??
At leaset start with something and am sure every one will be more than welling to help... |
Forum: Visual Basic 4 / 5 / 6 Nov 1st, 2007 |
| Replies: 8 Views: 1,227 |
Forum: Visual Basic 4 / 5 / 6 Nov 1st, 2007 |
| Replies: 4 Views: 2,165 Hi,
And if you are using access use "*" instead of "%" ex:
select ename from emp where ename like 'A*' |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2007 |
| Replies: 3 Views: 1,500 Hi,
The mshflexigrid mainly provides grouping utility of records ex:
in msflexigrid data will look like
Jan 1
Jan 6
Feb 7
Mar 7
Mar 3 |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2007 |
| Replies: 1 Views: 12,498 Hi,
Check below example, for it to work add the component "Microsoft Common Dialouge Control" and add one to your form:
Private Sub Command1_Click()
Dim xl
Dim xlsheet
Dim xlwbook
Dim... |
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2007 |
| Replies: 9 Views: 1,580 Hi,
I don't know what is generating the error as I tested my code and it worked correctly. Try to debug in order to find where the error is. A for Me. you can remove it where the "Me" word... |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2007 |
| Replies: 3 Views: 2,903 Hi,
EOF will be reading the cells or the sheets ?? |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2007 |
| Replies: 9 Views: 1,580 Hi,
Check this:
Dim xl As Object
Dim xlsheet As Object
Dim xlwbook As Object
Set xl = CreateObject("Excel.Application") |
Forum: Visual Basic 4 / 5 / 6 Sep 28th, 2007 |
| Replies: 1 Views: 564 Hi,
Try this:
Private Sub Calendar1_Click()
Me.Label1.Caption = Me.Calendar1.Value
End Sub |
Forum: Visual Basic 4 / 5 / 6 Sep 27th, 2007 |
| Replies: 2 Views: 755 Hi,
You can always add a registry for you application. And on the first form your application will check if you are authorized to run the application by reading the value stored in registry editor... |
Forum: Visual Basic 4 / 5 / 6 Sep 23rd, 2007 |
| Replies: 2 Views: 2,234 hi,
I didn't test it but i think you are adding extra "s. The statment shall look somthing like:
"SELECT * from Trans where IsNull(DateReturned)=True And StudId like '" & Text1(8).Text & "'"... |
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2007 |
| Replies: 3 Views: 729 Hi,
You can start with this simple example: |
Forum: Visual Basic 4 / 5 / 6 Sep 20th, 2007 |
| Replies: 1 Views: 620 Hi,
Can you attach some sample data and the code you have already built, and I will check if I can help you. |
Forum: Visual Basic 4 / 5 / 6 Sep 20th, 2007 |
| Replies: 1 Views: 640 Hi,
You have to create a module, and in that module declare a public variable (ex: Public PetNam as string). Now in frmPet and on the textbox after update event (or change event) add the following... |
Forum: Visual Basic 4 / 5 / 6 Sep 17th, 2007 |
| Replies: 3 Views: 5,054 Hi,
I don't know what IDE you are using but if VB You can't use the richtext control to display an html file?? and even if you used the .filename property you will get the html source of the file... |
Forum: Visual Basic 4 / 5 / 6 Sep 16th, 2007 |
| Replies: 3 Views: 885 Hi,
It will look something like this:
Select tbluser.id, tblinfo.* from tbluser, tblinfo where tbluser.id=tblinfo.id |
Forum: Visual Basic 4 / 5 / 6 Sep 15th, 2007 |
| Replies: 4 Views: 1,711 Hi,
Send it to kbaalbakixxx@xxxgmail.com
Please remove all "x" letters from the address (added for spams evade) |
Forum: Visual Basic 4 / 5 / 6 Sep 11th, 2007 |
| Replies: 2 Views: 735 Hi,
That depends on the type of files (excel, word, text ...)??? |
Forum: Visual Basic 4 / 5 / 6 Sep 10th, 2007 |
| Replies: 5 Views: 1,528 Hi,
Check the attached example, I hope this is what you are looking for. |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2007 |
| Replies: 2 Views: 2,311 Hi,
Dealing with pictures in word is tricky. Because when you insert a picture to word it is inserted as inlineshape that is not allowed to be hidden through code. What you have to do is copy the... |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2007 |
| Replies: 2 Views: 3,861 Hi,
If you want to save you work just before xl.quit add:
xlwbook.saveas "c:\x.xls" |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2007 |
| Replies: 2 Views: 3,861 Hi,
Use this code:
Private Sub Command1_Click()
Dim xl As Object
Dim xlwbook As Object
Dim xlsheet As Object |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2007 |
| Replies: 2 Views: 4,707 Hi,
Are you saving the document?? the following code will work:
Private Sub Command1_Click()
Dim xl
Dim Worksh
Dim xlwbook
Set xl = CreateObject("Excel.Application")
Set... |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2007 |
| Replies: 6 Views: 7,030 Hi,
Just replace the wdFormatRTF with number 6 (this code is for VB6, if you are using different IDE please advise).
Dim Oword As Object
Dim Odoc As Object
Private Sub Command1_Click()
Set... |
Forum: Visual Basic 4 / 5 / 6 Sep 5th, 2007 |
| Replies: 1 Views: 4,955 Hi,
I think u r trying to create a checkbox on runtime and give it the name stored in variable b. if so below is the code to do it:
Private Sub Command1_Click()
Dim a As CheckBox
Dim... |
Forum: Visual Basic 4 / 5 / 6 Sep 5th, 2007 |
| Replies: 2 Views: 744 Hi,
You can use Range("A:A") and the whole col will be used. |
Forum: Visual Basic 4 / 5 / 6 Sep 5th, 2007 |
| Replies: 1 Views: 601 Hi,
Not so clear but if I understand what you mean you need a grid that includes some file names and an OLE object to display the content?? |
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2007 |
| Replies: 6 Views: 7,030 Hi,
Try this, I haven't been able to test it:
Dim Oword As Object
Dim Odoc As Object
Private Sub Command1_Click()
Set Oword = CreateObject("Word.Application")
Set Odoc =... |
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2007 |
| Replies: 2 Views: 4,867 Hi,
Use the below code while changing just the file name:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal... |
Forum: Visual Basic 4 / 5 / 6 Sep 3rd, 2007 |
| Replies: 2 Views: 1,063 Hi,
What I ususaly do is call the below SQL through regular ADO "Select GetDate()" so the statment is implemented on the SQL server on our main server. |