|
i have created an application which is ping multiple IP address at 1 time. In my application, user can set the routine time by selecting from combobox which is every 10minutes, every 15minutes or every 30minutes. the application will loop pinging IPs until the user ends the program. my question is, how am i going to write the routine?
|
|
|
|
|
if you are using .NET framework 2.0, there's a ping method under My.Computer.Network.Ping.
Hope this can help.
|
|
|
|
|
|
I have a problem taking out the name of the file to compare. For wat i know i if i have a file call 12345.ppt i can use split or remove function to separate the 1st part and the extension part.. But now my question is my file name is abc12345.ppt and i just wan the number which is 12345, how can i go about doing it??
|
|
|
|
|
If you just want the number, you need to use a regex for that.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi chaps,
it has been a while since I have been here ...
I started programming back again but I'm having a problem ...
I would like to use the mid() function in multiple lines ... (textarea)
is there any way I can jump from line to line ?
and another question ... can somebody give me the code to write a textarea content to a file ?
thx in advance ... I hope you guys can help me out ... specially with the mid function or some alternative of it
|
|
|
|
|
is this VB6 or VB.NET ? you can use the Split method to turn a string into an array, one per line. You can use the substring method on each line to get a substring if you want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
VB.NET
but normally VB6 should also work on .NET right ?
anyway what's the best solution ?
and can you give some example code of both ?
Haven't really used them ... only split but that's a long time ago and it was pretty vague already back then :p
|
|
|
|
|
X-tremist wrote: but normally VB6 should also work on .NET right ?
Hell, no.
X-tremist wrote: and can you give some example code of both
I *think* it's
dim s as string()
s = tb,Text.Split(Environment.NewLine)
The substring method is self explanatory.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
actually I made a mistake ...
it's a multiline textbox
so how should I handle that ?
how can I search line by line for a word or character ?
is there any way to parse everything to one line in a string ?
that way I might use a counter and the mid function
|
|
|
|
|
|
It is pretty straightforward. You'll need a user table that stores the login info, and just run a query that has the username and password in the WHERE clause. If the query comes back with 1 row, then the login is successful. This is a very basic approach. You can do other more advanced things such as timestamping the login, forcing user to change their password, etc.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi,
how to write code for the below Binding Navigation Controls in VB.NET 2.0
BindingNavigatorMoveFirstItem
BindingNavigatorMovePreviousItem
BindingNavigatorMoveNextItem
BindingNavigatorMoveLastItem
Regards
Vidhish
|
|
|
|
|
Wow.
Amusingly, if I type these terms into google, I find examples of what I assume you want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi graus ,
i didn't get solution for the navigation buttons in google search.
Pls let me know what type of code you implement.
BindingNavigatorMoveFirstItem
BindingNavigatorMovePreviousItem
BindingNavigatorMoveNextItem
BindingNavigatorMoveLastItem
Regards
Vidhish
|
|
|
|
|
You must have a different google to the one I have access to. The behaviour seems obvious to me, and it seems tied to your data source. Why don't you try posting the code you've tried and explaining what's going wrong with it ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi all i already told my problem can anybody help me
am using VS 2005, i have one issue on search buttons. The problem is my form contains 4 search buttons each search button searching the values depends on table values . For Exp TicketNumber,UnitNumber,CompanyName,SerialNumber.
In this case only one search button working properly my code is........
Regards
Vidhish
|
|
|
|
|
vidhish wrote: my code is........
absent.
Maybe you did not check the "Ignore HTML tags in this message (good for code snippets)" box while
pasting it in?
CORRECTION: please don't start a new thread on the same subject. Now there are two threads, both
incomplete.
|
|
|
|
|
|
pranavrana wrote: txtUsername.Text = rd("Username") And txtPassword.Text = rd("Password")
That is a problem right there.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
What line is the error on? This one?
txtUsername.Text = rd("Username") And txtPassword.Text = rd("Password")
Of course that's a problem. That needs separated on two lines. You can't use a Boolean operator on strings.
And please don't post the same question/problem more than once.
|
|
|
|
|
Hi,
I want to display reservations in table
in first cell i want to display vehicle name and from 2nd cell i have to display timing ranges from 8:ooAM to 11:00AM with interval of 15 minutes.
I mean each hour contains four cells and have to color those cells which contains reseved time .
i have calculated start_cell_number and end_cell_number but now i have to display reservations in table and want to color cells which contains reservation.
Please iam stuck on this any hint or article is highly appericaited .
Here is sample of display Data .
VehicleName 8:00 8:15 8:30 8:45 9:00 9:15 9:30 9:45 10:00 10:15 10:30 10:45 11:00
Shahzore
CD 70_01
cD 70 02
for suppose Shahzore is reserved from 9:00 to 10:00 then i have to color cells from 9:00 to 10:00 ans others reamins un colored
please give me simple hint
Regards
rameez
|
|
|
|
|
If you have these columns, handle the item data bound event to change the color of the column that corresponds to the time that has been set.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Thanks for reply Christian Graus
please can u give me code example that how i do that .
thanks in advance
Rameez
|
|
|
|
|
Hi!
I have an application that generates a report using VB's Data report. Is there any way to suppress the page footer unless it is the last page? I know I can use the report footer, but the problem with this is that the report footer display right after the detail section ends(so if the detail ends at the middle of the page the Report footer will show in the middle of the page). I don't want to use Crystal Reports since I have to make the report again from scratch. Is there any way to do this? Please help..
|
|
|
|