|
It's really easy. Right click on you project and click add new item. Select module. Then code your procedures (if your smart you will use functions) as public and you can call them from your app. You pass paramters just as if they were in your code page.
"People who never make mistakes, never do anything."
My blog
http://toddsnotsoamazinglife.blogspot.com/
|
|
|
|
|
I dont want to return any values from my procedures, thats why i wanted to use Sub Procedures.
Neways, how do i call the Module.Is it like this...
Class form1
Sub form1_load(....) handles.....
Module()
End Sub
End Class
Also, where can i declare such things that i need in every module,class,form, etc..
(l0phtcrack)
|
|
|
|
|
What would the syntax be on the following with the Array.Copy method
Array1 values
1, "Sue"
2, "Peter"
Array2 values
3, "Mary"
4, "Alan"
I want Array1 to be like
1, "Sue"
2, "Peter"
3, "Mary"
4, "Alan"
I have tried Array.Copy(Array1, Array2) but had no joy.
|
|
|
|
|
It seems that all the copy variants want to copy objects over existing ones, I can't see an insert method. You need to do foreach on one array, and insert each value into the other array.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Vb.net 2003
DataGrid
Enter is not working
in datagrid.I press Enter
key in datagrid nothing
to happen. How use AddHandler
in datagrid
I neednot processcmdkey
that make more problem
that call keyup function automatic
Continue...
|
|
|
|
|
Hi everyone!
I have a question. I have a vbScript (.vbs) file that sends emails using outlook. I now want to have that file as include file in other vbScript files like ASP allows you to do:
But I can not find the way to do it.
Is it possible to have a include in .vbs script file?
Does not make sense to have the same code in 2 files if you can make it an include, does it? But I can't find a way... if any of you know how please let me know.
Thank you in advance!
iluha
|
|
|
|
|
iluha wrote:
This is ASP, not jscript, html, or anything else. It won't work in ASP.NET. Instead, put your script into a control, and use the control, or if it's all script code ( no HTML ), make it a constant string and use RegisterClientScriptBlock to insert it into the page, in your codebehind.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
It is possible to include vbs scripts in other vbs scripts using the 'wsf' extension.
rename your main script to ScriptName.wsf
And the content of the file should be like this:
<job>
<script src="test.vbs" language="vbscript" />
<script language="vbscript">
' Put your script here
</script>
</job>
Good luck,
Yaron Ozana
Freelance web developer
yaron@supertech.co.il
|
|
|
|
|
hi to you all,
i'm working with vb.net and trying to do some drawing.
here's my problem:
i have to draw several objects and some of them have to be topmost, over all the other objects. since i have to iterate within a collection i'd like to draw them all in the order i found them, cycling one time only, but in two separate "layers" and then merging the two "layers" in one, so i could output one single bitmap.
can somebody help me in figure out how to manage those two "drawing layers" and overlay them.
thanks in advance.
Cheers!
Fuel2Run
|
|
|
|
|
Draw two bitmaps, using .5 transparency values to make them merge instead of overwriting. Then do the same to merge the two.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christian,
thanks for answering, but the method you suggest would change the color of the objects, is it?
i mean, the overlapping part of the objects would let see the color of the underlying entity and the other objects would be half transparent to the black background, is it correct?
i'd prefer to draw entities with some kinda transparent background or somethink like this.
thanks again,
cheers!
Fuel2Run
|
|
|
|
|
The ImageAttributes class allows you to specify a transparency key. Draw the bitmaps on top of each other using the DrawImage call on the Graphics class that takes one of these objects.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ok,
thanks once again,
Cheers!
F2R
|
|
|
|
|
Hello,
In my project I have created a modal form for data entry. This form can be displayed from two different parentform. Th first has a listbox, the second a datagrid.
After inserting data in the modal form and saving the data, the modal form has to be cleared for a new entry.
I want the listbox or the datagrid updated after each data entry, without closing the modal form.
How can I acces a sub on the parentform for displaying the data ??
|
|
|
|
|
|
|
Dear Team Members,
I am stuck at a point and so desire to be helped out of loop.
I want to implement a screen saver application with my vb6.0 application.
It is for touch screen enabled application .....so no keyboard but only Numberpad.
If a user does not touch the screen for period of 30 seconds , the screen saver is envoked and it remains till the user touches the screen again.
How do I check the idle time ..
It goes like .........
if no_mouse_event & timeinterval=30<br />
do<br />
call routine screensaver<br />
loop untill no_mouse_event=FALSE<br />
endif
I guess, I have understood what i wanted but my inexperienced programming tact make me a sufferer.
Can any soft hearted do the favor to me.
Xtrisk........
|
|
|
|
|
I don't know what OS this for, but in 2000 & XP there is a function called GetLastInputInfo. The function parameter is LASTINPUTINFO structure:
Private Type LASTINPUTINFO<br />
cbSize As Long ' = 8<br />
dwTime As Long<br />
End Type
As far as the time you can add a windows timer (SetTimer) or add a timer control (vb)
You can compare the LASTINPUTINFO.dwTime against GetTickCount() function to calculate the time elapsed.
Hope this helps
iluha
|
|
|
|
|
How to add a datagrid with data from a textfile?? I am using vb.net!
|
|
|
|
|
If you decide to change your post, edit it, don't create a new one.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How to add a datagrid with data from a textfile?? I am using vb.net!
|
|
|
|
|
You need to first read the text file into an array. Then make the array your data source.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How can I add the contents of one array into another which is already got values in it. The arrays are exactly the same.
|
|
|
|
|
|