vb6

VB6.0 Tutorial Website

与世无争的帅哥 提交于 2019-12-25 18:35:38
问题 Hi there? Please give me a website where I could study VB6.0 , I want gradual steps of DatabaseConnection tutorial, like for instance is using ADODB or DataControl . Thanks! I need simple program [Search,DataEntry,Delete,Edit,View]... 回答1: Used this site briefly when I had to get back in the VB6 swing of things: http://www.vbtutor.net/vb6/vbtutor.html They also have a fairly robust database guide. 回答2: I used to use this site a while ago - found it quite useful and there is a database guide

Button click event in vb

China☆狼群 提交于 2019-12-25 13:07:32
问题 I am newbie in VB. I want to store the values in an array when I am clicking the first button and show the result when I am clicking the second button. I am successfully stored the values in an array. But i cant access the same array in the second button click event.. Dim i As Integer Dim ag(0 To 7000) As String Dim bg(0 To 7000) As String Private CommandButton1_Click() i = 0 Sheets("New").Select Range("B2").Select While Not IsEmpty(ActiveCell) ag(i) = ActiveCell.Value i = i + 1 ActiveCell

sql query to select week,month, days

半城伤御伤魂 提交于 2019-12-25 08:48:25
问题 please guys, i need an sql query to select data from an access database using vb6. the query will only provide current date and the filed been compaired is curr_date in the database. for example SELECT * FROM TABLE WHERE curr_date BETWEEN firstoflastmonth AND endoflasthmonth; SELECT * FROM TABLE WHERE curr_date BETWEEN firstoflastweek AND endoflasthweek; SELECT * FROM TABLE WHERE curr_date BETWEEN firstofthismonth AND endofthismonth; SELECT * FROM TABLE WHERE curr_date BETWEEN firstofthsiweek

.Net WinForms design to sync Data and Controls

徘徊边缘 提交于 2019-12-25 06:58:44
问题 I've been tasked with converting a VB6 Floor Plans application to VB.Net The application creates Floor Plans using hundreds of dynamically created Images or Shapes placed and manipulated on the Form with X and Y coordinates (.Top, .Left). For example: a poco data class looks something like this public class Appliance { public int Id { get; set; } public string Name { get; set; } public int Top { get; set; } public int Left { get; set; } public int Width { get; set; } public int Height { get;

VB6 issue with NULL

别来无恙 提交于 2019-12-25 06:47:52
问题 I'm working on an application in VB6. I came across what seems to be a small issue, however it is annoying and I am unable to fix it. What I'm doing is trying to pass 2 values to a function.... Private Sub cmdSearch2P_Click() Call AxisSearch(2, cboDiagId) End Sub This is the function I'm passing it to... Private Sub AxisSearch(plngAxis As Long, pcbo As ComboBox) What's happening is cboDiagID is a NULL value which the function does not accept. In order for it to work, it needs to be "". I don

open chrome browser in vb “web browser control”

六月ゝ 毕业季﹏ 提交于 2019-12-25 04:57:15
问题 I am new to vb 6.0. I have to open any browser other than Internet Explorer in the web browser control of vb (which open IE by default) I have tried many codes and I can now open browser as if it is new window (by using process.start etc) Is there any way to open it in existing vb control? 回答1: The web browser control IS Internet Explorer. So unless chrome et al release a ActiveX control of their browser, which they haven't, it is not possible. There is a workaround is that you start chrome

How to rerun my program in vb6?

一曲冷凌霜 提交于 2019-12-25 04:41:01
问题 How to rerun (close then run) my program in vb6 回答1: The best way to do this is probably to create a "watcher" application that you launch in your main app before terminating it. First, the main app should create a mutex or semaphore upon launch. When you want to do the app restart, have the main app launch the watcher. The watcher application should wait until the main application mutex/semaphore is gone, then re-launch the main application. I recently released a semaphore class written in

How to gracefully exit from the middle of a nested subroutine when user cancels?

限于喜欢 提交于 2019-12-25 04:33:28
问题 (I'm using VB6 but I imagine this comes up in most other languages.) I've got a GUI button that calls a routine that takes a minute or two to complete. I want impatient users to be able to click on the button a second time to have it gracefully exit out of the routine at any point. I used a static variable to make this work pretty well (see code below), but I'm cleaning up the project and I want to put the For/Next loop into its own function, since it's required in several different places in

What can't I use when UseSafeSubset is true?

人盡茶涼 提交于 2019-12-25 04:33:25
问题 When I use an MSScriptControl in VB6, and set UseSafeSubset = True , what kind of things can't I do? I mean, what Controls can't I use? Or maybe some core Objects can't be instantiated or used? Maybe I can't CRUD files? I need a definitive list, please. This thread tells of a special flag in the registry that sets which controls are blocked when UseSafeSubset = True , but it doesn't elaborate on it. It says it should be easy to search, but two days of Googling found nothing. 回答1: VBScript had

VB6 LinkExecute equivalent in C#

五迷三道 提交于 2019-12-25 04:04:38
问题 In VB6 there is a Form event called LinkExecute witch I can use to link tow projects together. For example I create project A with a button and link it with project B witch has a textbox when I click on the button on project A the textbox in project B changed. To simplify the idea it link the tow projects and make one of them listen to the other events and when a specific event occur on the main project the listener fire an event locally on the listener project. Both projects are WinForms and