Calculate Avg Speed
Given a distance (50km) as integer: 50 And a time as string in the following format:00:02:04.05 hh:mm:ss.ms How would I calculate the avg speed in km/h? Thanks Lance ...
Given a distance (50km) as integer: 50 And a time as string in the following format:00:02:04.05 hh:mm:ss.ms How would I calculate the avg speed in km/h? Thanks Lance ...
Some code to illustrate my question: With Test.AnObject .Something = 1337 .AnotherThing = "Hello" ''// why can't I do this to pass the object itself: Test2.Subroutine(.) ''// ... and is there an equivalent, other than repeating the object in With? End With ...
I have an aspx page with three web controls: one to control the List Users page, one to control the Edit Users page, and one to control the Add User page. I have discovered a method for accessing these elements, but it seems to be limited. Here is what I have done: Protected Sub editUser(ByVal sender As Object, ByVal e As System.Web...
I am more familiar with VB and the book i bought has C# examples, now i am stuck. How do I implement the following in VB.NET? public abstract class ENTBaseDATA<T> where T : IENTBaseEntity { public abstract List<T> Select(); public abstract T Select(int id); etc....This code already is converted :) } For complete code see Cha...
Do you think VB is a good language for AI? I originally did AI using mainly Lisp and C/C++ when performance was needed, but recently have been doing some VB programming. VB has the following advantages: 1. Good debugger (essential!) 2. Good inspector (watch facility) 3. Easy syntax (Intellisense comparable to structure editors of late 8...
If I set a .ascx control's visible attribute to true, what event is called? What method can I create in that control's codebehind to act on this event? Thanks :) ...
I am using the fileupload control in asp.net. I want the browser to only show pictures. I am currently using validation to ensure they only select images but how can I make the browser only search for images? ...
I am trying to write a regular expression string match in vb.net. The condition that I am trying to implement is that the string should contain only alphabets and must contain atleast one letter of both lower and upper case. i.e AAA-fail, aaa-fail, aAaA-pass. The regular expression that I have come up with is "^(([a-z]+[A-Z]+)+|([A-Z]+[...
I wanted to generate digital signature in my asp.net application based on some value like date of birth. what is the way to do that ? i am using vb.net ...
I am new to vb9 and the .NET MVC. I want to build a MVC helper function for which I pass a Entity Framework object and have it build a select. Generally speaking I tried something like this: Public Function RenderSelect(ByVal helper As HtmlHelper, ByVal sSelectName As String, ByVal aItmes As Array, Optional ByVal sTitleKeyName As Strin...
I'm writing an app that sends messages over a network to another PC that processes the message and sends back a reply (e.g. a boolean or some other data). My network communication subs (based on WCF) just give me the ability to send a message to the other PC and process any received messages. The issue is that any response received is ...
I recently saw some VB .NET code as follows: Dim service = ... Try ... service.Close() Finally service = Nothing End Try Does assigning Nothing to service do anything? If it is a garbage collection issue, I am assuming that when "service" went out of scope the referenced object would be garbage collected and the dispose metho...
In one of the WCF tutorials, I saw the followign sample code: Dim service as ...(a WCF service ) try .. service.close() catch ex as Exception() ... service.abort() end try Is this the correct way to ensure that resources (i.e. connections) are released even under error conditions? Thanks for the answers guys! I up...
Hi, I'm trying to populate a treeview from a list of folder path, for example: C:\WINDOWS\addins C:\WINDOWS\AppPatch C:\WINDOWS\AppPatch\MUI C:\WINDOWS\AppPatch\MUI\040C C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MUI C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MUI\0409 with an ouput ...
I need to create a application in vb.net that puts out those cool <> links, which I can prefill with our events and milestones. While I have figured out I need to use DDay.ical.dll to get the events into an ics file, I am not clear about how to get these to publish. I was thinking of using an RSS feed, but that defeats the purpose of usi...
In vb.net (using vs2005), I'd like to see if www.domain.com/myfile.txt exists. Thanks in advance! ...
At a colleague's workplace, a decision is trying to be made about whether to use both languages in the workplace or to standardize on one? There are some VB.Net developers and some C# developers. What advantages or disadvantages would there be to using both or to using one? Edit: To clarify this question, the question is not asking the...
Hi, I have an user control in our library that I need to inherit and make some update to it. The issue that I'm having right now is that I cannot instantiate the new user control directly. I have to call a method in the library that will create and pass an instance of the user control. Please check sample code below. I tried to use cas...
Hello. My understanding about this class is that you should use it when you want to be sure that the Finalizer(destructor) or the class is called, but from a couple of tests I did, it doesn't seem to be true. If it does not make sure that the dispose method is called, is there any other way of doing it? For example, if i want to make sur...
Hi All, I want set a line of text link in rich text box of vb.net. Like for example: I want to know you The word want, I want to set a link word. Can I do that? If can, please help me! Thanks, Sopolin ...