when i load up a project stored on a network drive that uses ocx controls(also stored on the network drive), it always brings up an error saying that it was unable to load the control except when i run it on the machine where the ocx's were compiled. i would like to be able to edit the project...
am i allowed to call public subs in other forms from a timer? it seems not to be able to call them...
Call Form2.mysub
--> it never enters form2.mysub() !!!argh!
-------
Private Sub Timer1_Timer()
Dim mFileSysObj As New FileSystemObject
Form11.Text2.Text = Str$(promptCurrent)
If...
I know about the findwindow technique. How do I do the reverse of that? That is, knowing the handle of the desired window, how can I grab its title? What other information can I grab knowing just the handle? Thanks
I have a set of data that I would like to plot as a line graph: x vs y. My data consists of one array for the x axis points and another same-sized array for the corresponding y values at each x axis point. This should make one line. How do I plot this in MSchart? I am using the follwing code I...
i have the handle of a program that i shelled and am controlling with my VB gui. sometimes this other non VB program exits of its own accord. is there a way i check in every once in a while to see if a program is still running? i have the handle of the program to work with. there may be other...
Form6.List2.AddItem ("K/z0 (" & trim$(Str$(j)) & "," trim$(Str$(j+1)) & ") ="
i want the final string to look like:
K/z0 (0,1) =
how do i do this? i'm getting a syntax error on compile at the moment
i know this is an option on child and regular form windows, but it doesn't appear in the MDI window properties. Is there an easy way to disable the top right hand corner X (exit) button? i've seen some pretty complicated solutions involving how the toolbar is drawn...
is there a built in function in VB that returns the max value and its position in an array?
i seem to remember this being in other languages but haven't found it for VB yet.
if all else fails, i suppose the few lines of code needed could be written myself - i just figure that somebody else has...
say I have a the VB executable running from C:\winnt\profiles\ctlin\desktop
how would I make a call in VB to return this full path as a String for the program to use?
Thanks.
strongm-
on that program you wrote a few weeks back that interfaced a GUI and a console app: is there any way for me to be able to see what is going on in the console app when i am having the GUI send console commands to the console app? right now the console window appears when i start the...
so i have a lot of properties i want to control, say 10 outputs of something. each one has an on/off property.
i could go through and make a let/get for each one and then individually control each property with its own checkbox.
but i have 10 checkboxes in a control array so i would like to...
It pops up when I try to run or compile the code. what does this mean? I am trying to build a control for an external device. I have the UserControl_Init, _Read and _Write subs written along with some Let/Get blocks. Is there a specific error I should be looking for or is this a general type...
so i need to send in some input to a console-style app that will be running hopefully hidden in the windows background. SendKeys is what i've been using when running the console normally, but i'm not sure how to get it to type to hidden processes(started with Shell, option '0') so i think i may...
i have some loops running that are infinite (waiting for input from another prog). if the user exits the program with the X in the upper right hand corner of the MDI during the loop, then the .exe still runs after all the form windows close (i know because i tried to recompile to the same name...
i have an MDI window with a menu. right now i have it set up so that several menu items are disabled. how do i make it so that i can enable these items from a call in another form. i have tried making a public sub in a module but it can't seem to reference the MDI menu object. can i make the...
the following code doesn't work for some reason- when i run it i get a popup saying:
"Compile error: Block If without End If"
i am trying to get the sub to exit if all fields have not been filled properly. something to the effect of undoing the submit click i suppose. thanks...
i am trying to make a public array of strings that can be used by all the forms in my program. i get an error when i try to do:
Public myArray(40) As String
the error basically says that i can't make arrays public.
how do i get around this or make a set of data accessible to the whole...
yet more questions from the VB newbie...
how do i separately group radio buttons on the same form? it seems that when i add radio buttons on one form, they all get lumped into the same "only one at a time" radio group. i would like to have several sets of buttons on a form.
also is...
here is the piece of code that seems to be generaing an error on comile in Compaq Visual Fortran...
-------------
COMPLEX*16 A(NDIM,NDIM),PIVOT(600),AMAX,T,SWAP,U,DETERM
INTEGER IPIVOT(600),INDEX(600,2)
REAL*8 COND,TEMP,ALPHA(600),SUMAXA,SUMROW
IMPLICIT REAL*8 (A-H,O-Z)
--------------
I...
when i load new child windows at runtime, they come up a different size than when i was building them in VB.
Call Load(childForm1)
how do I make MDI child windows load up the same size at runtime as in the project?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.