Forum: Visual Basic 4 / 5 / 6 Mar 31st, 2009 |
| Replies: 6 Views: 716 Why don't you make a copy instead? Or do you just want to copy sheet1 from Excel1 to Excel2? |
Forum: Visual Basic 4 / 5 / 6 Mar 30th, 2009 |
| Replies: 20 Views: 1,201 Hi vb5prgrmr
No you cannot do that :)
Seems like you missed my previous post....
Check post 10 |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 20 Views: 1,201 No. You can only redim the last element of an array... |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 20 Views: 1,201 Before you do that, you need to dim it as follows
Dim arrNames() as string
and then
ReDim arrNames(0 To u) as string
For example
Private Sub Command1_Click()
Dim arrNames() As String |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 20 Views: 1,201 |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 7 Views: 11,656 @KSS: That thread is 5 years old :)
The original poster must have already got the answer by now...
Also I will never recommend DAO. ADO is much faster ;) |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 20 Views: 1,201 Hi Russel
Since the thread is already solved, I feel you need to also know why this happens... This is just for your FYI...
When using Preserve keyword, you can resize only the last array... |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 5 Views: 716 First things first
Change this line
List1.AddItem "FOUND: " + v
to
List1.AddItem "FOUND: " & v
and then add one more line after that
Exit For |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 2 Views: 512 You missed out on one of the most important suggestion what your other friend gave ;)
use a flexgrid instead of listview.........
http://www.vbforums.com/showpost.php?p=3481380&postcount=3 |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 18 Views: 1,666 Oh Ok I understand :D
Is this what you want?
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbFormControlMenu Then
Ret = MsgBox("Do You... |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 18 Views: 1,666 It not only disable's the close button but also removes the 'close' option from the form's shortcut menu ;)
The API is very simple... All you need to do is copy and paste the code in the general... |
Forum: Visual Basic 4 / 5 / 6 Mar 28th, 2009 |
| Replies: 5 Views: 684 I have always loved the power of API's :D
This will help you...
Private Declare Function SHFileOperation Lib "shell32.dll" _
Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long
... |
Forum: Visual Basic 4 / 5 / 6 Mar 28th, 2009 |
| Replies: 6 Views: 739 Text1.Text = Format(DateAdd("m", Val(Text2.Text), Text1.Text), "dd-mm-yyyy") |
Forum: Visual Basic 4 / 5 / 6 Mar 28th, 2009 |
| Replies: 8 Views: 596 Glad to have helped :)
Do remember to Mark your Thread "Solved", if the query is solved... ;) |
Forum: Visual Basic 4 / 5 / 6 Mar 28th, 2009 |
| Replies: 8 Views: 596 Give me a moment...
Edit:
Ok I have checked the code again, it works fine... Can I see your project? |
Forum: Visual Basic 4 / 5 / 6 Mar 28th, 2009 |
| Replies: 8 Views: 596 The problem starts here
toclear = toclear + "1"
and then continues to
toclear = toclear + "0"
and finally to |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2009 |
| Replies: 3 Views: 468 I have replied to your other post... It will give you a start... Incase you get stuck let me know.... :) |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2009 |
| Replies: 8 Views: 596 Hi Blocker
This works for me...
I have made few changes in the code to show it as an example. Please make relevant amendments for your original code...
Private Sub Command1_Click()
Dim... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2009 |
| Replies: 18 Views: 1,666 Hi rabbithaveit
I would suggest the API way as it gives you more flexibility... See picture attached...
Please place a Command Button on the form so that you can exit.
Paste this code in the... |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 6 Views: 1,213 Hi hkdani, you don't need to "Microsoft Shell Controls and Automation reference" to just tackle the "date time window" in control panel. The code that I gave above is good enough :) |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 3 Views: 423 what do you mean by the above?
BTW your above code is correct for "differences" |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 3 Views: 621 |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 3 Views: 621 try with "Set"
Set Me.Sections("Section2").Controls("imgEmployee").Picture = frmMain.imgPic.Picture |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 1 Views: 530 To capture the image of the form, try this, Create two forms.. Form1 and Form2. Place a commandbutton in form1 and picturebox control in form2.
Code for Form1
Option Explicit
Private Declare... |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 6 Views: 1,213 If you are looking to interact with it then my suggestion is that you use the inbuilt calendar of vb6....
else here is the code
Private Sub Command1_Click()
'~~> launces the date time... |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 3 Views: 423 Reading the contents of text file is not a problem. i couldn't understand your rest of the query... Do you mean that if there is a word "True" in your text document which if found, you want to... |
Forum: Visual Basic 4 / 5 / 6 Feb 14th, 2005 |
| Replies: 6 Views: 6,050 You are right that it runs only applications. Even if you mention the filename with the path and the corresponding exe ("c:\program files\adobe\adobe.exe aa.pdf") or as a matter of fact... |
Forum: Visual Basic 4 / 5 / 6 Feb 14th, 2005 |
| Replies: 6 Views: 6,050 Sure, I'll give the code in the evening when i come back from office.... Leaving for office now :-)
Try using commondialog controls with FSO (file system objects....) |
Forum: Visual Basic 4 / 5 / 6 Feb 13th, 2005 |
| Replies: 6 Views: 6,050 Call statement Transfers control to a Sub procedure, Function procedure, or dynamic-link library (DLL)procedure.
I believe that you cannot use "CALL" to call a file which is not executable.
same... |
Forum: Visual Basic 4 / 5 / 6 Feb 13th, 2005 |
| Replies: 1 Views: 2,156 ADO is supposed to be quick...
is your table indexed??? (I am assuming that you are aware of how to set a relationship with the database using ADO so i am not checking that....)
will be back... |
Forum: Visual Basic 4 / 5 / 6 Feb 12th, 2005 |
| Replies: 3 Views: 5,124 Have you checked your nearest software dealer??
In case you want it to buy online then simply click the link below or copy and paste the link in your browser...
you'll find plenty of choices...... |
Forum: Visual Basic 4 / 5 / 6 Feb 11th, 2005 |
| Replies: 8 Views: 13,712 hmmm
there goes my idea of playing with strings.... ;) is it still insecure if we define those constants in activex controlls??? can they be reverse engineered?
anyways anxiously waiting for... |
Forum: Visual Basic 4 / 5 / 6 Feb 10th, 2005 |
| Replies: 8 Views: 13,712 Simply because, data stored in a access database can be hacked easily... I have a software which can decode the password protected access database...
Would really appreciate if you can send me the... |
Forum: Visual Basic 4 / 5 / 6 Feb 10th, 2005 |
| Replies: 8 Views: 13,712 yes i want to save the username and password in a text file and not in a database.
i want the username and password both to be encrypted. when anyone opens the file in a note pad it should somehow... |
Forum: Visual Basic 4 / 5 / 6 Feb 10th, 2005 |
| Replies: 8 Views: 13,712 I didn't find creating login screens and saving the data in access database difficult...
However, I was wondering if there is any other way we could do that, i mean saving the username and... |