I'm trying to create a website blocker. I have it where it will add a site/ip address to the host file, now I'm working on the part where you'd remove a site from the blocked list(HOSTS). I know that I gotta 1)Read it 2)Replace it 3)Save Here's what I have so far:
Dim FileName As String = "C:Documents and SettingsPC #6My Documentsfda"
Dim read As String = File.ReadAllText(FileName)
Console.WriteLine(read)
I am trying to create a VB.Net windows application that will list out IIS websites from a remote server when the user pushes a button as a means of verifying that a website got installed (from a previous section of the app...that part already works).I have googled all over the place and all I can seem to find is how to create a website or delete one, but not how to create a list.
I am looking for suggestions on how to improve my code or if you can tell me of a better . I am trying to make a program blocker, for example if you open notepad it will close it and give a message. at the moment I am using a timer to monitor I am just wondering is this the best way I left my code below I did have the idea of maybe using threds but I no idea were to start on this.
I made a pop-up blocker in my Visual Basic browser. Here is my code:
WebBrowser1_NewWindow
e.cancel = true
msgbox "Pop-Up Blocked!"
But how can I make it to where the user can choose if they want the pop-up blocker on or off? Also, how can I make it block pop-ups, but still open clicked links in a new window of my browser? Just curious.
How do you make a popup-blocker for a tabbed browser that allows you to see the popup or ignore it.
What i wanna do is make it so when a popup appears,a small form appears with 2 buttons.
button1 allows you to ignore the popup (form dissapears and popup does not show) and button 2 allows u to see the popup (form dissapears and popup opens in new window).
To avoid juggling with PHP for web apps and VB.Net for desktop aps, I'd like to investigate writing web apps in VB.Net.
What are my options? For instance, do I have to use Windows as the OS, .Net as the framework, and VS as the development tool, or is it OK to use Linux + Mono + some other IDE?
My home page contains three Dropdownlist controls, the lists are populated from my database i created ie. (From three tables)- Courses, Grades and Schools.
I want a situation whereby a user clicks on any of the Courses, or the Grades, or any of the Schools from my dropdownlist controls, and selects the search button, the names of the students that took the course, their grades in that course, and their schools should appear in a table form. if its a Grade that is selected, the names of the students with the grade, their courses and their schools should also appear in a table form. And likewise the School.
how would I go about creating log files on my website? With my exception handling, along with creating a log file on the users hdd I want it to upload a log file to my website. Also how would I be able to make the name of the log files the time + date that the error occured so that all logs are seperate in my website directory?
my dream project is to create a vb.net program that will able to input applications and then run it and erase it after a given month/day/time.it will allow you to add applications that you can erase after a period of time or do u have applications that able you to input applications then block/erase in period of time?
I want to write a program that can control port communication in a PC by blocking certain port based on the admins request and also monitor incoming and outgoing network traffic. Can i achieve this using vb.net winsock?
I have a form with a web browser inside it. When the form loads I want to be able to create a .jpg file of the whole website displayed in the browser. Alternatively, can you show me how to display the web browser site in a picture box?
I have a thesis project. it is composed of a webpage created on php and a system using vb.net 2008. As of now , they are both connected to the same database. I am wondering if it is possible that if i packaged the system and live the website, will still be connected with one database?
I would like to create a VB .Net Windows form application which logs onto a website and then retrieves some data. Currently when i navigate to the website it presents a dialog box to enter my details into. So in short how could i do this, what namespace would i need to look at?
I was trying to use HtmlDocument and a given url to pull in the html contents of a website to use. However there is no constructor for HtmlDocument and it's Url property is readonly. Is there any way to create an object that contains the entire DOM for a given url?
I have a probleam to create new website in visual studio 2005. The error which i got is You need to configure manually configure this site for Asp.net 2.0 in order for your site to run correctly.. Please show me step by step how to configure this site in visual studio 2005..
A few more details. I need to programmatically (Winforms, VB.NET) check if a site is in the Allowed Sites list of the IE Pop-Up Blocker (IE 7 and 8 and Windows XP, Vista and 7) and if not, add it. The application is fully trusted and I don't want to disable the Pop-Up blocker entirely. To clarify some things, this is for a web-automation application with several users across 3 countries. I want to avoid receiving tons of emails and explaining each time how to add the website to the Allowed Sites manually. Also, some of the users have Google Toolbar installed, which also has a Popup Blocker creating trouble to my app. Can this also be done programmatically?
I'm trying to create a shortcut for my program that sends the user to the world map of a website with the press of a button, but it isn't working. Here's my code:
Private Sub Game_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Game.KeyDown If e.KeyCode = Keys.M Then Game.Navigate("http:fallensword.com/index.php?cmd=world") End If End Sub
how do I create a label that when clicked by the user, it will open a website using the default browser. I have seen the control LinkLabel but I do not know how it works or how to use it.
What Im making is like a face book and tagged login from my app
1. I have Combobox with 3 urls in there ( Facebook.com Tagged.com and Bebo.com ) 2. I have a Form2 with webbrowser 3. I have a Button when clicked it should open up my form 2 and preview of the website which I selected in my combobox in form1
All I'm trying to do is when I select lets say facebook in my form 1 and click load it should open up my form 2 with facebook website in it.[code]Now when I click my button in form 1 it will load Form2 ( named Explorer1) but my form2 is not showing me facebook or tagged page for some reason
im trying to make a popup blocker type message box that pops up when a popup tries to load a page, and it asks The page [URL]is trying to open,open in a new tab?
(label) No (button) Yes (button)
how would i make a menu appear when i click somwhere on the page,how would i make it recognise a picture, and be able to copy it to a location on the local drive?
i'm creating a website that allows people to upload images to the website in a folder called images on the Site. But I don't know how to upload a file and I'v searched everywhere Please Note: In this Website were not Using the asp:fileupload, were developing our own interface