15,912,400 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Bart de Lange (Top 56 by date)
Bart de Lange
4-Mar-14 11:14am
View
Thank you very much this solved it
Bart de Lange
4-Mar-14 10:44am
View
well i need the launcher to check if a newer version is available thats why i'm putting a file in the update (for exmple update.03-04-2014.txt) and when there is a newer update(so the file update[newer date then local file].txt) the launcher wil download the update. but how do i check if that file has a newer date in it(normaly with other languages you could use update.([z0-9-]+).txt so thats why i thought of using regular expressions)
Bart de Lange
4-Mar-14 10:30am
View
yes please(so i can edit it)
Bart de Lange
9-Jun-13 7:11am
View
OK i know a little more it has to do something with the web credentials and the basic authentication/basic realm
and intercepting a 401 HTTP status code
Bart de Lange
9-Jun-13 5:48am
View
OK i gave it another try to look what the .htpasswd file does
and here it is
it sends a login request to the browser and normally the browser then shows the user a login pop up(like when you trying to login on your routers web page where you can define your routers settings) this pop up is made by the browser itself because it is a different pop up if you are using IE or Google Chrome.
so when you're trying to access a site which is blocked by a .htpasswd file Apache sends a login request and the browser then responds with a pop up to let the user login to the site
Kind Regards,
Bart de Lange
P.S. Sorry to bumb this question but i really need to know this because its the only thing that my browser is not capable of
(and downloading files from example download.aspx?file=.... or download.php?file=....)
Bart de Lange
24-Apr-13 15:52pm
View
Yes the popup is cleint side but the htpassws file is server side.
the server(apache or whatever) is sending something(i want to know what and how??) to the browser that makes the browser opens up a popu screen with a username and a password field and then the browser sends the info back to the server and he chrcks if it is correct
Bart de Lange
24-Apr-13 15:40pm
View
Yes apache
I made a few websites in the past an a couple of them used the htpasswd file
So i thougt it is website based
But if you visit such a site with the new win 8 style ie than you get a different popup then if you visit it with chrome or firefox
So because of that i know that it is not. Website based but a browser based popup
And i want to know how to handle that because a want to customize it(thats why i also dont have a code)
Bart de Lange
27-Mar-13 9:50am
View
The URLdownloadToFile is for ini but i need to download a file from a website given on a download request from my webbrowser control which is running on a webkit engine
and that doesn't work here
Bart de Lange
26-Mar-13 11:11am
View
Ok ill post my whole code for the dowoader and for the request handler
Or i could email you the app source and then you can debug it and see the problem yourself if you download a email atachment or simply a project from codeproject self
Bart de Lange
26-Mar-13 9:13am
View
But why wheb i download a file (a word .doc for exemple) and if i change the file extension to txt it shows me exactly the same as the source of the website is showing me
Bart de Lange
26-Mar-13 2:46am
View
Well if my webbrowser requests a downloadeble link like www.some-url.com/download.php?file=somefile.txt then it downloads the download.php insteat of somefile.txt
But it saves it as somefile.txt
Bart de Lange
25-Mar-13 14:58pm
View
It's a webbrowser i've made in vb.net and openwebkitsharp
Now i've made a custom downloader that shows up when my browser requests a downloadable link
Bart de Lange
25-Mar-13 14:53pm
View
Can you give me an example of this,
Becaus i don't understand the code
Bart de Lange
25-Mar-13 14:42pm
View
Deleted
It's a webbrowser i've made in vb.net and openwebkitsharp
Now i've made a custom downloader that shows up when my browser requests a downloadable link
Bart de Lange
25-Mar-13 2:44am
View
A file downloader for a web browser i've made
Vb.net and winforms (tags)
And no it issnt this folder but the downloads folder,
This is just the way i'm downloading a file.
(I dont have acces to my pc at the moment
But i'm gettimg the downloads folder with a function)
Bart de Lange
4-Mar-13 2:33am
View
Simply the httpclient function and httprequest
So its prety basic
Bart de Lange
4-Mar-13 2:19am
View
For example
http://www.codeproject.com/Questions/555756/Notplusworkingplusmodepluswhenplusnotplusdebugging
Or
http://www.codeproject.com/Questions/555181/Downloaderplusforplusemailplusattachmentsplusandpl
Bart de Lange
3-Mar-13 5:18am
View
it works but when i,m running it for about 5 mins then click the some button or another control or action(its a web browser)
then it shows it
Bart de Lange
3-Mar-13 4:54am
View
yes im just clicking the exe in the bin/debug folder from visual studio
Bart de Lange
2-Mar-13 5:48am
View
How can i emed it than because its a stand alone app
I try to make an embeded downloadmanager for my browser not a stand alone one
Bart de Lange
1-Mar-13 14:30pm
View
The error is when i open for example a word doc file that i've downloade from my gmail then it says incorect xml file and when i download a sourcecode from codeproject It says invalid archive when i open it
Bart de Lange
1-Mar-13 10:38am
View
btw the downloader openwebkitsharp is using is "Mydownloader" from codeproject
Bart de Lange
23-Feb-13 2:16am
View
Thank for your help
Bart de Lange
21-Feb-13 5:47am
View
Ok i found it:
i had made this function after another one the handled the downloads and history
but that on added this to the my.settings
for downloads only the file name and for history only the url
my guess is that my.settings.downloads and my.settings.history contains the strings of the previous function and now tried t access them with the new function which doesn't work so i think after restarting visual studio those values somehow resetted because those were blank in settings tab of my project
or is this imposible
Bart de Lange
20-Feb-13 17:55pm
View
That was the point it throws the error
But i cant find anny variable its just some stuf like
Browseit.mainwin.load(sender event)
And a lot other things but no variables
How can i get them??
Bart de Lange
20-Feb-13 15:47pm
View
Oh wait .....
Of you restart visual studio
Does visual studio reset al you my.settings values if you are debugging???
Because after i restarted it then debugged it twice it worked
Bart de Lange
20-Feb-13 15:39pm
View
And how do you mean if not me.disignmode
Should it be
If not me.designmode
Public sub mainwin_load......
Or public sub mainwin_load.....
If not me.designmode then .....
Bart de Lange
20-Feb-13 15:35pm
View
What do you mean
Ofcourse it changes becouse it adds a line to the specialized stringcolection
But the problem was that each time i debugged my app it instandly gave me the error
Soo i wasn't able to navigate to a website so it didn't add any value
But now somehow i could lauch the app and it didn't give me an error and it stil doesn't after several try's
Bart de Lange
20-Feb-13 14:03pm
View
thanks for your time anyway
Bart de Lange
20-Feb-13 13:49pm
View
ive added an example string which is: Google|www.google.com|20-2-2013 19:30:40
so it does contain the right characters
Bart de Lange
20-Feb-13 13:38pm
View
this line
listViewItem.SubItems.Add(hisitm_Array(2))
but if i replace it with this
listViewItem.SubItems.Add("hello CodeProject")
it works just fine
Bart de Lange
12-Feb-13 12:50pm
View
it still does'nt work ive tried this
My.Computer.Registry.ClassesRoot.CreateSubKey("BartHTML").SetValue("", Application.ExecutablePath & "%1", Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.CurrentUser.DeleteSubKey("Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice")
My.Computer.Registry.CurrentUser.DeleteSubKey("Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice")
My.Computer.Registry.CurrentUser.DeleteSubKey("Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice")
My.Computer.Registry.CurrentUser.DeleteSubKey("Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice")
My.Computer.Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").SetValue("", Application.ExecutablePath, Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice").SetValue("", Application.ExecutablePath, Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice").SetValue("", Application.ExecutablePath & "%1", Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice").SetValue("", Application.ExecutablePath & "%1", Microsoft.Win32.RegistryValueKind.String)
Bart de Lange
11-Feb-13 15:53pm
View
I'm going to test this,
This is somewhat the same as i can do with the code i entered
But i didn't know the right regkey that does the "thing"
So i thought the easiest way was to convert the code an just copy/paste it
But now i know the regkey its just easier
Thanks
Bart de Lange
11-Feb-13 15:41pm
View
Ok,
With this code its posible that when i click a link in a program like Word,
it opens my webbrowser and navigates to the webpage in the link.
With another code i manager to ket this work:
I have a file which is test.html and when i double click it,
it opens my webbrowser and shows the file as a webpage,
I also want to set my browser as the full default browser so it does work with a link in a program to a site
Bart de Lange
11-Feb-13 13:33pm
View
i meant when i have a .html (for example test.html) and i open it it opens in my webbrowser
Bart de Lange
11-Feb-13 13:21pm
View
i managed to get it work with .html file but when i open a program and the click on a link it isn't working
Bart de Lange
11-Feb-13 13:20pm
View
sorry i didn't say i was using Visual Studio 2012 s i cant do the first 2
and its not a project or file its just the code i wrote
Bart de Lange
8-Feb-13 1:46am
View
But the link doesmt contain any help.
just som info about what you can do with the tabcontrol
Bart de Lange
8-Feb-13 1:43am
View
Because i already did and i've got this back:
Hello, Bart de Lange
We're sorry for the inconvinience
Please check this link: link
(cant give you only for those who brougt it)
Best regards,
Devcomponents
Ps:
Ive got the link but im not allowed to give it to you
Bart de Lange
5-Feb-13 1:23am
View
Ok. With the dotnetbar supertabcontrol you can hav diferent tabpage size ( more than what you can achief with itemsize)
And with a webbrowser you can add a icon to the tabpage( and not with a 20 line code just 1) and a simple close button wich you can put on lets say 5 of the 10 tabpages or 1 of the 10 so just on the ones you want(again like google chrome if you pinned their tabs)
And the dotnetbar supports the metroappform(no titlebar but a ribboncontrol as titlebar) all in all its just more you van do than with the standard visual studio things
Bart de Lange
4-Feb-13 5:01am
View
I've searched their documantairy but couldn't find anything
Bart de Lange
4-Feb-13 4:01am
View
but the controls are very much the same as the winform tabcontrol so..
Bart de Lange
4-Feb-13 3:45am
View
and you can edit the size of each tabcontrol tab on its one not for all the pages at once
Bart de Lange
4-Feb-13 3:41am
View
or am i'm doing something wrong then with the tabcontrol of codeproject
Bart de Lange
4-Feb-13 3:31am
View
1. to let the users pin their tabs so it opens (they have pin it) when app close and the restarts(like chrome)
2. sorry i don't mentioned it it is the supertabcontrol from devcomponents.dotnetbar
Bart de Lange
29-Jan-13 6:45am
View
When im back from school i'l send you the code for the newtab i use
Bart de Lange
29-Jan-13 6:41am
View
You know how chrome looks like???
Im trying to imitate that with 2 forms one with only the tabcontrol(form1.vb)
And the other containing the url bar, back button, forward, search, openwebkitsharp webkitbrowser, a favorits bar and a settings bar(tab.vb).
Ive done it that way because its easyer for me to handle the events and such
Now i want to create a tabpage that functions as a button
So that it creates a new tab before the "button"
How do i do that.
I dont understand how to do it with a pannel
I hope ive explained it better this way
Bart de Lange
29-Jan-13 4:21am
View
When i can i sent you one,
how do i do that??
Bart de Lange
29-Jan-13 2:34am
View
Pic better ????
Bart de Lange
29-Jan-13 1:48am
View
Look the vid i send u a couple of minutes/parts then you see what i'm trying to manage
Bart de Lange
29-Jan-13 1:42am
View
I dont know what you mean
I have this
(Form1 )
(Tabcontrol)
((Tab.vb. ))
The tab.vb is created as control in runtime
Because it contains events and
the disign to imitate a google Chrome kind of webbrowser
This is the vid i used for the disign
http://www.youtube.com/watch?v=z_xA9AGet_U
So how do i do that
Bart de Lange
29-Jan-13 1:06am
View
i've updated the question
Bart de Lange
29-Jan-13 1:06am
View
To use a panel is no option because my child form contains a webkit browser a searchbar back button and a lot more so that's to much to design with code for me and the others are also no option
i could send you a picture if i'd know how to do that
Bart de Lange
27-Jan-13 10:42am
View
thanks it works
Bart de Lange
27-Jan-13 10:17am
View
and how do i put a breakpoint to a line??
Bart de Lange
27-Jan-13 10:13am
View
no it does not contain any string in my.settings.savedlinks but it gives the error
Show More