Pop-Ups - User Can Choose If They Want The Pop-up Blocker On Or Off?

Nov 2, 2010

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.

View 9 Replies


ADVERTISEMENT

Script Blocker & Popup Blocker?

Oct 22, 2007

I want a script blocker for web browser component and a popup blocker.

View 2 Replies

Allow User Select The Sign Name From A Combo Box If User Choose?

Jan 18, 2011

Write an application that tests the user�s knowledge of road signs. The application should display a random sign image and ask the user to select the sign name from a Combobox.

View 12 Replies

User To Choose Save Name And Area?

Apr 7, 2011

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'Creates a string that holds the path to your file.
'this path uses the Special Dir .MyDocuments
'so on my computer LogPath = "C:UsersTechNoHickDocuments"
'on your computer LogPath might = "C:UsersKirbyDocuments"
Dim LogPath As String = String.Format("{0} est", My.Computer.FileSystem.SpecialDirectories.MyDocuments)
Dim FileName As String = "test.txt"

[Code]...

I am using visual basic 2010 express and would like to know how i can use a text box of sorts or windows explorer function to allow a user to save a file to a location of their choosing.At the moment a folder and .txt file is created in the mydocuments folder of the user's computer using this code

View 2 Replies

Lets A User Browse And Choose A Folder?

Nov 8, 2011

Basically I need to make a program that lets a user browse and choose a folder, then I need a box that the user can then select the files to work with, then with the selected files I need to put them into a zip file. I'm trying to use a list view box but having all kinds of problems using the data in it.

View 2 Replies

Let The User Choose A Multiple Amount Of Car Parts?

Jul 10, 2011

i am currently developing a small basic program that will let the user choose a multiple amount of car parts and it will add it up and display a quote at the end.

View 7 Replies

Let The User Choose A Time With The Numeric Stepper?

Nov 12, 2010

I have an application that, when I finish it, will generate a graph of data drawn from a My SQL Database. It's going to be a simple time graph, with time on the bottom and a few stuff on the y axis.What I want is for the user to be able to enter the date. I would like it to be like a numeric stepper. Before I had two numeric steppers in the form but I decided one would be best.The idea was it would be like this: mm:hh [UP/DOWN ARROWS HERE]I saw one that was in use in an actual program. It had it so when you clicked the minutes, it selected the minutes and you could change them. The you could select the hours and change them. How would I do this?

View 2 Replies

MDI - Childforms - Application - User Can Choose Which Modul He Wants To Use

Oct 4, 2010

Here is a simplified hierarchy of a application I want to create:

1. Mainform - here should be a navigation pane, where a user can choose which modul he wants to use.

2. Childform Reports, Childform Maintenance, Childform To Do, Childform Management, ... - depending on which modul of the program the user wants to work with, a proper childform will appear as the main working part of the application

3. Childform CostReport, Childform TurnoverReport, Childform EmployeesReport, ... - if user wants to work with Childform Reports (chosen in 2. paragraph) he can work with one of these childforms.

I wanted to do this with MDI childforms, but visual basic keeps telling me that a form can be a MDI container only as a toplevel, which Childform Reports isn't. So i can make the program till 2nd paragraph but when i want to make the 3rd, its a problem.

I put the error here: "Top-level style of a parented control cannot be changed.

Parameter name: value"

Is there a workaround?

Maybe i could use TabControl for the 3rd paragraph, but its not that convient, since I want to use more "tabs" or forms...

View 9 Replies

Publish My App Where User Can Choose Location To Install It?

Aug 14, 2009

I am using VB Express 2008. Im jus't wondering is there any way I can publish my app where the user can choose the location to install it?

View 1 Replies

User Can Choose Excel Cells To Read

Oct 5, 2009

I want the people using my program to choose their own cell to read. I will have 2 textboxes (txtRow and txtColumn). They will have to click "read" to read from excel (but I will not open MS excel) and the answer will show in a message box. This is what I have done..

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click
Dim conn As New OleDbConnection("Data Source= D:LeeABC.xls ;Provider=Microsoft.ACE.OLEDB.12.0; Extended Properties=Excel 12.0;")
Dim da As New OleDbDataAdapter("Select * from [Sheet1$]", conn)
Dim dt As New DataTable
Dim Row1 As Single
Dim Column1 As Single
txtRow.Text = Row1
txtColumn.Text = Column1
da.Fill(dt)
MsgBox(mycell)
End Sub

