Add, Edit, Remove, Clear And Close?
Jan 13, 2010Here's the link I'm currently using for reference: mages for error list:
Public Class FrontPage
Dim cnn As New OleDb.OleDbConnection
Private Sub btnclose_
[code].....
Here's the link I'm currently using for reference: mages for error list:
Public Class FrontPage
Dim cnn As New OleDb.OleDbConnection
Private Sub btnclose_
[code].....
I'm having trouble with visual basic 2010 since this is my first project, I'm assigned to design a control database that allow me to add, insert, remove, clear and close I designed a software but there are quite a lot of problems in it so I need fixing these problems.
View 5 RepliesI find it difficult to create my own code. Am creating a program that will be able to calculate the sum of two numbers and display the results on the screen, i manage to create a code of clear and close button but for calculate i cant.
View 3 RepliesSome controls are dynamically created within a panel. Their event handlers are attached
Dim btn as new system.windows.forms.button
with btn
'set properties
[Code]....
I Want To Edit The Tab Control To Add A Close Tab Button At Each Tab Is That Possible
View 11 RepliesI have two text files. The fields in each text file are separated by a space (" "). Some of the fields in column 1 of file 1 match the fields in column 1 of file 2. However the third column in file 2 is a numeric field. What I wish to do is check every field in file1 against the field in file 2, and if the number is 1 then remove the row from file 2, if the number is > 1, then subtract one from it.
I have the following coding so far.
Dim lines1 As New List(Of String)(IO.File.ReadAllLines("File1"))
Dim lines2 As New List(Of String)(IO.File.ReadAllLines("File2"))
Dim values As New Dictionary(Of String, Integer)()
[Code]....
using a database with Visual Basic?
I've got my screen done and added database buttons (BindingNavigator1), and added a database source.
Aslo how do I add, edit, remove a record to/from the database?
Edit a record and write the changes back to the Access database.Also,Remove a record from a Access database.
View 8 RepliesI was using System.Windows.Forms.TabControl to list custom pages, but there seems be a Hardcoded Padding of 3 pixels on all sides of Tabcontrol. How I can remove that. One point here is I dont want to remove Tabs on Top http:[url].....I found above MSDN link whick does removes margins from all sides including TabItems on top which I dont want.
View 1 RepliesHow am I going to remove the close button? No, the whole title bar. I can get rid of minimize and maximize button in the properties but not the close button.
I know about this one but I am not planning to use this. It's just disabling the close button not getting rid of it:|
Private Sub frmOpt_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
End Sub
I have Visual Studio 2010 and wish to create something which will store assets and serial numbers. I have an access datatbase which is where all of the data is currently stored however I wanted to make it easy for people to add/remove and edit assets by using a GUI which pulls data to a from the database. What is the best way for me to go about doing this and where should I start?
View 7 RepliesI'm trying to figure out how to remove a border from a tab control. The closest thing I can find is the following link but I don't know how to add this to my vb.net form.[URl]..
View 1 RepliesThe basic System.Byte doesn't make me happy, especially when I'm doing network operations that deliver bytes as BigEndian while the System.Byte relies on the System.Bitconverter that's almost always going to process LittleEndian.
So I'm working on a custom Class that contains a basic, underlying System.Byte that I can play with; and I want to give it a Property called Byte so the underlying value can be returned or set. The problem is that Byte is a Visual Basic Keyword, so when I try to name a Property 'Byte' Visual Studio starts throwing Intellisense errors at me.
[Code]...
I am considering a piece of code that will manage access to a collection object from multiple threads - add, update, remove, clear. OK ... so I have put a sync lock within each method, but what is not clear from the MS documentation is exactly how the sync lock is behaving. Is it locking the piece of code it wraps? Or is it locking the object? And if it is locking the object a private static object should lock out any code locked on the object within all instances of the object? i.e. if an add operation is underway, an update, delete or clear will wait for the lock to be released.
Finally, if I have multiple threads contending for the sync lock, how is the release managed? First come, first serve? random (from my p.o.v)? Is there a chance that two separate threads could blunder into 'locked' code simulataneously?
What's the best method for connecting VS2005 and Access Database. I want to ADD, EDIT, REMOVE and DELETE data from Access.
View 4 Repliesust want to know a better way to remove the close "x" button of the form, or atleast every time i close it end up openning again.
View 5 Replieshow can i remove the Close button (X) of the form at the top right corner.I could able to manage not to close the window even if close (X) button is pressed by using the below code in FormClosing event. But i wan to remove or disable it completly.
Private Sub Form2_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
End Sub
I have been asked to remove or disable the close button from our VB .NET 2005 MDI application. There are no native properties on a form that allow you to grey out the close button so the user cannot close it, and I do not remember seeing anything in the form class that will allow me to do this.
Is there perhaps an API call or some magical property to set or function to call in .NET 2005 or later to do this?
More information:
I need to maintain the minimize/maximize functionality
I need to maintain the original title bar because the form's drawing methods are already very complex.
I use to do programming in VB3.0 years ago and decided to try it out again with VB2005. Basically I made a chat application for my coworkers so they can chat at their desk. It's a shared network and the program is pretty simple. Basically the chat gets stored in a .ini file and that part works fine, but I want to be able to show the users who are currently in the chat and I am not sure how to go about doing this, when you login to the chat it takes your name which I would like displayed and when you close the application to remove the name from the list while keeping everyone elses updated.
View 2 Repliescreate admin form to register, Remove, Edit user accounts in the system connected to Microsoft SQL Server R2 2008 or access database ? any toturial videos or instructuions step by step ?
View 3 RepliesI'm currently in the process of building a text editor type program, and have run into a brick wall. I haven't done VB in years, so I may just need a little reminder on some things. I have coded everything so far as far as opening files, saving them, changing fonts, colors, etc. However, I'm looking to add a Close button to my menu strip that will just close the currently opened file, and not the entire program, while also ask the user if he/she would like to save before closing the file, and then if they select yes, it will show the save dialog, and if not, it will go ahead and close the currently opened item.
View 2 Repliesthis is currently my code to clear my 5 textboxes
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
End Sub
I have a timer that runs every time by itself, and for the code the runs in it I would like to have it clear the dataset before it does anything, the timer runs every 10 seconds, so I tried to do dataset.clear but it would crash if the dataset had no values
View 4 Repliesin hyper teriminal when i press "ctrl+L" is to clear terminal screen how to write the code in vb.net? Hyperterminal is connecting to serial comport.when i try this it work and return line on debug
serialport.writeline ("at+cmgl=1")
i try this but not work and it still show some lines on debug
serialport.writeline (vbcrtl +"L")
serialport.WriteLine("vbCrLf + l")
way to clear textboxes in VB.Net and what is the difference between the two methods? I have also seen people be critical of folk using clear objects on their forms and i can see why but in this case, i am only learning.
txtbox1.Clear()
or
txtbox1.Text = ""
wan to ask about anyone know the code about how to clear all the data inside the data grid view without clear the binding source...
View 1 RepliesI have a form that adds new contacts. New contacts are added by pressing an appropriate button and they appear as an entry in the list on the form. I try now to add an edit button that will edit existing entries.User will select a given entry on the list and press edit button and will be presented with an appropriate form (AddContFrm).Right now it simply adds another entry with the same title. Logic is handled in a class called Contact.vb Here is my code.
Public Class Contact
Public Contact As String
Public Title As String[code]....
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 RepliesIn my winform program (in vb.net) I wrote:
Dim dt As New DataTable
'Get data from DB into dt
'...
[Code].....
But when I run the program, Clear() cleared both dt and dttemp! Why? Aren't dt and dttemp supposed to be two distinct instances of DataTable?
(I finally found a solution - dttemp = dt.Copy() instead of dttemp = dt. But I still can't see why Copy() was necessary in this case.
It seems like whenever i click my close button the application will close but the debugger is still in active.How to exit this debugger? :)
View 2 Replies