Replace 1 line with 4 lines of code
I'm using Visual Studio 6.0 Enterprise edition. I'm working on a task to improve error handing, hence need to replace one line with 4 new lines of code. Doing manual is very boring. Possible to have...
View Article[RESOLVED] Wrapping Text in a listbox
I have a MultiSelect listbox in an application. I retrieve information from an Access (JET) DB to populate it, line by line (as shown above). I have found no way to WRAP TEXT IN A LISTBOX, and I do...
View ArticleSearching with ADODC error
hi i'm currently working on project to search in access db but i always get error said method or data member not found here is my code Code: Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal...
View Article[RESOLVED] String -> hex string -> string problem with vbCrLf
:) Hello, I am writing a note program, and it saves the note contents into a file. I use these 2 subs (ECString to convert the string to hex string and DCString to convert it back into a human readable...
View ArticleMultiple selections of an MSFlexGrid
Thanks to ColinE66 and si_the-geek, I was able to use a word-wrapped MSFlexgrid in my project vice a non-word-wrapped textbox. The FIRST issue I have having now, is that I want to select multiple rows...
View ArticleNeed Scrollbar or Slider than can go all the way to 65535
Nevermind, I had an error in my code. The Slider control can go all the way to 65535, and even higher.
View ArticleUsing Fonts Embedded in a Resource?
Hi again! I'm wondering if it's possible to apply a font embedded in Resource file (within your project) and without extracting or saving it to a temp folder. I have looked everywhere and could only...
View ArticleEditing the whole listview row contents from textbox
Thanks for checking my thread, anyway, heres the my problem I have a listview, that contains items that are based from a search, the listview's structure looks something like... ItemCode -----------...
View Article[RESOLVED] Using Fonts Embedded in a Resource?
Hi again! I'm wondering if it's possible to apply a font embedded in Resource file (within your project) and without extracting or saving it to a temp folder. I have looked everywhere and could only...
View ArticleCrystal Report error --- 20599 Cannot open SQL server.
Environment Windows7 + Vb6+sqlserver express edition + Crystal Report 8.5 Dear all, Following is the code by which I am trying to open a crystal report. Here mdiajmer ais my mdifile and crptfirm =...
View ArticleAutomatic function using RFID & VB6.
Hello There.. I wanna make some improvement using RFID and VB6, so the main purpose is how can i submit the code that i got from scanning it through the reader, to the database, and trigger another...
View ArticleADODB Connection using DataEnvironment losing properties on Windows 7 SP1
Hello, I'm using a Data Environment Connection to connect a Database, but the properties is populated dinamically. On Windows XP, the code works. But in Windows 7 SP1, it's losing properties when I...
View ArticleBarcode Printing
Hi everyone, I wrote an app in VB6 that prints a label with the model #, date, shift, indexing serial # and a letter for a the companies ID. I modified the label to include the barcode 128 and the...
View ArticleSimple Write Registry with VB6
I want to write a simple registry as below. How can I do that in a simple and short way ? Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]...
View ArticleCheck if file extension exists in folder using wildcard and retrieve file name?
Hi There, I use a quick boolean test to see if certain file extensions exist in a certain directory (i.e., are there any *.txt files in this directory yields either True or False). But what would be...
View ArticleHow to add Schedule Tasks to run a batch file with admin privileges
Please , how to create a new Schedule Tasks with VB6 , which is to run a batch file with admin privileges Thanks a lot
View ArticleSelecting DLL's at runtime
Hi, Here's what I'm faced with. A DLL provided by a card manufacturer, now has 3 versions in service. I have all 3 versions, the dates as well as the sizes are different, however the names are the...
View Articleitem could not be found in the collection corresponding to the requested name...
why do i get this error if my fields are correct? Code: Dim EmpNo As String Dim stat As String Sub Verify_Account() stat = 0 strSQL = "SELECT * FROM Users" With rs .MoveFirst While Not .EOF...
View Article[RESOLVED] OLD TOPIC - Creating a Control Array at Runtime (But with IDE'...
Does this statement from MS (still) apply, or is there a way to do this? Quote: Adding Controls at Run Time In Visual Basic 6.0, controls could be added to a control array at run time using the Load...
View Article