View 2 Replies

VS 2005 Choose Randomly From User List?

May 18, 2010

I'm relearning VB.net just for fun, so consider me new at this. I'm trying to write a program where the user can input a list of names or numbers, and the program will randomly pick one of those names or numbers. So far, I can get it to randomly generate numbers based on what I put in the code, but I don't know what I should use for the user to input the data, and how to code it so that the program will pick from that data.

View 3 Replies

Brings Up A Form With Some Radio Buttons For User To Choose

Nov 20, 2009

I've written a program that brings up a form with some radio buttons for the user to choose.The form is setup by a sub in module1 (called Type2Q, shown below). For some reason, often radiobutton1 is checked when the question appears.I specifically set checked to false since I did not want this to happen. [code]

View 3 Replies

Allowing User To Choose Color For Form Background

Jul 31, 2009

How do I give the user a color chooser for the background of a form or anything else? I would like to be able to give him all colors in vb.net.

View 2 Replies

DialogBox - Enable User To Choose Folder Name And Save It

Jan 28, 2010

I want to have a dialog box like SaveFileDialog that will enable the user to choose a folder name and the save it. How I can achieve this?

View 5 Replies

Display Dialog With List Of Web Colors For User To Choose?

Jun 5, 2011

How can I display a color dialog with a list of known web colors for the user to choose?
E.g.
black
white
dimgray
gray
darkgray
silver
etc.
I need to display ALL web colors

View 1 Replies

How To Create A Browsefolderdialog - Popup To The User And Let Them Choose A Folder

Aug 19, 2010

I am going to show you how to create a browsefolderdialog. All this does it popup to the user and let them choose a folder.

For this you need:
1 Button
1 Textbox

Double click your button and add in the

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim BrowseFolder As New FolderBrowserDialog

[CODE]........

This sets your textbox1.text to what ever folder is selected. After that you can do whatever you want with your selected folder. This is how it will work when you are done: [URL]

View 3 Replies

Io - Allow User To Choose Directory To Save Multiple Files

May 26, 2012

I am needing to allow the user to choose a directory to save in. They can create a new directory if they want/need, and once they choose the directory, my program will save a few pre-coded files into that directory.

View 1 Replies

Numeric Up - Down Box - Display A Variable That The User Can Choose A Number For

Jul 24, 2011

I am using VB .net 2010 express from microsoft. I have a numeric up down box to display a variable that the user can choose a number for. Then I have a text box that I want to display a result of the updown box * 1.5... So far I have the following... What do I need or need to change? I have the integer variables initialized or whatever with Dim statements as follows -

'speed variables
Dim CruisingSpeed As Integer 'cruise speed - updown box
Dim FlankingSpeed As Integer 'Flanking speed - will be cruise * 1.5

[CODE]..................

It says that it cannot convert the up down box into an integer... I need it as an integer to calculate the other number...

Complete code just in case the above was not enough info...

'Imports Excel
'Imports System.IO

Public Class Form1

[CODE].............................

I have some stuff commented out because a variety of issues - some I will end up using and some I will end up taking out before it is done...

View 5 Replies

VS 2010 - Time Scheduling Control That Allow User To Choose

Dec 10, 2010

I once saw in an app a control that allowed the user to choose when they wanted the Timer running. It looked something like this: And when the squares are green, for example Tuesday 3:15 AM - 4:15 AM, the timer would run during that time period. I'm curious as to what control will allow me to do something similar?

View 3 Replies

Radio Button Group For The User To Choose Entry Temperature Type?

Jan 22, 2012

I need to have 4 text boxes and three command buttons. One button should be used for exiting the program, one button should be used for clearing all of the text boxes, and the last button should be used for any calculations/conversions. You should also have a radio button group for the user to choose entry temperature type.

One text box should be used for the entry of an initial temperature. The radio button group will then allow the user to select the entry temperature. When the button is clicked for conversion, the other three text boxes will populate with answers to the conversion. and if I enter 37 degrees Fahrenheit, the Fahrenheit text box should read 37 after the conversion.)

View 4 Replies

Let The User Choose An Assignment Then The Program Should Look For The Matching Text File In A Folder?

May 7, 2010

