Search Results

Showing results 1 to 40 of 53
Search took 0.03 seconds.
Search: Posts Made By: Comatose ; Forum: VB.NET and child forums
Forum: VB.NET Feb 22nd, 2009
Replies: 4
Views: 2,531
Posted By Comatose
Ah.... You are posting VB.NET code in the VB 4/5/6 Forum.
Forum: VB.NET Feb 16th, 2009
Replies: 2
Solved: Login Page
Views: 336
Posted By Comatose
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
Solved: login form
Views: 566
Posted By Comatose
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
Posted By Comatose
Very good, you can mark this thread as solved.
Forum: VB.NET Feb 5th, 2009
Replies: 7
Views: 1,322
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
ah, yes... I was thinking file.readall :/
Forum: VB.NET Jan 19th, 2009
Replies: 13
Views: 3,328
Posted By Comatose
In his code above, just remove the My.Computer.
Forum: VB.NET Jan 18th, 2009
Replies: 12
Views: 930
Posted By Comatose
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
Posted By Comatose
Clipboard.SetText(TextBox1.SelectedText) :)

if that answers your question, you can mark the thread as solved.
Forum: VB.NET Jan 18th, 2009
Replies: 5
Solved: handle buttons
Views: 1,140
Posted By Comatose
I couldn't agree more.

To answer your question, however: AddHandler :)
Forum: VB.NET Jan 18th, 2009
Replies: 12
Views: 930
Posted By Comatose
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
Posted By Comatose
Very good. I'm glad it's solved.
Forum: VB.NET Jan 16th, 2009
Replies: 11
Views: 1,071
Posted By Comatose
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
Posted By Comatose
Double Click The Menu Item, And Add The Code To The Menu Item
Forum: VB.NET Jan 16th, 2009
Replies: 5
Views: 943
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
try this: Dim d = New StreamReader(fs)
Forum: VB.NET Jan 15th, 2009
Replies: 26
Views: 1,768
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Solved: Find occurance
Views: 1,170
Posted By Comatose
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
Solved: excel vb.net
Views: 562
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
Well, That code works... And Pretty Well.
Forum: VB.NET Jan 8th, 2009
Replies: 19
Views: 1,803
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Solved: code parsing
Views: 6,419
Posted By Comatose
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?
Showing results 1 to 40 of 53

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC