|
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.
|
|
|
|
|
for example, I have a command-line app uharc.exe and I want my vb.net app to give it this command:
UHARC a archive *.dll @c:\list *.exe
Regards,
Vykintas
|
|
|
|
|
|
Thanks a lot.
Regards,
Vykintas
|
|
|
|
|
I am finished with designing and implementing a mail server using VB6, now it works using the LAN, but it dose not recognize any other mail servers, like yahoo, or hotmail..
How can i make it do this
Regards
SS
|
|
|
|
|
hi guys i am newbi in VB.NET. I am having tables in access database and i want to take data for multiple employees. so i want to do this in DataGrid so user can easliy enter for multiple employee. I can show data from a table to a datagrid now how to update the same table as per the changes made in datagrid.
Also i want to know can we fill a table with a query in access?
Darshan Shah
|
|
|
|
|
Hi - welcome to code project, and programming in general ( well, VB anyhow ). What you're asking here is a common problem, which has been described in detail on hundreds of web pages. There's this site called google, http://www.google.com[^]. You'll find that if you pursue the world of programming, you'll use it a lot, because there are always new things to learn, and they are all just a google away. Of course, once you've done this and tried the examples you find online, you may still have more specific questions or problems, that's where message boards like this one come into it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Does ctl exist at this point ? Does it need to be initialised ?
Christian Graus - Microsoft MVP - C++
|
|
|
|