|
EliBoby wrote: the function and the dll are both called Authentication, how can I call it without writing it?
Since I dont know much about VB.NET , but generally to use a dll, just simply follow these steps
did u have Authentication.dll ?
if so...
- create a project
- add a reference to that dll
- in ur project call dll's functions
<< >>
-- modified at 18:40 Friday 4th November, 2005
|
|
|
|
|
This is exactly what I did, and I still getting this blue line, that tell the my function name isn't a method.
Can you send me a simple code example, so I can see what I do wrong?
thank for your help
|
|
|
|
|
Currenyly, I have no any code here ;(. So u might google a bit
Let's check again, in the Authentication.dll, how many functions there?
and fucntions's name? And remember that u have to call a method (using method's name) not namespace's name.
I assume that there is a function named "test(...)" in the Authentication.dll
in ur app, just call test(...)
<< >>
|
|
|
|
|
this is exacltly what I am doing, and it's still don't work. I still get an error, this time it tell that the function name (login) is not declared. I probably have problem in my dll.
Thank you for your help, i am giving up on it from tonight.
|
|
|
|
|
Unfortunately, he can't show you any code that is going to help. What you have to do/type in depends heavily on your .DLL. You can glean some information from the Object Browser (View menu in Visual Studio). Since you already have a reference to the .DLL, it's namespace and objects will show up in the browser. Since the Imports line doesn't error out, you apparently have the namespace right, or the top level name at least. You could also try hitting period after you type Authentication so the Intellisense list pops up.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am not a .NET programmer, but have years of VB1-6. Can you reference the DLL explicitly so you don't get a clash with the routine name??
as an example ADODB.Connection as oppossed to Connection
|
|
|
|
|
I have a windows application with two forms. Both forms work and will pass information and button clicks between them. The problem is a none update of Form2 until after Form1 completes all of its task.
Form1 is the one doing all the work. Form 2 has a Progress Bar and a large TextBox that I want to use like a console/debug window.
When the begin button is clicked on Form1, The “Outline Only” of Form2 displays. It says that way until Form1 finishes all of its work. Then the TextBox displays all of the messages sent to it and completes the display.
How can you make Form2 complete its display and show the messages and progress bar as Form1 is performing the updates.
|
|
|
|
|
I think you'll need to use Application.DoEvents()a good place to put it would be right after data is sent to Form2. Also you could call Form2.Invalidate to force it to redraw.
|
|
|
|
|
When I tab to the second column of my datagrid I would like to bring up a form when the enter key is hit. How can I do this?
Thanks
|
|
|
|
|
i have this data and i want to use regular expression to get particular sets so as to put it into an array, then to excell. For now am stack at how to use regex method or any regular xpression method to get the the first occuranse of the double zeros, the the subsequent zeros separtely.
5 188631 004 TUMUSHABE BENSON -357,609 00 00 00 20901 0.00
5 446478 003 BAGONZA LYNETTE -261,350 00 00 00 20901 60,000.00
5 420413 019 MAGALA STEPHEN -128,019 00 00 00 20901 40,000.00
5 199311 001 LUBEGA BOBBY MICHEAL -10,000 19 06 19 20901 0.00
i need2capture the first '00', 2nd '00' and so on up to the last 0.00. by the way these values can change eg '00' --> '16' etc
using the string split() method may not work as "5 188631 004" is to be taken as one number. So are the names. after that every space inbetween the numbers is indiacates a new column.
Some one please help
-- modified at 2:09 Saturday 5th November, 2005
|
|
|
|
|
why go through all of that? it appears that values are separated by a space (" ") so try using split():
dim vArray as Variant
dim sLineIn as string
vArray = Split(sLineIn, " ")
'creates a 0-based array separating the input string by spaces
'in the case of your first sample line
'vArray(7) is your first set of "00"
'in foruth sample you are missing a space after "-"
'this is still no problem as you can count back from UBound(vArray)
'vArray(UBound(vArray)-4) is the first set of "00"
'just build logic around recognizing which array elements are actually "00"
for i = 0 to Ubound(vArray)
if vArray(i) = "00" then
'here is where you start
else
'something
end if
next i
|
|
|
|
|
i have this data and i want to use regular expression to get particular sets so as to put it into an array, then to excell. For now am stack at how to use regex method or any regular xpression method to get the the first occuranse of the double zeros, the the subsequent zeros separtely.
5 188631 004 TUMUSHABE BENSON -357,609 00 00 00 20901 0.00
5 446478 003 BAGONZA LYNETTE -261,350 00 00 00 20901 60,000.00
5 420413 019 MAGALA STEPHEN -128,019 00 00 00 20901 40,000.00
5 429873 004 TUSABE STELLA -44,400 00 00 00 20905 0.00
i need2capture the first '00', 2nd '00' and so on up to the last 0.00. by the way these values can change eg '00' --> '16' etc
Some one please help
elms world
|
|
|
|
|
I have to send data to another domain/url via the post method. If the url name is https://theirwebaddress.com and I need to send two text fields first and last name.
How would you code this?
Thanks
|
|
|
|
|
I'm sure this one has been covered here before.
How can I change the foreground color of a disabled textbox to black?
Thanks for any help.
|
|
|
|
|
dptalt wrote: How can I change the foreground color of a disabled textbox to black?
I already test in vb6 application. Just change the ForeColor property in the code if you know the Name of the text box. Example:
Text1.ForeColor = vbBlack
|
|
|
|
|
|
Does anybody know how to get the location of a file from only the filename?
E.g. Filename = "test.txt" and then I need to return the whole path (e.g "C:\Test\test.txt")
Thanks in advance
|
|
|
|
|
Do you not have any other information about the location of this file? Would it noramlly be in the application folder, or "My Documents" or something. Presuming you do know the directory then the fullpath is just a string so use string manipulation:
filepart = "test.txt"
folder = "c:\test"
fullpath = folder & "\" & filepart
|
|
|
|
|
No, I don't have any more information about the file. It is a file an external application creates when it installs. I need to find the file (wherever the user installed it) and update it from my application if the installed version is out dated. (Hope this makes sense to you?)
|
|
|
|
|
If you don't know where the file is, you'll have to glean some hints from the app, like its config files or something in the registry. Other than that, the more unreliable method is to search the entire hard drive for the filename. The problem with this method is that what if there are multiple files with the same name?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
u can make a for loop to get the filename until it reaches the (.)period before the extension name.
joseph
|
|
|
|
|
That would work until a file has multiple periods in it......
|
|
|
|
|
|
How can I do the following, that is recgonise that I have click on a certain button so to do something.
e.g.
Private Sub BasicValidation(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click
if I click on Button1.Click
Do Something
else
I have click Button2.Click
Do Something else
End Sub
|
|
|
|
|
In the function definition, sender is passed as a parameter. Sender is actually the control that is clicked. It is of type control, not button though. So you can test sender:
If sender.name = "button1" then
' do stuff
ElseIf sender.name = "button2" then
' b2 stuff
End if
If you added the controls at runtime then you won't might not have set the name property, in that csae the quick way is to set the tag property to something as you create the controls and then test sender.tag.
|
|
|
|