Forum: VB.NET Feb 22nd, 2009 |
| Replies: 4 Views: 2,531 Ah.... You are posting VB.NET code in the VB 4/5/6 Forum. |
Forum: VB.NET Feb 16th, 2009 |
| Replies: 2 Views: 336 I'm not sure how using session to store the invalid attempt count works, but it's sounding like a DoS waiting to happen. What if I (not legit user) want to stop you (legit user) from accessing your... |
Forum: VB.NET Feb 6th, 2009 |
| Replies: 3 Views: 566 By the beard of Zeus, I'm guessing it doesn't know what kind of database your .xsd is..... how was it made? |
Forum: VB.NET Feb 6th, 2009 |
| Replies: 7 Views: 1,322 Very good, you can mark this thread as solved. |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 7 Views: 1,322 Alright, attach your project and database into a zip file, so I can get a first hand look at this thing. |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 7 Views: 1,322 I don't know enough about the entities in your database to help you here. Your SQL query string, has a "WHERE" clause, with no condition! You need to put someting like:
cmd = New... |
Forum: VB.NET Jan 22nd, 2009 |
| Replies: 3 Views: 599 Yup. If you recompile it on a 64-bit vista platform, it should work.... other than that, good luck. |
Forum: VB.NET Jan 19th, 2009 |
| Replies: 13 Views: 3,328 ah, yes... I was thinking file.readall :/ |
Forum: VB.NET Jan 19th, 2009 |
| Replies: 13 Views: 3,328 In his code above, just remove the My.Computer. |
Forum: VB.NET Jan 18th, 2009 |
| Replies: 12 Views: 930 The same way I did it... just remove the textbox and use buttons instead..... |
Forum: VB.NET Jan 18th, 2009 |
| Replies: 11 Views: 1,071 Clipboard.SetText(TextBox1.SelectedText) :)
if that answers your question, you can mark the thread as solved. |
Forum: VB.NET Jan 18th, 2009 |
| Replies: 5 Views: 1,140 I couldn't agree more.
To answer your question, however: AddHandler :) |
Forum: VB.NET Jan 18th, 2009 |
| Replies: 12 Views: 930 I'm not going to build the calculator for you, but here is a project that basically does what you want, but only adds up the sum. First, type a number in the bottom box, and then click the button. ... |
Forum: VB.NET Jan 17th, 2009 |
| Replies: 11 Views: 1,071 Very good. I'm glad it's solved. |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 11 Views: 1,071 oh, duh... read that all wrong. Add an OpenFileDialog, and a SaveFileDialog to the form. Double click the menu item for Open, and put:
OpenFileDialog1.ShowDialog()... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 11 Views: 1,071 Double Click The Menu Item, And Add The Code To The Menu Item |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 5 Views: 943 I've been working on this with sendmessage, and to be honest, I've been having a hell of a time with using sendmessage in .NET. I can write one in less than 2 minutes that sends a minimize message... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 26 Views: 1,768 I hate to tell you, but that too loops through all the lines. I guess I'm confused on what you want to do.... (at least until now). I've been under the impression you wanted to open a file, find... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 Dim FileLines() As String = File.ReadAllLines("c:\output.txt")
Dim SavedLines As New ArrayList
For I = 0 To FileLines.Count - 1
If InStr(FileLines(I), "48") <> 0 Then... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 try this: Dim d = New StreamReader(fs) |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 Sorry about that, up at the very top you need to add imports system.io (just above "public class"). |
Forum: VB.NET Jan 14th, 2009 |
| Replies: 2 Views: 1,522 Eah, I'm not sure how long SendWait waits, but when I did this type of thing in visual basic 6, I had to add sleeps after every sendkeys event... I also had to add doevents (app.doevents). Even... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 26 Views: 1,768 No, No. Imagine something like...
dim curLine as string
dim oldLine as string
dim bFlag as boolean
Dim SavedLines As New Stack
dim fs = New FileStream("file.txt",FileMode.Open,FileAccess.Read)... |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 26 Views: 1,768 I have an idea (was gonna write the code myself, but your project is a little full-fledged already with the textboxes and all). As you read in a new line from the file, basically make a variable... |
Forum: VB.NET Jan 10th, 2009 |
| Replies: 5 Views: 1,170 Not really. That code is not only functional, but also makes use of some techniques to reduce the load on the processor and make the program run faster.... so, truthfully, that code is about as good... |
Forum: VB.NET Jan 9th, 2009 |
| Replies: 3 Views: 562 I Think Teme64's Right. Once Program copy 1 opens the file, I think the system locks it. I guess a solution around this, would be to have the program download a local copy, and work with it, then... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,803 No No, It was faulty code :$:
dim urls as new List(of string)()
dim I as integer
urls = PopulateUrlList()
for I = 0 to urls.count -1 ' maybe i = 1 to urls.count
... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,803 That code is fantastic. The only thing that I would mention about it... is that you are using the function to work with your form. On a small scale project, this is fine (and I've seen it used on... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,803 You would have to do something entirely different. Firefox stores it's URL's in files.... I believe under something like "c:\documents and settings\%username%\Application... |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,803 Well, That code works... And Pretty Well. |
Forum: VB.NET Jan 8th, 2009 |
| Replies: 19 Views: 1,803 What's interesting here, is that both methods are pretty great..... but neither one of them gets the typed URL's of a browser other than IE. What about getting the history of Firefox.... Opera....... |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,654 Right, it returns an arraylist. So you would call it from the button, then assign the return value to an arraylist, and loop through it.
dim something as new arraylist
something = GetInstalled()... |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,654 I know why you did it, and were absolutely right... I just wanted to make the distinction for him, so that he understands the concepts. I would have suggested the same code mod you did ;) |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,654 You shouldn't modify the function. The concept of a function, is that you shouldn't make them interact with the form. The idea of a function is that a function can be modular.... what if in the... |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 22 Views: 1,654 C# IS .net. It's just a C style usage of it.
Public Function GetInstalled()
Dim uninstallKey As String
Dim rk As RegistryKey
Dim sk As RegistryKey
Dim skName... |
Forum: VB.NET Jan 2nd, 2009 |
| Replies: 2 Views: 874 Set AutoCompleteSource to ListItems, then set AutoCompleteMode to whichever one you like. I prefer Suggest, but you can check them all to see which one is ideal for you. |
Forum: VB.NET Jan 2nd, 2009 |
| Replies: 3 Views: 550 just for kicks and laughs, let's try to replace the (or just below the line of) 'msgbox line with Application.Doevents(). I've noticed that sometimes when a msgbox makes code work that doesn't seem... |
Forum: VB.NET Jan 1st, 2009 |
| Replies: 1 Views: 629 Well.... I don't see when the destructor would be called.... that is, does a second new mean a call to the first destructor? I don't think so... because destruction happens when the object is set to... |
Forum: VB.NET Oct 7th, 2006 |
| Replies: 10 Views: 10,185 A Timer is a control, just like a button, or an option button or some other fun little tool.... here is a little article: http://www.vbdotnetheaven.com/Code/Jun2003/2084.asp You can have it run a... |
Forum: VB.NET Sep 20th, 2006 |
| Replies: 4 Views: 6,419 Which version of VB are you using firstly? Is it VB6? Also, what is webform.vb? Is it a project file that you made in visual basic? |