Hi.
Modules can't be called. A module is a container which can hold Subs, Function, Properties etc. The module can be a standard or a class.
Here is a quick example of calling subs in a module
Add a standard module to your project and add this code
*****************************************...
From MSDN:
Creating or Saving Application Settings
You can use the SaveSetting statement to save a new value for a registry key stored in your application's registry location. For example, you could add code to the Form_Unload event in the application's main form in order to preserve settings...
The following recent thread should get you started
thread222-404019 To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
Sorry...That may not work. I forgot I was in the .Net forum. Thought I was still in the VB 5/6 forum To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
Hi.
Pass a parameter set as form to the module/class
For example:
***** Module *****
Public Sub FormTest (frmTest as Form)
frmTest.Caption = "Test"
End Sub
***** Calling Code *****
'Call Sub
FormTest me
Hope it helps To get what you want, you have to go through the crap...
Just thought I would make a contribution to the "easy question" debate.
As a programmer I would put myself in the beginner/intermediate bracket, so there is still alot to learn and i think this place is a good a place as any.
On a daily basis I try and read through all the...
Ok. On your form you need atleast one instance of a textbox with an index set to 0. Use the default name (text1) to use it with the code below. Hope it is useful. I have added it to a click event of a command button.
Private Sub Command1_Click()
Dim intNextVal As Integer
'find next...
HI..
I believe that if you set the Validate property of the text boxes to true, and place appropriate code in the Validate event of each text box, you will get the desired effect.
Also, you could have a form level validation procedure. When you go to do the calculation (through a cmdButton i...
HI.
Hope this helps. You will end up with two variables. One with the full path, minus the file. And one with just the file.
Dim sPath As String
Dim sFile As String
Dim sFullName As String
Dim iSlash As Integer
sFullName = commondialog.FileName '
iSlash = InStrRev(sFullName...
Interesting thread...Regarding the function below, I have a few questions
Private Function ValidateInkey(strType As String, KeyAscii As Integer, strInbox As String, intMaxLen As Integer) As Boolean
I understand the logic of the function but what would fill the strInBox parameter?? Also, how...
Hi.
I am assuming that you will be setting the tab index at design time, so you will know in advance what control has the tab index '1'. If so, with said control (ie, a textbox) type:
text1.setfocus
Darren
Hi.
The checkbox should have a click event so try this..
private sub Check1_Click()
if check1.value = 1 then 'checked
text1.enabled = true
else
text1.enabled = false
end if
end sub
Before you begin, set the text box's enabled property to false.
Hope this helps.
I have never used multipages before so I can't really say, but could you consider using the Tab-strip control property which can be found in the Common Windows controls 6.0. This way, you can have one form and the user can just select to the different views as they please. Hope this helps.
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.