18. juli 2001 - 02:12Der er
11 kommentarer og 1 løsning
Active-x
Jeg har et problem med at få aktiveret et active-x objcet på en access 2000 formular. Jeg dog ikke hvordan jeg refererer til den eller får den til at virke.... Det er MS Progressbar. Hurtigt please
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
For at kunne benytte Active-X objekter, skal disse registreres.
Du skal stå i et kodevindue. derefter klikker du på Funktioner. I undermenuen kan du vælge Active-X og der registrere Progressbar. Du skal desuden være sikker på, at der er en reference til biblioteket. Det gør du ved at vælge referencer, og markere det korrekte bibliotek.
As Claus correctly says you choose the control from the <Indsæt> <ActiveX-Object> menu. This also registers the control for you, you can see this in the tools references menu when in Code view. Its registerd as \"MS Windows Common Controls\" which uses (COMCTL32.OCX for version 5.0)or (MSCOMCTL.OCX for version 6.0). These controls may only be available in the developer edition, so if you still cant find it then thats the reason!
Just looked at the last sentence of your question \"Hurtigt please\"!!!
The Windows Forms ProgressBar control indicates the progress of an action by displaying an appropriate number of rectangles arranged in a horizontal bar. When the action is complete, the bar is filled. Progress bars are commonly used to give the user an idea of how long to wait for a protracted action to complete — for instance, when a large file is being loaded.
If you right click on the control you will see ProgCtrl Object menu, choose Properties here. You can set the min and max values here.
Then increase the value (progress) : Me.ActiveXCtl0.Value = ActiveXCtl0.Value + 100
The key properties of the ProgressBar control are Value, Minimum, and Maximum. The Minimum and Maximum properties set the maximum and minimum values the progress bar can display — the minimum being represented by one rectangle. To update the current progress value, you must write code to set the Value property. In the example of loading a large file, you might set the maximum to the size of the file in kilobytes. If the Maximum property is set to 100, the Minimum property is set to 10, and the Value property is set to 50, then 5 rectangles will be displayed — which will be half of the number that can be displayed.
Another control that graphically informs the user about a current action is the StatusBar control.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.