|
Depends on the format but you could try: Convert.ToDateTime(myString)
|
|
|
|
|
dim now as datetime = datetime.now
dim temp as string
temp = now.tostring
Stephen May
|
|
|
|
|
So what are you trying to tell me with this?
The question was how to convert string to time and not time to string like you did.
|
|
|
|
|
sorry, long day
Use the old standby cdate(string)=datetime
or use dateserial(year,month,day)
If you only want the time portion then
format(cdate(string),formatstring)
|
|
|
|
|
why don't you use Time.Parse(MyString) ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
hi,
i'm creating an web application in vb.net which has 3 level drop down menus. if you are not getting what im saying then please visit this website.
http://www.gehealthcare.com/inen/
in this website on the lefthand side there a lot of items like diagonostic imaging, cardiology, information technologies, education etc. click on any of the items and you get further list of items. i just want this effect in my web application, which i'm developing in vb.net.
how do i do this. anybody got ideas help me.
|
|
|
|
|
You can start with posting this in the ASP.NET Forum. Then move on to a JavaScript forum because that's what it's going to take to get this to work. ASP.NET is a server-side only technology that generates HTML for browsers. It does nothing client-side.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Are there any articles on CP that cover this ( that is, the seperation between client and server in ASP.NET ) ? There seem to be a lot of questions of late where people have no idea how/where it all works.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I haven't seen any, but I've just picked this stuff up out of the docs.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am a newbie to vb.net. I have done some things in VB for applications but not vb.net.
What is the best way to show info from a database in a grid style format that can update/refresh every 5 to 10 minutes. There will be no user interaction. I can get the info from an SQL database but the output is what I need to figure out. I played with datagrids but that seems like overkill. I also need to format the output of the data based on specfic criteria.
If there is an example to look at I would like that also. If this program can be done through asp.net more efficiently then I will go down that road also.
Any help would be appreciated.
Thanks for all the help
NewbieDave
|
|
|
|
|
NewbieDave wrote:
What is the best way to show info from a database in a grid style format that can update/refresh every 5 to 10 minutes.
A datagrid and a timer.
NewbieDave wrote:
I played with datagrids but that seems like overkill.
OK, then use a ListView. They are harder to set up tho.
NewbieDave wrote:
If this program can be done through asp.net more efficiently then I will go down that road also.
Use ASP.NET only if you need online connectivity, otherwise it's just too limiting compared to what you can do with WinForms.
NewbieDave wrote:
I also need to format the output of the data based on specfic criteria.
You should really use a DataGrid. You can specify a number of views on a datagrid, and the views will automatically be used based on table name, then rename your table to reflect the view required.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I would like to build Electronic DTR because my boss wants me make a E-DTR. I hope someone can guide me step by step on how to make this project. My boss don't want to use the Bundly Clock because He wants to use our computer so I need to build E-DTR using VB 6 and Access. If you can't help me, I hope you can suggest a site that have already a project like this.
Thank you in Advance!
|
|
|
|
|
For us laymen who can't read minds, what is an "E-DTR"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
A bundy clock appears to be a clock for keeping track of employees hours. So I guess electronic - Date Time Record ? Who can say ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If you explore IBM's family tree, one of the very early branches takes you to Binghamton, N.Y., home of the Bundy Manufacturing Company following its incorporation in 1889. The new business produced a time clock invented by Willard L. Bundy. Bundy two years later, along with two other time equipment businesses, was consolidated into the International Time Recording Company. ITR itself became part of the newly-formed Computing-Tabulating-Recording Co. in 1911, which was renamed IBM 13 years later.
|
|
|
|
|
??? Like I give a cr@p about IBM's family tree...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Why has your boss asked you to do this ? That is, are you already a VB6/Access user, or is he throwing you to the wolves in the mistaken idea that he can save money this way ?
It would not surprise me if there are samples out there that do this, but if you're not already a programmer, I'd suggest you tell your boss that it would be cheaper in the long run for him to spend a little money on a system that is known to work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi,
My requirment is i have two projects in vb.net but from one project i need to interact with form of other project is there any concepts to do this if there please help me.
rafi khan
|
|
|
|
|
you must add a reference in the calling project to the project which contains the form to be used.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Does anyone know how I could perform a column based selection from a
multi-line text box or if there is another control that would allow me to do
this?
The behaviour that I am looking for is the same as holding the ALT key and
making a selection in MS Word.
|
|
|
|
|
No, there are no prebuilt controls that do this, you'd have to write one. And it would not be an easy task.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
bump
Does anyone have any idea of how to code this up? I've been searching for stuff on the net but found nothing yet!
Any pointers would be appreciated
|
|
|
|
|
Bump doesn't work, posts are not listed most recent first, only most recent thread.
The first step is to be owner drawn - then you can work out which text on each line is part of the group you've dragged over, and it's the only way you can draw it as selected.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Maybe this is a stupid question, but how can a TextBox be owner-drawn? It doesn't have the "DrawMode" property as per ListBox for example....
|
|
|
|
|
Really ? In C++, all controls can be owner drawn. I guess you then need to start with an empty control. Man, that would suck. But I guarentee you, the text boxes built into Windows do not support this directly.
Christian Graus - Microsoft MVP - C++
|
|
|
|