VS 2008 Pop Up Message When User Clicks 'Ok' With Out Checking Something?

Sep 4, 2009

Do something like this

-User Opens program
-User goes to settings.(Settings has a bunch of RadioButtons)
-User Customizes settings, checks certain buttons. (How would I pop up a msg when the user clicks "Ok" with out checking something?
-When "Ok" is pressed, it will "save"
-When settings is opened again, the same RadioButtons will be checked.

Right now, if I exit the settings form, and open it again, the radio buttons are cleared

View 4 Replies


ADVERTISEMENT

If - Then - Message Box To Pop Up If No Dice Are Selected And The User Clicks The Roll Button

Jan 23, 2010

I'm using VB2008 express. idea for a D&D application. So I wrote something and it works, but it's not coded like I want. Here's the program if you want to see it in operation: [URL]

Here's the problem I have. I want a message box to pop up if no dice are selected and the user clicks the roll button. So far the only way I have been able to accomplish this is to put the same code under each radio button:

Code:
RolledValueTextBox.Visible = True
Label1.Visible = True
Label2.Visible = True
YesRadioButton.Visible = True
NoRadioButton.Visible = True

I want to have this code only once. But If I put it outside of the If/Then bracket and no dice are selected, the msgbox pops up but also the buttons that I want to remain hidden until dice are chosen pop up. How do I get the msg box to pop up and stop...don't execute any more code.

Heres' the code so far. trying to keep it relatively simple:

Code:
Private Sub RollButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RollButton.Click
'see which radio button is checked and display random number accordingly
If TwentySidedRadioButton.Checked Then
RolledValueTextBox.Text = GenerateRandom.Next(1, 20)

[CODE]...

View 5 Replies

Draw A Foursided Polygon When User Clicks Corners In .net 2008?

May 30, 2012

I am writing a program wherein the user draws shapes by clicking a button for the desired shape and then clicking on points on the drawing area. I cannot figure out how to store four clicked points to create a foursided polygon. I read many articles that say use the "mousedown" command and store points in a list, I have tried but it's not working for me. To summarize, I need the user to click the polygon button, go to the drawing area, click four points and have a foursided polygon created.

View 6 Replies

Record The Screen When My User Clicks Start, And Stop Recording When He Clicks Stop?

Jul 27, 2008

I need to record the screen when my user clicks start, and stop recording when he clicks stop.I've searched for a while on this subject, and I have found nothing.I want to do this without adding any files to my project, I just want to use some built in function in Visual Basic, and start recording, or even take a snapshot and add it to an AVI file or something...These are some sites I have found:

http:[url]......

This code is in VB6, but I am not sure how to even start using it?

View 1 Replies

[2008] Disallow Changes To Two Comboboxes Unless The User First Clicks A LOCK Symbol On The Screen

Jan 31, 2009

I want to disallow changes to two comboboxes unless the user first clicks a LOCK symbol on the screen. I pop a Y or N into the tag of the picture box when they click it...I've got this - combobox is called LanguageTo

Private Sub LanguageTo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LanguageTo.Enter
If Me.languageLock.Tag.ToString = "Y" Then
MessageBox.Show("Click LOCK symbol to allow changes to the Language Pair!", "Language is Locked!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

[code]....

How do I "cancel" the attempt to change that combobox?I don't want to ENABLE=FALSE the combobox - as I don't want it's image to visually change. I want to allow them to attempt the change and then abort it if they didn't unlock first.

View 2 Replies

VS 2008 Form - 'Exit' Button - When User Clicks It, Another Form Is Displayed

Jun 2, 2012

On each of my form I have put an 'Exit' button. When user clicks it, another form is displayed (I don't want to use 'MessageBox') asking user whether he really wants to quit. If user clicks yes the form closes. If user clicks no, form is redisplayed.

However, out of 4 forms only one form refuses to redisplay. The code is exactly same on all forms. I have included 2 Express 2008 projects showing one form each in the zip file apps-ssk.zip

View 15 Replies

[2008] Notify Icon When The User Clicks The Close Button That It Doesn't Close The Form?

Jan 17, 2009

I have set up a notify icon for my form. I want to make it so that when the user clicks the close button that it doesn't close the form it just takes it to shows the notify icon. They can exit the program from the notify icon. Can someone tell me how to keep it running?

View 2 Replies

VS 2008 - User Input Message Box Popup

Sep 26, 2011

Well I'm trying to have a if statement where when the user inputs the Title of the book [Title] then if it contained any letters then this message box would pop up. I also have another if statement where if nothing is there then messagebox would say that please input a name. [Code]

View 4 Replies

Create A Message Box That Stores User Name, Message And Post Datetime Into The Database As Messages Are Sent?

Jan 6, 2010

create a message box that stores my user name, message, and post datetime into the database as messages are sent. Soon came to realise, what if the user changed his name? So I decided to use the user id (icn) to identify the message poster instead. However, my chunk of codes keep giving me the same error. Says that there are no rows in the dataset.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim name As String
Dim icn As String
Dim message As String

[code]....

View 7 Replies

Create An Error Message By Message Box To Tell The User To Enter A Number Only If They Key In A Character Value?

Feb 22, 2009

how to create an error message by message box to tell the user to enter a number only if they key in a character value?

I MEAN AFTER THEY PRESS THE CALCULATE BUTTON

Private Sub btnCalcFat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcFat.Click
Dim intFat As Integer
intFat = Integer.Parse(txtFat.Text)
lblResultDisplay.Text = txtFat.Text * 9
End Sub

My text box is call txtFat

View 3 Replies

VS 2008 : Enable The User To Copy And Paste The Text In A Message Box?

May 8, 2009

I wanted to know how to enable the user to copy and paste the text in a message box, how can I do this?

View 8 Replies

VS 2008 Add A Message Box Or Alert To A MaskTextbox If The User Enters No Numbers?

Mar 21, 2011

I have a MaskedTextbox which takes Us Phone numbers. Using The MaskedTextBox ensures the user can enter only numbers and the number gets formatted right.

Here is the problem I am having: How do I add an error message if the box is left empty? I am not trying to validate the number, just need a way to add: "You forgot to enter a number." Can I add this to a MaskedTextBox?

How do I add a message box or alert to a MaskTextbox if the user hit submit without entering numbers?

View 7 Replies

VS 2008 Display A Help Message When A User Hovers Their Mouse Over A Button

Jul 18, 2009

I want to display a help message when a user hovers their mouse over a button.I think I need to use the mousehover event.What's the syntax for this event.

View 3 Replies

System Timer - Checking Message Status?

Jun 9, 2010

I have application that use MSSQL database. Application have module that is using for sending messages between application users. When one user send message to another I insert message in database, and set message status to 1( after user read message database I update and set message status to 0). Now, I am using system.timers.timer for checking message status, and if message status 1 user get alert that he has one message inbox. The problem is that this application can be used by many users, and if timer run ever 5 minutes this gone slow application and database.

View 3 Replies

Detect Whenever User Clicks The Mouse?

Jun 8, 2009

I need to detect whenever user clicks the mouse, no matter what form is selected at the given time.

I know that detected keypresses globally can be done through a Keyboard hook so I assume that i am going to need some sort of Mouse Hook.

View 3 Replies

See If The User Right Clicks On A Link In Webbrowser?

Oct 28, 2009

Im trying to check and see if the right clicks on a link in a webbrowser, if so enable a button on the contextmenustrip that allows him to open it in a different tab.

Dim Oelement as HTMLelement
Private Sub ContextMenuStrip1_Opening(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ContextMenuStrip1.Opening
If oElement.TagName = "A" Then

[code]....

View 3 Replies

User Clicks On A Treeview Item?

Dec 19, 2011

When a user clicks on a treeview item, how can I detect if it is a child item or not?

View 3 Replies

VS 2008 - Validation Functions / System Displays A Message Telling The User To Input Any Fields?

Apr 1, 2010

iam currently working on my uni project and i have encountered a problem with valadation section.My system displays a message telling the user to input any fields that they have missed out on, listing the name of the field. However as these IF functions are in order the user must input the data in the order of how it is in the code. for example if the "consweight" is inputed and the calculate button is pressed, it thinks that all valadation above it has occured, when those fields are still empty.

[code]...

View 1 Replies

Detect When The User Clicks The X Or Closes The Console App?

May 24, 2010

I have aconsole application that executes 2 other processes, and then closes the processes once it's finished its work.

If the user closes the console application prematurely, the 2 other processes go rogue and sit idle (As they are expecting to be closed by the console).

Is it possible to detect when the user clicks the X or closes the console app in another fashion, so I can also destroy the spawned processes?

View 13 Replies

Print A Richtextbox When The User Clicks A Button?

Jun 10, 2011

I'm trying to Print a richtextbox when the user clicks a button, and despite my many attempts, I am getting nowhere.
Conor

View 1 Replies

Print A Richtextbox When User Clicks A Button

Aug 2, 2011

I'm trying to Print a richtextbox when the user clicks a button, and despite my many attempts, I am getting nowhere.

View 3 Replies

User Clicks On A Picture Box It Moves Around With The Mouse?

Mar 4, 2009

Basicly If a user clicks on a picture box it moves around with the mouse, How can I make it so the user has to be holding down mouse1 (draging the picture box) and if they are not holding down mouse1 it drops

View 3 Replies

Way To Fire Events When A User Clicks A Specific Tab

Aug 3, 2010

I looked everywhere for this but not sure if it can be done. Is there a way to fire events when a user clicks a specific tab. Here is the image to show it better:I am trying to have the program execute a special function when the user clicks on customer info.

View 4 Replies

When The User Double Clicks On An Icon In A ListView

Dec 14, 2009

what the Equivalent is in .net of the following Event

Code:

Private Sub ListView_ItemDblClick(Item As ListItem)
End Sub

I need to know when the user Double Clicks on an icon in a ListView, there doesn't seem to be a matching event in .net.I'm running VS 2008?

View 3 Replies

When User Clicks Dropdown / Doesn't Select Anything

Mar 25, 2009

I currently have a few comboboxes in my project that on the 'Dropdown' event, I have them show items from a database that I have bound to the Combobox, I have tried this on several other events too with the same result.The problem i'm having is when the user clicks the dropdown but doesn't select anything, it automatically defaults the first item in the combobox although nothing was ever really selected so what I want is the combobox to remain blank UNTIL they click on an item in the dropdown, is there a way to avoid this? Is there some code I can place in the combobox's selected indexchange to prevent the first item in the list from appearing unless it was actually physically clicked?

View 5 Replies

Change Screens When The User Clicks A Node In A Treeview?

Aug 29, 2010

I have a treeview with several nodes I would like to know how I can display different screens when the user selects the nodes: just like switching through tabs.Regards Rimzy

View 17 Replies

Change The Startup Form When User Clicks A Button?

Dec 5, 2009

How do I change the startup form for an application when a user clicks a button?

View 1 Replies

Displaying All Text On One Line When User Clicks Button

Apr 4, 2012

I am working on a Text editor. The problem I have come to, is that when a user clicks a button, I want all the text to be displayed on one line. The reason for this is I am having problems being able to upload CSV email files on a website I am working on, because the format isn't like email, email, email, email. Instead it is like

email,
email,
email,

So I have written a program that will format it. Only It still isn't working. I need it to recognise when there is a ".com," or something.

View 5 Replies

Forms :: SelectedIndexChanged - Test For When The User Clicks On It And Actually Selects A Value From It?

May 27, 2010

I have a combo box and use the SelectedIndexChanged event. I noticed when I assign a value to the combo box that this event fires even though the user does not click on the control. Can you tell me how to test for when the user clicks on it and actually selects a value from it?

View 19 Replies

Get Index Number User Clicks On A Control In A Collection?

Apr 9, 2010

I'm using an open source ribbon control that does not have click events for controls such as tabs, panels, etc.When I looked at the properties of the ribbon it does have the tabs, panels, etc. all in collections.I would like to change this (0) code so that I can get the index number of the control that the user clicks on. The tabs on this control are not like the regular tabs that come with Visual Studio. "Tabs" is a collection of Ribbon1.

Private Sub Ribbon1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Ribbon1.Click
MessageBox.Show("You clicked on:" & Ribbon1.Tabs.Item(0).ToString)
End Sub

View 2 Replies







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