Search:
Type: Posts; User: r0ach
Search:
Search took 0.25 seconds.
-
It's correct. By calling the ToArgb() method, you are essentially converting the 24bit color (r, g and b) to a 32 bit color and The alpha part is defaulted to 255. Converting these 4 bytes to a...
-
I haven't touched VB6 in a long time but I remember that Dir() presents a problem. It doesn't remember where it was as you'd expect. I've found that using the Dir() function - checking for directory...
-
Thanks Quiver, I'll check it out.
-
first, Lord Orwell is right, this is not the way to do it.
Second, your error stuff should be at the bottom. AND (IMPORTANT) you should exit sub BEFORE your error stuff.
Here's the revised...
-
Hi,
I'm not sure if this is the correct place to post this;
I am developing a filesystem within a file. This is a bit like the Structured Storage API. Is there any way I can have my file...
-
if you don't want to use any "tools", you'd have to use sockets and smtp.
SMTP RFC 821
with Extended SMTP RFC 6321
Additionally, you'll need a SMTP server to connect to.
-
Yeah, forgot about that. You can edit the copy in notepad and just change the part that says:
Begin VB.Form Form1
to say:
Begin VB.Form Form2
or whatever, before adding it to the project
-
you could make a copy of the actual file, and add it to the project.
-
-
Seems some files are both ReadOnly and Archived (&H20)
-
Would that mean that 01/04/2008 to 07/04/2008 is week 1? This will give you the weeks that passed since whichever date (01/04/2008 in your case)
DateDiff("ww", CDate("01/04/2008"), Now)...
-
Use the FileSystemObject. You'll have to reference "Microsoft Scripting Runtime"
Dim fso As New FileSystemObject
Dim oFolder As Folder
Dim oFile As File
Set oFolder =...
-
Hi,
No it doesn't. That's exactly what I need to do.
The grid allows me to OwnerDraw a cell. If a cell is set to be owner drawn, it will fire a DrawItem event with the Column, Row, DC, Left,...
-
Hi,
We have a grid, and our client wants to put controls in some of the cells. The grid allows me to OwnerDraw a cell. Is it possible to "Draw" the required controls into a cell and keep it...
-
that means absolutely nothing. start what? delete what? search what?
-
use the DateDiff function
-
You'll have to create your own
Public Function Max(ParamArray numbers() As Variant) As Variant
Dim I As Long
Dim TheMax As Variant
TheMax = numbers(0)
For I = 1 To UBound(numbers)
...
-
Sorry si and timeshifter.
-
Set the visible property to true after each second. Make the pictures control arrays. Put a timer on the form and set it's interval to 1000 and Enabled to False. 1000 is 1 second. In the timer's...
-
Thanks guys. Your helped is greatly appreciated. Issue is solved. The GDI Objects column advice helped a lot. There is a DestroyIcon, but someone was passing in the icon's ID. This didn't work. Had...
-
It's a tremendous amount of ancient code that uses ExtractIconEx to extract icons from exe's to associate with files. It's drawing it into a picturebox before adding it to an imagelist. Most of the...
-
Hi,
Is there an app/way of seeing all the instantiated objects in a running application?
We are running out of memory real soon, and I believe it's because some object is being created over and...
-
Wow, I didn't know any of this. I was pretty sure passing in the same seed gives the same results, as I've used it before like that. Much like specifying the Game Number in FreeCell. Using the game...
-
Randomize sets up the randomizer with a seed. If you use the same seed, the same "set" of random numbers will be returned. So,
Randomize 1234
will always return the same set of numbers. Using...
-
-
Haha. That's almost what I need to do. I'm using a ThirdParty grid control that works a bit like a spreadsheet. Our client wants the dropdownbox to be the width of the column, unless the textwidth...
-
Thanks.
The class manages a third party grid control on several different forms. I never intended to reference the parent form, so I didn't include the functionality. To update the class and then...
-
Thanks, I'll give it a shot.
-
Hmmmm. Not good. I've used it in .NET before. I just need to use an alternative to the Form.TextWidth() VB6 function since I'm working in a class, and don't want to create a form just for this...
-
Hi,
Anyone know of an alternative for the Form.TextWidth function? I need to use it in a class, so I cannot use the Form's function.
Thanks
-
Hi,
I just searched for about 2 hours to no avail. Can anyone give me the declaration for the MeasureString API? I need to use it in VB6
Thanks
-
what? I'm really sorry, but I cannot make any sense of the above.
-
Just use this
Set rsRecordset = New ADODB.Recordset
rsRecordset.Open "SELECT * FROM the_table WHERE FCUIPAddress = '" & Text1.Text & "'", conConnection
If rsRecordset.BOF And rsRecordset.EOF...
-
Woa. Didn't even see that. Hehehe.
-
First problem is your connection string.
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
App.Path & "\dbs\shalomhse.mdb"
It's incomplete. Change to
cn.ConnectionString =...
-
Try using the Input function
Open "C:\blah.csv" For Input As #1
strContents = Input(LOF(1), 1)
Close #1
strContents will hold everything in the file (or as much as it can). Then you can work...
-
You'll have to calculate and achieve that yourself. In the form's resize event, you can recalculate and resize the controls. Example of a Form with a textbox and a commandbutton:
Private Sub...
-
If you know this month's date you could try
strSQL = "SELECT EndingBalance FROM HouseFund IDTag = " & PreviousIDTag()
Private Function PreviousIDTag() As String
PreviousIDTag =...
-
Check this article. It's about subclassing windows common controls (Listview).
-
Try the actual listview's handle
g_addProcOld = SetWindowLong(ListView1.hWnd, GWL_WNDPROC, AddressOf WinProc)
|
Click Here to Expand Forum to Full Width
|