VS 2010 - Duplicate Control - Datagridview With Code In It Plus Buttons That Do Various Things To It
Feb 9, 2012
Wondering if there is a way I can duplicate controls and have them work properly? basically, i have a datagridview with code in it plus buttons that do various things to it etc etc. ideally, i'd like to be able to have two of these datagridviews on show. So, user presses button, second datagridview shows. Note that I don't want them to both display the same data - they should both be independetly editable..
View 3 Replies
ADVERTISEMENT
Jul 25, 2011
Is there a better way to make a form with multiple buttons opening different things than having a form that has lots group boxes for each tab. So in the begining each box will be invisible and when you click the button the corresponding group box will become visible. Is there any other way?It will be like a background image and it'll have buttons that will mask it with invisible buttons. when the button is clicked it will open the corresponding group box.
View 5 Replies
Jan 10, 2011
Sorry about the bad title. Just wondering if it is possible to use a control name as parameters rather then doing the same code over and over again. Example.
[Code]...
View 7 Replies
May 10, 2012
i've this code to insert records into datagridview
PrivateSubForm1_KeyUp(ByValsender
AsObject,
ByVale
AsSystem.Windows.Forms.KeyEventArgs)
[code]....
the trouble is that i need to evaluate the duplicate item from serialtextbox when the scanner put in the code?
View 1 Replies
Apr 26, 2012
I have a datagridview extracted from a csv file. It displays duplicate rows. How can I delete those duplicate rows from the datagridview? replies would be precious.
[Code]...
View 4 Replies
Aug 1, 2009
I have a Form with a Textbox (Multilined) a Listbox and 2 buttons. You can insert things in the Textbox and press one of the buttons. That will add the lines of the Textbox to the Listbox.Then you click the last button and it will show you a msgbox for the number value of the Listbox1.Items.Count
Now what i want is that when you click the button it will show you an amount of msgboxes equal to the value of ListBox1.Items.Count.
Its a bit hard to explain but i hope you guys understand.
View 5 Replies
Jun 7, 2011
What I want is to be able to add things from the textbox into code by clicking a button. For example
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
add->" If VideoList.SelectedItem = TextBoxName.Text Then
Label1.Text = TextBoxVideo1.Text[code]....
View 14 Replies
Jun 17, 2012
If NewEntryName.Text = "" And OpenFileDialog1.FileName = Nothing Then MsgBox("Please choose a name for your game.", vbExclamation) MsgBox("Please find your game.", vbExclamation) Else Button1.Text = NewEntryName.Text
[code].....
View 1 Replies
Oct 25, 2011
So im creating a mail bomber here is the code
Imports System.Net.Mail
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
[CODE]...
Pretty simble but im trying to make buttons that chage between [URL] and [URL]on the timer code
Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress(TextBox1.Text)
MyMailMessage.To.Add(TextBox3.Text)
[CODE]...
View 9 Replies
Nov 6, 2011
Dont be afraid to spam the thread with things you can create.The more the better!
View 2 Replies
Jun 14, 2011
I tried to add a calendar control column to a datagridview using code i found on the internet, and for some reason now im getting a designer error that i have no clue how to fix.
View 15 Replies
Jun 10, 2011
im making a game in vb 2010. but im new to 2010 so i dont know how it works (because i used 6.0 before).I have a form, where the graphics should be drawn on. "frmMainGame".I have a module where I want to put all Graphic things in.so I have in my module Graphics.vb [code].....
now I have a button what calls the sub "Call DrawPlayerCoordinates()".but now it gives an error because it don't know where to draw the string. So how do the code above know it should draw it on "frmMainGame" and not in a module what isn't possible?
View 5 Replies
Jul 19, 2011
VS 2010 is rather annoying in that its sub windows always seem to be moving about and I have to put them back where they belong. It seems that I've completely lost one window now however- its the one that should go below solution explorer/to the right of the error reporter where all the information for the highlighted entry is displayed. How do I get this back/restore defaults of the way things are displayed?
View 2 Replies
May 17, 2012
Ok so on my project it seems the timer is not working correctly, the interval is set to 5000 (which is 5 seconds... right?) so every 5 seconds it would display a MsgBox telling me the current date/time and then a time in a list.
[Code]...
View 4 Replies
Oct 31, 2011
I have numerous buttons that add different values to a total score. In the future also wanting to keep track of which batter scores runs. I have 2 radio buttons labelled "BatterA" and "BatterB". When 1 run is scored the batters will change ends, so i want the radio button to automatically change to the other batter when the "1 Run" button is clicked.
View 5 Replies
Feb 20, 2012
I want to make a vb application that downloads stuff off of the internet such as pictures, etc. Does anyone know how I can do this? P.S. If anyone knows how I can implement a progress bar into this .
View 3 Replies
Jun 28, 2010
Ok. So, how do i save things. Ive made a Checked Item Box. But i can't get any of the things to Save that i have Checked?
View 9 Replies
Sep 13, 2011
I have two datagridview's both are databound. First one shows items for sale and the second stores all the items that were sold. I am trying too transfer selected rows from one to the other but no matter what I keep getting told "Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound."
View 2 Replies
Nov 22, 2011
provide a simple example code for displaying a string array of (9x13) values in a datagridview control. I am lost in the complexity of data binding and datagridview controls. I am an experienced VB6 programmer and cannot seem to grasp the transition from flexgrid control to datagridview control.
View 6 Replies
Aug 13, 2010
What it will do:It will go to the penndot website.Fill in those two forms with what the user inputed in the textboxes. Click login Then tick either reschedule, unless there isn't a reschedule then it would tick schedule Click Continue Tick the right DMV(Not going to post this because of my location If there's an error at the top It won't do anything.If there are available choices.Then it would send an email to the email in the email textboxSo.. after writing all this out...
View 2 Replies
Feb 16, 2012
I have a datagridview with rows and 2 columns the first for staffname the second for the price the first column name is "staff" the second is "price" I want code count's how many time the row have been repeated to count the item price
View 8 Replies
Apr 8, 2010
My browser application has an option to display all the "href" elements of a web page in a datagridview.
I use the code below to populate the datagridview.[code]...
View 10 Replies
Feb 19, 2011
I am trying to delete a row if the program finds a duplicate entry.
View 3 Replies
Apr 3, 2011
I have a bound DGV that took a bit of work to get its columns set up. I'd like to show a 1-row version of this identical DGV on a second windows form. Is there a way to programatically place a copy on the second form. I would adjust the height and position of the 1-row version, and create a new binding source on the second form so that I could filter the data.
View 1 Replies
Nov 8, 2011
In my winform, i m using a datagridview.. I m also allowing to enter data through it. User has to select a product and put in price for it. for products column i have used combo box and for rate column i have used text box.I want that once user has selected a product, he is not allowed to select the same product for other rows... I mean duplicate product selection not allowed... how do I prevent it..
View 11 Replies
Jun 27, 2012
I wish to get a quick feeling for how much copy and paste coding we have, there are many tools for C# / Java to check for this type of thing. Are there any such tools that work well with VB.NET? (I have seen what looks like lots of repeated code,
[Code]...
View 8 Replies
Feb 12, 2012
How can I format the colour of a datagridview by code.I know I can do this:
frmName.dgvName.GridColor = Color.WhiteSmoke
but if I want refine this and color by numbers, as such, how can I do this:
frmName.dgvName.GridColor = 255, 255, 200 (because this does not work!)
View 4 Replies
Sep 3, 2009
I have a simple database with our customers data. I'm using access database, dataset, and a datagridview. So when I selected a row, I want to make a new row with datas from selected row. Here is my code:
[Code]...
View 1 Replies
Feb 7, 2009
how to prevent duplicate RECORDS in datagridview cell vb.net
View 2 Replies
Aug 26, 2010
If I have an unbound DGV with hundreds or thousands of rows what is the easiest way to find any or all duplicate rows? ie. where the data in all the columns is the same in 2 or more rows.
View 4 Replies