Basically my code is doing what I want it too, except for one small thing, it is adding one to many of something at the end of a combo box.
As you can see by the code below, it is reading from approved.txt and populating a combo box with the entries it finds, the approved.txt file contains one...
LPlates:
Thank you for all the great help. I will be making a couple more posts this evening, still working out a few details on my project, hope to see your input!
-------------------------------------------------------------------------...
How can I set Combo1 so that it auto sizes to the form during form load?
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Only two things are infinite, the universe and human stupidity, and...
Yes. Still doesn't like me :(
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
-...
I use this to lock the app so that nothing else can move above it, but what is the opposite, or basically how do I turn it off? There are times when I need forms to open and then they need to be on top.
result = SetWindowPos(frmMain.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)...
Tried it in a timer, locks up the app. I have read somewhere that these innerhtml calls are hard to use. What am I missing??
I have a WeBrowser named WebMain and a timer named Timer4 here is my code:
In the form load event I have:
Timer4.Enabled = True
Then in Timer4:
Private Sub...
Runtime error "91";
Object variable or With block variable not set
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Programming today is a race between software engineers striving...
Unsure how to use:
WebBrowser1.Document.body.innerHtml = " "
LPlates. In the form load or what?
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Programming today is a race...
How can I turn this:
WebBrowser1.Navigate "file://F:\folder\filename.html"
into the File = App.Path method so I don't have to have a hard coded path. The file will always be located in the same dir as the app
-------------------------------------------------------------------------...
Thx everyone, I am almost there:
The list will contain entries like this:
microsoft.com
No - http://www.
No - /files/mypage.html
The thing I need this to do is look at approved.txt line by line and match each line to ANY part of the string in txtFilter.Text
In other words, if yahoo.com is one...
Thanks LPlates, so if it is slow, what is the best way to acheive this:
File = App.Path & "\approved.txt"
Set textfile = fileobj.OpenTextFile(File)
i = 0
While Not textfile.AtEndOfStream
txt = textfile.ReadLine
Combo1.AddItem txt...
How do I add this reference or what ever it is. I am reading and it said "include the file scripting object" but it does not say how??
-------------------------------------------------------------------------
-------------------------------------------------------------------------...
Have no idea where to put what you are showing me. Can you elaborate?
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Programming today is a race between software engineers striving to...
Sorry, I messed up. Let me explain it like this:
approved.txt will contain root domains like this:
msn.com
yahoo.com
google.com
Here is what I am trying to do, this is pseudo mixed with real code:
Look at the string in txtFilter.txt
Compare it too all entries in approved.txt
If you find any...
I need to look at a text file and see if a specific string that is in a combo box on my form exists.
Pseudo code:
When user drops the combo box choices:
Look at approved.txt (using the App.Path & "\approved.txt" method) to see if what is selected in the combo box exists anywhere in...
Don't see it.
In the StatusBar properties I see, Show Tips, Simple Text and Style.
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Programming today is a race between software engineers...
Is there a way on the form load I can make a status bar text area cover the widest area possible according to resolution of course.
Right now the status bar only crosses have the form.
-------------------------------------------------------------------------...
Also, I just noticed I need to disable the windows key will this is running, otherwise you can just use the start menu to open IE
The other option is to not allow any program to run over top of this app while it is running...
I am on XP Pro and it keeps it out of the task manager, what about XP Home?
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Programming today is a race between software engineers striving...
How can I make my app auto re-open if closed or ended. This is needed because I made a child safe browser for my kids but they could still close it using ctrl-alt-del. Basically I want this app to run and not allow any other access to the machin until it is closed by an admin password...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.