1,372 Posted Topics
Re: I can make it so that i can't be moved..... but I'm struggling with the removal of the gay line.... I'll keep working on it though. ![]() | |
Re: Hmn, you should be able to just set the reference to the filename.... so in an anchor: [HTML]<A HREF="http://www.yourserver.com/yourfile.zip">Your File</A>[/HTML] that's if you want to link to it.... to force it, you may have to use some javascript. Something like: [HTML]<BODY onLoad="window.location='http://www.yourserver.com/yourfile.zip';">[/HTML] | |
Re: Should Be Able To get you started with reading data from the parallel port using VB. I hope this helps. [url]http://www.aaroncake.net/electronics/vblpt.htm[/url] Another Option, should it be a tad easier (costs a little), is to use an ocx control (activex) to simplify this entire process. This can be found at: [url]http://www.scientificcomponent.com/portcontroller.htm?referrer=google[/url] | |
Re: One problem that a lot of people don't understand is that an if statement has 2 different syntax. The only time you have to "end if" an if statement, is when the if statement is on more than 1 line (or if it does more than one thing). So for … | |
Re: Something to note when using a richtextbox, is the method "loadfile", which will load a .txt file (or an RTF File... Actually, it will load any file, but you might want to stick to .txt and rtf with it). You can do it that way, which is real easy, but … | |
Re: I'm sure that you will first have to close the database. If you sift around for the methods of the control, there should be one for disconnecting or closing the connection to the database. Another option is to make the control a control array, when you are done with that … | |
Re: Not to my knowledge. However, if you have free compiler or something like that, and distribute it then you can write the C code out to a file and compile it, but actually doing good stuff like inline asm in C with VB and C, probably not. Something else to … | |
Re: could You Elaborate Just a little more on exactly what you are trying to get done here? You want to store the passwords in a textfile (or database) with the username and encrypted password? | |
Re: I think you can do something crazy (I do this) by just pushing values onto inc, such as: [CODE] push(@INC, '.'); [/CODE] Which adds the current directory (.) to the INC (search path) of Perl. You should be able to any path, but I haven't tried. I know . works, … | |
Re: Doevents will allow windows to do things, such as repaint the progress bar. The timer control makes things fire at a given interval, true, and maybe the thunderdll's will get around to it between interval events, but doevents a good way to make those events happen. | |
Re: I just threw this code together, and it works in FireFox 1.5.0.3. and I just tested it with IE 6.0.2800.1106..... eah, it's long. Anyway, you should be able to extract the function from the HTML page, and use it as you will. I've attached the HTML so you can see … ![]() | |
| |
Re: You should be able to use createobject, and create the object in question.... for example: [CODE]dim wsh Set wsh = CreateObject("WScript.Shell") wsh.run "c:\windows\notepad.exe", 1, 0[/CODE] Which should create the WScript Shell object, and then launch it's "run" method to spawn notepad... | |
Re: Tayspen: Does that save the settings after you reboot? | |
Re: Yeah, If you could help me with a clearer picture... or even zip and attach the project so we can see what you are doing, that would be outstanding! | |
Re: I suppose you could do a [CODE] somevariable = window.location; [/CODE] and then do a substr or substring on the url, and see if it's in there. There might be an easier way, but that's probably how I'd do it. | |
Re: [CODE] dim wsh set wsh = createobject("WScript.Shell") login_name = wsh.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Logon User Name") src = "C:\documents and settings\" & login_name & "\Favorites" [/CODE] | |
Re: Yeah, I'm not sure that the batch file is properly reading the data. A Simple test here (test.bat): [CODE]@echo off echo %1 echo %2[/CODE] and then the command line [INLINECODE]test.bat testing1 test2[/INLINECODE] produce the result of both parameters passed. Are you trying just to have the .bat file run, or … | |
Re: A Timer is a control, just like a button, or an option button or some other fun little tool.... here is a little article: [url]http://www.vbdotnetheaven.com/Code/Jun2003/2084.asp[/url] You can have it run a function at set intervals.... ![]() | |
![]() | Re: That's a prefect solution. There are a ton of langauges, but let's face it, there are BASICALLY 2 kinds. Basic, real. Basic is a fairly simple, and easy to figure out language, if, end if, etc. Then the real style (you know, C, C++, Perl, Java, Javascript, etc) with the … |
Re: You can disable the shutdown with this: click start click run type shutdown /a But I don't think this is the solution to your problem. This will stop you from being shutdown, but I would be willing to bet that there is some nasty virus that's making this happen (Sasser.F). … | |
Re: [url]http://www.daniweb.com/tutorials/tutorial51307.html[/url] [url]http://www.daniweb.com/tutorials/tutorial51315.html[/url] It's for word, but the concept and idea is the same. | |
Re: [CODE] Private Sub Form_Load() Text1.text = time for x = 1 to 10000 Print "Frost" next Text2.text = time Timer1.Interval = 1 Label1.Caption = "" End Sub Private Sub Timer1_Timer() Label1.Caption = Time End Sub [/CODE] | |
Re: Right, Paul had the right answer. You'll also find (which may be a better solution, since the .refresh method doesn't give windows a chance to update anything other than the textbox) that the doevents function will also work. Doevents, unlike .refresh, gives your app a chance to process events passed … | |
Re: *Wipes His Forehead* I'll get back to you on this one. | |
Re: It's VERY possible that it's NOT from a website. There could be a program of some kind that is making these popup's happen. You should download microsoft's anti-spyware program from microsoft's web page. This isn't the best software for fighting malware, but it helps a lot. There is also hijack … | |
Re: Do you want a batch file, or a VB program? Batch files wait for a program to finish before moving to the next line, but I'm not so sure you can use sendkeys, or anything like that with a batch file..... give me some more info, and I'll see what … | |
Re: send me the project....I'll check out the code for ya. | |
Re: You can access all the files in a directory (you can get a directory list) like so: [CODE]' /* Naturally, Change This For Your Path and Files */ retval = dir("c:\windows\*.doc") while retval <> "" msgbox retval retval = dir wend[/CODE] Granted, that will simply pop up an annoying msgbox … | |
Re: well, you can give the file some obscure name, but then anybody who is on the curious side (like myself) will find it..... you can encrypt it, using a control like the blowfish control, or you can make your own cipher.... but any time the password file is accessible it's … | |
Re: Are you talking about setting processes priority (such as high medium and low) in windows? | |
Re: That's Because you have to tell EOF the file handle that you want it to check for EOF of.... for example: [CODE]open "c:\autoexec.bat" for input as #1 ' / * do this until eof returns true on handle 1 */ do until eof(1) ' /* Read Data From File */ … | |
Re: I would say so, but I'm biased to Perl/CGI. It ultimately depends on what you are trying to do. When they click submit, what exactly do you want to happen? For some reason, these aren't listed under Tutorials (where they should be) but, nevertheless, I have written a few tutorials … | |
Re: Right, if you want to write a setup, you need to know that older windows systems don't come with the VB Run time files (OR any of the dependency files that you decide to include in your project). On newer windows systems (2k and up) VB Run times come along … | |
Re: How exactly are you drawing the lines? I would suggest looking into API calls on GDI, to speed up your graphic drawing. | |
Re: If I'm not mistaken, though, harry5341, the mscomm control was obsoleted come (what was it, 2k?) when they removed the API calls for in and out calls of the port..... meaning that it won't work in windows 2k and above. If you are in 98 though, it should work fine. | |
Re: [url]http://www.daniweb.com/techtalkforums/thread41057.html[/url] is also a good tutorial on ADO. You should do a lot of research into databases, and interfacing Databases with VB before undertaking such a large-scale app.... because there is a lot to know about it. | |
Re: You should check out the sticky post at the top of this forum: [url]http://www.daniweb.com/techtalkforums/thread41057.html[/url], that will give you a good foot hold on dealing with databases from within VB | |
Re: [CODE] Public Function B2D(BinVal As String) As String Dim iVal#, temp#, i%, Length% Length = Len(BinVal) For i = 0 To Length - 1 temp = CInt(Mid(BinVal, Length - i, 1)) iVal = iVal + (temp * (2 ^ i)) Next i B2D = iVal End Function [/CODE] | |
Re: You should start off reading a tutorial about it.... here is a good site to start at: [url]http://www.vbtutor.net/vbtutor.html[/url] That should help to give you a general idea of what is going on, and help you to be able to at least start getting involved in VB. Once you have a … | |
Re: [url]http://www.daniweb.com/techtalkforums/thread41057.html[/url] | |
Re: in a module [CODE] Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long [/CODE] then in your button or whatever [CODE] retval = shellexecute(0&, "whatever.pps", … | |
Re: I have a feeling you are going to need to use API calls, or possibly sendkeys. If you post the code or attach the project, I'll take a look at it, and see if I can't find a way to accomplish it. | |
Re: [QUOTE=Tom Pilk]helllooooooo? Does anyone know the answer to this mysterious and magical question? I have tried several programs to do this but none seem to work!!! Is there just a few lines of code I can use? Any ideas? Thanks for your time even if you don't know the answer, … | |
| |
Re: If I understand what you are asking, you are wanting a program to display a list of all the .dll files currently loaded and in use by each program (this really isn't the forum for that, unless of course you want VB code to do that.)? I wrote a utility … | |
Re: You'll find VB to be pretty slow doing this too, unless you go overboard on speed optimization of strings. If you had it using a database (the dictionary as a database) then you could have it return all words that are starting with the first alpha letter after a space … ![]() | |
Re: The question I have is, are you actually trying to make a .swf (shock wave flash) file, or are you just trying to make VB MIMIC (act like) a .swf file? |
The End.