Customize Own Message Boxes / Can Rename Yes / No Buttons To Any Text Like Delete / Discard
Dec 17, 2009
I understand that currently vb.net message boxes support buttons like ok,cancel,yes,no,abort,retry.but i am wondering how do i customize my own message boxes such that i can rename the yes,no buttons to any text like delete or discard.
View 1 Replies
ADVERTISEMENT
Oct 31, 2009
I can't rename my text boxes, it gives me an error message" The name txtjeffSales is already in use by another component. But I just created the project aand there is no way that anything else has that name, even if I try slight variations of that name it just won't let me do it, wtf is going on here? Attached image(s)
View 3 Replies
Dec 12, 2006
I try to rename a file by
file.copy(oldPathName, newPathName)
then
file.delete(oldPathName)
File.copy works.But somehow, a message saying oldPathName is being used by another process, when it tries to delete the old file.
View 5 Replies
Sep 10, 2010
I've coded a Login form with two text boxes and two buttons goes to a Users database to validate the userid and password. When I click the OK button (button1) I get an error message on the highlighted line below(Dim Reader).
It states that no value is given for one or more required parameters. What parameters are they talking about?[code...]
View 8 Replies
Mar 24, 2009
How can i costumize my buttons so that they look cool??? (i dont want to put images into them, i want to change their shape)
View 3 Replies
Apr 21, 2009
I can whip up a program that deals with text boxes, buttons, checkboxes, etc. fairly easily. I know how to deal with arrays and stuff like that, and I am just barely able to open/write to files (I don't quite have it down, but almost). However, when it comes to drawing graphics. Right now all I'm looking to do is create a function that will draw a pixel or really tiny rectangle at my command to use as the building block of drawing images. I saw some example code here:
Of how to have it draw a rectangle upon opening a form, and I was able to do that. But I guess I'm not quite sure how to make a function like that be performed when I do something like press a button (or just anywhere in a segment of code).It's probably because I don't understand this line:
[code...]
I understand that it makes a non-public sub called Form1_Paint, but I'm not quite sure about the arguments passed and what "Handles Me.Paint" really means. I'm not sure how to make this (if I can make it) into a function that I can call anywhere (in the button1.click code, for example) to make it display a pixel.
how I could do that? Either that, or just explain what the piece of code above is actually saying?
View 4 Replies
Nov 14, 2008
I need to be able to add (specific) special characters to text boxes. Problem is, there are five of them spread across two forms and three tabpages. What I'd like to do is bring up a form when the user presses something like "F2" while the text boxes are focused, then on that form would be a grid of buttons. When the user pushes a button, the character is added to the box. How do I get this form to reference the box that called it without passing a global variable or calling a public function? I tried Form3.Parent.Name, but that always seems to refer to nothing. Also, once this is done how can I get it to just insert a character where the cursor on the calling box is? It probably shouldn't even be on a form either since that will take the focus when it's called (which I don't want)
View 3 Replies
Jun 22, 2009
I need to create a form with radio buttons, text boxes, labels, etc.. This information needs to be pulled from a database. For instance, I have a form that displays information that needs to be inputed to a database, based on what test is being done for a specific product. Each product requires different tests. So each product may or may not have the same information that needs to be inputed..
What I have done is made a database and filled a table with each product and what tests apply. I then call that database after the product has been selected for the tests. It will then fill an array for that products information for what texts boxes and labels need to be shown. I wanna take this further and have it create a form through code and align all the controls to specific spots so that it will look nice. For example I wouldn't wanna create a control and have it be cut out of the form, or have other controls overlapping others.
[Code]...
View 19 Replies
Jul 14, 2009
I have a group box with 4 radio buttons and another groupbox with 4 text boxes.how do i write a short code to clear all text boxes and radio buttons within each box.i have written code the long way, ie..[code]but i think there is and easier way but i cannot find the statement.
View 1 Replies
Jul 14, 2011
The code below shows adding three text boxes using a button, I'm thinking when there's excess of text boxes that has been added, how can I delete the excess using another button.[code]...
View 7 Replies
Jul 24, 2010
if there is a way to customize my media player, like custom buttons, etc, I would like to make a box displaying the visualizations and a custom library control...
View 1 Replies
May 14, 2010
I'm building a border-less form so I can customize the Minimize-Maximize-Close buttons. I've noticed now that I can't move the form. I docked a panel up at the top of the form to replace the regular window border. I put custom Min Max Close on it. How could I program the panel to move the window like the border does with a regular window?
View 3 Replies
Sep 14, 2009
I'm designing a windows application in visual studio 2008 and connecting to oracle 10g XE but don't know how to add, update and delete records from my database using text boxes.
View 1 Replies
Feb 10, 2012
ive got code like the code below that creates textboxes dynamically. I want to be able to click a button and delete all of these textboxes i make, however im not sure how to do this. When i tell the program to remove the TBIndex control it does not do anything. The only way i get it to work is if i put the command in the same sub as this code. This code runs in a loop by the way.
So if the loop runs one time and creates the TBIndex control and i have a line of code right after to remove the textbox, then it does not show up on my form. But if i put the command in to remove the textboxes somewhere else and run the code the loop runs abunch of times and creates all teh textboxes and the loop is complete, then the remove control part is called and nothing happens. I just need a way to clear all the textboxes off my form with like a button. I also tried painting over the textboxes with a big grey rectangle but that dindt work.
TBIndex.Width = 54
TBIndex.Height = 20
TBIndex.Visible = True
[Code]....
View 2 Replies
Jun 17, 2012
I'm using vb.net. Basically, I have a drop down list, text box and a submit button. You choose a movie director from a drop down list, then type in a movie, click button and it adds the data to my database.There's another button which hides/shows drop down list, text box and submit button using Visible = True and Visible = False, but what I don't like about it is when it hides the things I said before, it leaves some white/empty space like if they are still there, but not visible.Is there anyway to put some kind of holder/container and place a button which when clicked could add my drop down list, text box and submit buttons to that place?
View 1 Replies
Apr 29, 2011
I am adding data to a database table using Entity Framework. When adding a duplicate Primary Key I get an exception in InnerException.Message that reads "Violation of PRIMARY KEY constraint 'PK_StudentID'. Cannot insert duplicate key in object 'dbo.Students'. The statement has been terminated. "However, what I want to do is to rephrase this error message for the end user, but also save this exact message with the table name and column name to my logs for later. Essentially, I want to rephrase the error message to "You cannot have a duplicate entry for Student Identification Number. Please enter a new value."I have tried to inherit from System.Data.UpdateException and put an if check to see what the innerexception.message reads, and then change it accordingly. That did not work.
View 1 Replies
Oct 7, 2010
I am trying to follow the book 'Sams teach yourself VB 2008'. It was going well until the end of hour 4. For exercise 1 I have created the form with a button and two text boxes, but cannot work out the code I need to move text between the two boxes. The Object Browser does not seem to help - am I reading it wrong?
View 14 Replies
Aug 30, 2010
how can i either copy/move/rename & delete a file in program files directory? [c ode]i already have the form which grabs the updated file and it save it to temp directory ready for copying, just stuck here as of the access denied.
View 4 Replies
Apr 15, 2011
Windows 7 Home Premium X64 Visual Basic 2010 Express SP1 All Visual Studio updates installed except for a Visual C++ security update
The problem:Sometimes message boxes in a console app close after clicking the ok button on one before all the messages are displayed. It is just supposed to display one message box after another. Same code as above, A message box in a console app will sometimes minimize to the taskbar before displaying all the messages after the OK button is clicked on The same code as the above 2 problem but in a Windows form app will display all of the message boxes, But.sometimes won't show the form at the end like it should.
The bugs I know happen when I run the programs from VB itself, don't know about the EXE outside of VB.I know it isn't my code because others have tried it and had no problems.What can I try to fix it?EDIT: Code for the one with the button and form:Public Class Form1
[Code]...
View 1 Replies
Feb 24, 2010
I am trying to get 2 group boxes with radio buttons. I would like to check a radio button in group box 1 and have a corresponding radio button in group set 2 get automatically checked based on what I check in group box1. I am trying to do this in VB.
View 4 Replies
Feb 28, 2010
I am new to vb and I have a question about button and images. I need to know how to connect images with buttons. So when I click a certain button the image must show up. One button is suppose to show three different images in three different image boxes. So how I can connect buttons with image boxes.
View 16 Replies
Nov 15, 2009
I'm creating a windows form application, which contains radio buttons, that when checked and the button is clicked, display a certain image in an image box based on which radio button was checked. I'm having trouble with assigning the certain image to the radio button. Can I use If/ElseIf statements?
View 3 Replies
Mar 25, 2009
I have to create a program for customers buying a new care can pick options for that car.The starting cost of the car is $26,000Im having trouble figuring out where to add the starting value. And also, how will i calculate all the options into the total along with the tax.
Public Class Form1
Dim dbltotal As Double
Dim dbltax As Double
[code].....
View 1 Replies
Nov 3, 2010
So as the name states; I am a newer coder.
This is the code i have:
Public Sub RandomNumbers()
Dim s(4) As String
Dim RandomNumber As Byte
I don't know if you can tell what I am trying to do here, so I will try to explain. I what to create for random numbers and place them into for different text boxes. I also would like to do this with combo boxes and their selected indexes. So if the combo box has 10 items in it; the new selected index would be the random number generated above.
View 5 Replies
Jan 23, 2011
I'm in the middle of creating an application that will be used to input customer information whilst the customer is speaking to someone over the phone. This involves the customer giving the employee information such as name, address, postcode etc and the employee inputting that information into text boxes and combo boxes that are in the application.
What I would like to be able to do is after the customers information is given over the phone, I need to be able to send that information to a database which will probably most likely be done by button click. In this case, I'm using Microsoft Access. I'm also hoping that I can do this within Visual Basic coding.
The database is set out with multiple tables which include a customer table and a ticket table and both have multiple fields such as first name, surname in the customers table. Both of these tables are in use with the information that the customer gives over the phone.
I've already asked on other forums and people are where replying giving me third party programs that I could use to implement this, something I don't really want to do.
View 9 Replies
Jan 23, 2011
I'm in the middle of creating an application that will be used to input customer information whilst the customer is speaking to someone over the phone. This involves the customer giving the employee information such as name, address, postcode etc and the employee inputting that information into text boxes and combo boxes that are in the application.
What I would like to be able to do is after the customers information is given over the phone, I need to be able to send that information to a database which will probably most likely be done by button click. In this case, I'm using Microsoft Access. I'm also hoping that I can do this within Visual Basic coding.The database is set out with multiple tables which include a customer table and a ticket table and both have multiple fields such as first name, surname in the customers table. Both of these tables are in use with the information that the customer gives over the phone.
View 1 Replies
Jul 5, 2011
Im trying to make a program that allows the user to view additional information via moving the cursor over the label to view (make visble) additional information, in the form of text boxes and/or picture boxes. How will i go about doing this?
View 6 Replies
Oct 19, 2009
I am doing an application where a person can enter a string in a text box. The application reverses it. That all works fine.
I am trying to set up an if statement where if nothing is entered in the box and Submit is clicked, a message box pops up and tells you that the box can't be empty. The message box pops up fine but when the user clicks on ok to close the box, another blank box pops up. How do I get rid of the blank message box?
[code]...
View 2 Replies
Oct 6, 2011
I am doing an application where a person can enter a string in a text box. The pplication reverses it. That all works fine.I am trying to set up an if statement where if nothing is entered in the box and Submit is clicked, a message box pops up and tells you that the box can't be empty. The message box pops up fine but when the user clicks on ok to close the box, another blank box pops up. How do I get rid of the blank message box?Code is as follows:
Private Sub btnReverse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReverse.Click
If String.IsNullOrEmpty(txtInputStr.Text) Then
[code].....
View 3 Replies
Jul 4, 2011
okay so I have a simple code to generate card picks and store them in numbers except no two cards can be the same so my checkIf functions checks it against the current list. Also no four a values can be the same since there are only 4 cards of the same type in a standard deck. Now the problem I am having is that when I run my code I only get two message boxes when I believe I should be getting 30 - (15 a's and 15 b's).[code]
View 12 Replies