-
Replied To a Post in on VB6 how we create a memory DC?
I assume you're trying to create a screen compatible DC by passing 0& to CreateCompatibleDC. Perhaps try: Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As … -
Began Watching on VB6 how we create a memory DC?
on VB6 i have these code for create a memory DC: Public Sub CreateMemoryBitmap(ByVal Width As Long, ByVal _ Height As Long) If (ImageWidth > 0 Or ImageHeight > 0) … -
Replied To a Post in Visual basic 6: how using RayCasting?
I see what you're saying. I got a black block (line) after so long of pressing a key. The resulting color is dependent on the **DrawMode**, but the size is … -
Replied To a Post in Visual basic 6: how using RayCasting?
It's difficult to determine the cause without seeing the rest of your project. Could it possibly be the DrawMode of the surface on which the line is being drawn? -
Began Watching Visual basic 6: how using RayCasting?
i did these code for create RayCasting: Option Explicit Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long) Private Const PI As Double = 3.14159265358979 Dim LevelMap(12) As Variant … -
Replied To a Post in Remove Registry combobox open for random
I don't know Spanish, so it was difficult for me to follow. As best I can determine, you are trying to use the NAME keyword to rename a file: Name … -
Began Watching Remove Registry combobox open for random
I'm doing an inventory application in a random file, everything works fine, but I need to delete the record through combobox. I don't know what I'm doing wrong. It loads … -
Replied To a Post in Attendance Management in VB6
What code do you have already? -
Began Watching Attendance Management in VB6
Hi I am creating a employee management system with ms access and VB6. I need code for marking and view attendance. Can anyone help me ? -
Replied To a Post in id list1 open for random
Sorry, I've been out of town for the week and will be gone this weekend, so I can't be of much help. I see you changed the Text Box to … -
Replied To a Post in id list1 open for random
Change Text1.Text = myRecord.ID + 1 in Sub LoadRecords to Text1.Text = "1" -
Replied To a Post in id list1 open for random
It works for me. See attached. -
Replied To a Post in id list1 open for random
It works right for me. I changed a few things and made comments in the file. -
Replied To a Post in id list1 open for random
Dim Sep as Long -or- Dim Sep as Integer Either one will work. There's some debate as to which you should use, but either will work. -
Replied To a Post in id list1 open for random
The INSTR function returns a variant, so the return value can be declared as an integer or long. -
Replied To a Post in id list1 open for random
So 3 records of each number but different data? Sounds like a case for modular arithmetic e.g If X Mod 3 = 0 then... You didn't say why you're reading … -
Replied To a Post in id list1 open for random
I guess I don't understand what you're trying to do. Are you wanting records to be 1 aa, 1 bb, 1 cc, 2 aa, 2 bb, 2 cc? -
Replied To a Post in id list1 open for random
Try this. I coded the Click event for the list, which populates your text boxes. The New button sets the ID to one greater than the List box contents. Why … -
Replied To a Post in id list1 open for random
Uncomment x = LOF(1) / Len(myRecord) -
Replied To a Post in id list1 open for random
Try this. -
Replied To a Post in id list1 open for random
Okay, but you still have problems with your loop in Command1_Click For x = 0 To List1.ListCount - 1 myRecord.ID = Val(Text1.Text) ' Define ID. myRecord.Name = "MyName" & " … -
Replied To a Post in id list1 open for random
Well, the immediate problem is you are referencing Text2 in the loop for every record you're trying to save: MyRecord.Name = "MyName" & " " & Text2.Text The other problem … -
Began Watching id list1 open for random
Hi, I'm Arcon. I have a problem when saving records, it saves a record and when it saves another it overlaps the first record when reading records with its id … -
Replied To a Post in Onboarding new members
What about SMS text verification? Probably more expense, although I'm not sure how much. -
Began Watching Onboarding new members
In an email conversation I was having with Jim last week, I wrote: > It’s a lot easier to google something than it is to find DaniWeb, sign up, create … -
Replied To a Post in MS Word Merge Starting New Line Mid Sentence
There doesn't seem to be a space after the comma in ",for" for it to break on. -
Began Watching MS Word Merge Starting New Line Mid Sentence
Hello, Below is an example of what is happening to SOME, not all of my letters. I have letters that are all drawing from the same spreadsheet yet sometimes there … -
Created Happy New Year 2023!
Happy New Year everyone! Wishing you and yours and happy, prosperous, and healthy new year! -
Began Watching Happy New Year 2023!
Happy New Year everyone! Wishing you and yours and happy, prosperous, and healthy new year! -
Replied To a Post in vb6 Add Column in Listbox
You're welcome. -
Replied To a Post in vb6 Add Column in Listbox
You're quite welcome. You Text3 value is actually the reversing of pairs, not a simple reverse of the string. Try this: 'This assumes Text1 will always be 18 characters long. … -
Replied To a Post in vb6 Add Column in Listbox
This is how I would do it... -
Replied To a Post in vb6 Add Column in Listbox
I've changed the tab control to an SSTab than the tab strip. The SSTab is much easier to work with. I added ShellExecute, which handles loading all your links now. … -
Replied To a Post in vb6 Add Column in Listbox
That's why I suggested overwriting the text with the ListView items. Blank lines would be eliminated automatically. The only way I know how to eliminate blank lines without the ListView … -
Replied To a Post in vb6 Add Column in Listbox
I never had the deletion create a blank space in the data file. However, you can test for it in the PopulateListview sub as such: If LenB(Tmp$) Then Result = … -
Replied To a Post in vb6 Add Column in Listbox
See if this works. You had a problem in the Delete Data sub. Your DataFile was pointing to Notes.Txt instead of Tickets.txt. Also, you Dim'd a variable called remove, which … -
Replied To a Post in vb6 Add Column in Listbox
Well, so far, I can see an error when deleting an item. There's an invalid index error in the PopulateListView3 Sub because you're trying to assign SubItems 4 and 5 … -
Replied To a Post in vb6 Add Column in Listbox
I can't test it because there's no longer a subroutine called Clear_Fields in Form1. The Delete button seems to work for me in Form2. -
Replied To a Post in vb6 Add Column in Listbox
The project has gotten a lot more complex. Starting to shape up nicely. I fixed the search. The out of bounds error happens when you use the count property in … -
Replied To a Post in vb6 Add Column in Listbox
What errors did you get? -
Replied To a Post in please help this project due next week
Not to mention line 54 is a mess. -
Began Watching please help this project due next week
hi I'm new to coding, I'm have a Visual Basic project for the memory game. it basically lets the player flips over 2 cards, if those 2 cards match, they … -
Replied To a Post in vb6 Add Column in Listbox
After you create your .EXE there are 3 ways you can use to create an installation file / package. 1. The Package and Deployment Wizard that is part of VB6. … -
Replied To a Post in vb6 Add Column in Listbox
Here's version 5 with a ListView. All functions work - search, delete, add, etc. It seems to me to be a lot less code than your previous versions. I included … -
Replied To a Post in vb6 Add Column in Listbox
I couldn't open the Excel file. Perhaps it's not compatible with my version. Trying to implement columns in a ListBox is much more complicated and requires a lot more code … -
Replied To a Post in vb6 Add Column in Listbox
I couldn't open the Excel file. Apparently, it's not compatible with my version. There's no easy way to do what you want with a ListBox. It's much easier, and a … -
Replied To a Post in vb6 Add Column in Listbox
You can simulate columns in a ListBox by including a tab in the text string ListBox1.AddItem "Column 1" & vbTab & "Column 2" Again, with variable length strings, it may … -
Replied To a Post in vb6 Add Column in Listbox
When you install your app on another system, the .ocx will be installed along with your app. -
Replied To a Post in vb6 Add Column in Listbox
I'm not sure what you're trying to achieve by using a ListBox over a ListView. Columns in a ListBox is overly complicated to implement in code and has the disadvantage … -
Replied To a Post in vb6 Add Column in Listbox
Option Explicit forces you to declare all variables before they are used with Dim, Private, Public, ReDim, or Static statements. All your variables were declared except: Dim Tmp As String …
The End.