i created a form with a combobox that lists out Assignments ( assignment 1, assignment 2, etc...)......what i need to do is let the user choose an assignment, then the program should look for the matching text file in a folder, ex: user picks assignment 1, and the program will read from assignment1.txt and display the result in a listbox. I have everything except the coding to match what the user chooses and the text file to streamread.

View 10 Replies

SQL Statement - Change The Word Mobinil When The User Choose Another Item From The Combobox?

Oct 14, 2009

the below statment is right 100% but what i need is to change the word mobinil when the user choose another item from the combobox

cmd.CommandText = "select * from warehouse where mobinil ='" + ComboBox2.Text + "'".I thought that i can do the follwoing dim x as string x= here will be the item selected by user- and ofcourse i need it to be put instead of the word Mobinil
cmd.CommandText =

"select * from warehouse where x value ='" + ComboBox2.Text + "'" is that possible ?

View 8 Replies

Create A Function Inside Data Grid View Have A Combo Box And Can Let User To Choose

Jul 28, 2009

i have a question in vb about inside a data grid view i need to create a combo box...

View 1 Replies

Display Previous Shadow Copy Versions Of File Allowing User To Choose One?

Dec 11, 2011

I'm writing an Excel file recovery program with VB.Net that tries to be a convenient place to gather and access Microsoft's recommended methods. If your interested in my probably kludgy, error filled, and lacking enough cleanup code it's here: http:[url]..... The basic functionality seems to work although I haven't tested graph macro table recovery yet.

It occurred to me that Vista and Windows 7 users could benefit from being offered a list of previous versions of the file within my application if the Shadow Copy Service is on and there are previous copies. How do I do this?I looked at a lot of web pages but found no easy to crib code. One possibility I guess would be to use vssadmin via the shell but that is pretty cumbersome. I just want to display a dialogue box like the Previous Versions property sheet and allow users to pick one of the previous versions. I guess I could just display the previous version property sheet via the shell by programmatically invoking the context menu and the "Restore previous versions choice", however I also want to be able to offer the list for Vista Home Basic and Premium Users who don't have access to that tab even though apparently the previous versions still exist. Additionally if it possible I would like to offer XP users the same functionality although I'm pretty sure with XP only the System files are in the shadow copies.

I looked at MSDN on the Shadow Copy Service and went through all the pages, I also looked at AlphaVSS and AlphaFS and all the comments. I'm kind of guessing that I need to use AlphaVss and AlphFS and do the following?Find out the list of snapshots/restore points that exist on the computer.Mount those snapshots.Navigate in the mounted volumes to the Excel file the user wants to recover and make a list of those paths.With the list of paths handy, compare with some kind of diff program, the shadow copies of the files with the original.Pull out the youngest or oldest version (I don't think it matters) of those shadow copies that differ from the recovery target.List those versions of the files that are found to be different.This seems cumbersome and slow, but maybe is the fastest way to do things. I just need some confirmation that is the way to go now.

View 2 Replies

VS 2010 Randomizing - Program Randomly Choose Questions - NEVER Choose Same Question In Same Program

Dec 20, 2011

I am currently working on a family project which is based on "Who Wants To Be A Millionaire?" show. There is a huge diffrence between the show and my project. My project is a christmas edition and the goal is not to get money or something, since I will not add it... Erhmm... Let me get to the point. I have already designed a layout and scripted some things. I have about thirty questions but I do not want them to always spawn in the same array, if you know what I mean. I want the program to randomly choose one of those thirty questions and NEVER choose the same question in the same program run. By the way, there are four options on my project: A, B, C and D. I have got everything, I just need a code.

View 3 Replies

How To Do Popup Blocker

Jun 7, 2009

iam using vb 2010 and if i usedwebbrowser1.navigate(text1.text)and that site has popup adv.... i want to block it

View 2 Replies

Web Browser Pop Up Blocker?

Sep 12, 2011

Is it possible to create a pop-up blocker in vb.net for my custom web browser? I don't want it just to cancel all new windows, just pop-up windows

View 1 Replies

Create A Popup Blocker Using VB?

May 15, 2007

how to create a popup blocker using Visual Basic?

View 5 Replies

Create A Website Blocker?

Sep 27, 2011

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)

View 9 Replies

Make A Program Blocker?

Apr 29, 2012

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.

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved