800 Posted Topics
Re: Try this: Dim lstCourses As New List(Of Course) This will create a list, you can add and remove elements like this: lstCourses.Add(Courses1) lstCourses.Remove(Courses1) | |
Re: If you had a SMTP host on the network, you can just bounce the email off of it. (Assuming it is configured to allow it) | |
Re: Check your motherboard manual, simultanous beeps indicate something is wrong. Check the manual for POST beeps | |
Re: The way I normally do this would be a dataset. Example: Dim con As New OleDbConnection(ConfigurationManager.ConnectionStrings("mysys.My.MySettings.ConnectionString").ConnectionString()) con.Open() Dim dat As New OleDbDataAdapter(New OleDbCommand("SELECT MAX(ID_SEQ) FROM dual", con)) Dim ds As New DataSet dat.Fill(ds, "Max") If ds.Tables("Max").Rows.Count > 0 Then Form4.TextBox1.Text = ds.Tables("Max").Rows(0).Item(0) End If | |
Re: [Here](http://msdn.microsoft.com/en-us/library/ms404294.aspx) is an article that explains how to use the PrintPreviewDialog object. | |
Re: If you are storing this data into a database (SQL, MySQL, Access) Execute an update statement: "UPDATE table SET username='" & txtUserName.Text & "', password='" & txtPassWord.Text & "',address='" & txtAddress.Text & "',city='" & txtCity.Text & "'" Or you can parameterize the query. "UPDATE table SET username=@username, password=@password,address=@address,city=@city" 'To enter … | |
Re: Alternately, if you are using WPF - You can download a [toolkit](http://wpftoolkit.codeplex.com/) that will allow you to create one using XAML. The article for declaring it can be found [here](http://wpftoolkit.codeplex.com/wikipage?title=MaskedTextBox&referringTitle=Home). | |
Re: My SQL is not the best, but you can do a select/insert like the following: "INSERT INTO table2 (BOQSectionsAndParts_ID, BOQSection) SELECT BOQSectionsAndParts_ID, BOQSection FROM db.table1 WHERE BOQSectionsAndParts_ID='" & ComboBox1.text & "'" | |
Re: Are you storing the course numbers in a data base, or in the second combo box? | |
Re: Open the Project Designer (My Project) From the Application Tab Set the Startup form by selected the form from the drop down. | |
Re: There are two ways of doing this. You can save a path to the image OR You can save the image into the database (As a blob) | |
Re: Set the format to long time. Example: Dim dat As New Date dat = #10/2/2012 4:04:45 AM# MsgBox(dat.ToLongTimeString) | |
Re: You will want to match things up. Declare a class wide variable to reference the clicked item. Example: Private lviCurrent As New ListViewItem Next you will want to set the item to the selected item (in the listview's click event) If IsNothing(ListView1.SelectedItems) = false Then For each lvi As ListViewItem … | |
Re: Do you have a strongly typed dataset behind? If so, you can just do the following: DataSet1.DataTable.Rows.AddRow(values) | |
Re: Have you verified that your split statements are returning the amount you think they are? Place a break point in the application after the split. Then use intellisence to view the data inside the object. | |
Re: Are you using data encapsulation or just sending to Module1's public variable? (Encapsulation would be using public Properties) Example: 'Declare local variable Private iBill as Integer Public Property CurrentBill as Integer Get Return me.iBill End Get Set (value as Integer) Me.iBill = Value End Set End Property -Or- You can … | |
Re: Timers do not work in seconds, they work in milliseconds. Just set the timer to 1000 and the frame will be displayed for a full second | |
Re: You will (as always) have to design/chart your application before you start programming. **Design the tables** You will have to figure out what kinds of information you will need to store (if you were a hotel operator) You will have to figure out which database better fits **the application**. (SQL,MySQL,Oracle,Access … | |
Re: Have you check the memory? I have had memory to go bad, and the PC just not boot because of it. I am assuming you dont get the POST sound? I would take one out at a time, switch them to see if one module is bad. | |
Re: What does the data that is stored in the cell look like? Is it a long date? A short date? A time span? We can't help unless you show what the data is. | |
Re: Dr. Watson is a debugger. Sounds to me like the game (or you) may be having memory problems. (Memory leaks are common) I would run a memory diagnostic on both your RAM and your vRAM. [Memory](http://www.memtest86.com/) [Video Memory](http://majorgeeks.com/Video_Memory_Stress_Test__d5896.html) | |
Re: Sounds like homework... If you could post your idea/code so far...we may be able to help. | |
Re: [Here](http://msdn.microsoft.com/en-us/library/microsoft.office.tools.word.bookmark.aspx) is a good starting point. This was pulled directly from that page: Private Sub BookmarkFont() Me.Paragraphs(1).Range.InsertParagraphBefore() Dim Bookmark1 As Microsoft.Office.Tools.Word.Bookmark = _ Me.Controls.AddBookmark(Me.Paragraphs(1).Range, "Bookmark1") Bookmark1.Text = "This is sample bookmark text." Bookmark1.Words(3).Font.Color = Word.WdColor.wdColorBlue End Sub | |
Re: If you are deleting the row from the gridview/listview AND the database...just refresh the data. If not, you can try something like the following: Private iRecord As Integer 'Set this to the datatype of your unique value Public Property RowToDelete As Integer 'Set this to the datatype of your unique … | |
Re: Also, what might be a problem - When inserting strings, you will have to wrap the value in '' Example: cmd.CommandText = "INSERT INTO [GringItems] (EMPLOYEE,CHECK,ITEM,PARENT,CATEGORY)" & _ " VALUES ('" & _ ds.Tables(0).Rows(iX).Item(1) & "'," & _ 'ect... You will only need to wrap the values that are represented … | |
Re: It may seem like alot of work, but this will pay off in the long run. When working with databases, I always try to create strongly typed classes. (Check the file attached for an example) So you can do the following to retreive a list: Dim hHotel as New Hotel … | |
Re: Is the database storing a path to the original file, or a blob? If it is a path, just create a local copy of the pdf that gets deleted once the user closes the application | |
Re: Handle the listview's Click event Example: Private Sub ListView1_Click(sender As System.Object, e As System.EventArgs) Handles ListView1.Click 'Refernces the selected record Try If IsNothing(ListView1.SelectedItems) = False Then For Each sItem As ListViewItem In ListView1.SelectedItems If sItem.Subitem(3).Text.ToLower() = "fail" Then MsgBox("Failing grade!") End If Next End If Catch ex As Exception MsgBox("There … | |
Re: Duplicate thread [here](http://www.daniweb.com/software-development/vbnet/threads/435165/displaying-error-message-in-the-listview) | |
Re: Isn't maya an application that is pay to use. Reverse engineering would be a punishable offence. Or am I severly misunderstanding? | |
Re: [Here](http://social.msdn.microsoft.com/Forums/en/winforms/thread/8037386d-7bfc-4546-8717-5e768b3bf323) is another post on Microsoft's forumns about the very same thing. Hope it helps! | |
Re: Did purchase a finger print scanner? Most fingerprint scanner manufacturers have SDK's that are either free (with registration) or for purchase. | |
Re: If the user has entered text into a text box, you can just simply use the TextBox.Text method. A password character is just a way to hide the displayed text, the true text typed is still stored in the textbox's text string variable. | |
Re: The best solution would be to check for a forum for the addin. Something the developer uses for a "tech support" web site. As for vb.net, you may have problems going from LTR languages to RTL languages and visa versa. | |
Re: Why are you using a DataTable and not an adapter/dataset? Do you have a requirement to use only a data table? | |
Re: You can use [this](http://www.codeproject.com/Articles/7509/VBScan-barcode-software) project for an idea on how to code with code 39. (code 3 of 9) | |
Re: You will have to make use of the textChanged event. You will need to keep track of the key pressed also. Create an array filled with all of the characters/keys you want to filter, then check against it with the key pressed. If it passes,add it to the text box. | |
Re: Try this instead: For remove use the following: listview6.Items.Remove(listview6.SelectedItems.Item(0)) 'If multiple items are selcted use For each itm as ListViewItem in ListView6.SelectedItems listview6.Items.Remove(itm) Next | |
Re: When you say items, what exactly are you referring to? Are you painting multiple pictures, shapes, controls, or just a pallete of color? | |
Re: You can simplify the process by: Convert the text to all lower case: Dim sConversionString as String = TextBox1.Text.ToLower() Then do something like the following: If sConversionString.Contains("n229") Or sConversionString.Contains("n 229") Then 'Do Work End If | |
Re: You need to make use of the sender object. Example: Private Sub Button_Click(sender as System.Object, e as System.EventArgs) Try Dim ST As New Button ST = TryCast(sender,button) ST.BackColor.ToString = TextBox1.Text Catch MsgBox(ex.message) End Try End Sub Programaticly add this handler to each button ( To rid yourself of the long … | |
Re: G Waddell's suggestion is the quickest way to do what you are wanting. | |
Hello my fellow Daniwebers, I have a question for you. I have an asp.net page that contains a structure that looks like so: <asp:MultiView> <asp:View> <asp:UpdatePanel> <asp:Panel> <asp:TextBox ID="txtStartDate" runat="server" AutoPostBack="true" /> <asp:TextBox ID="txtEndDate" runat="server" AutoPostBack="true" /> </asp:Panel> </asp:UpdatePanel> </asp:View> </asp:MultiView> The curious problem is that I can't reference the … | |
Re: It would be wise, if you are after the razzle dazzle, to use WPF instead of Winforms. WPF allows alot of glitter and sparkles for your gui. | |
Re: Do you have an image of the map you are using for the rails? As for the colors, you can set the tag to the name of the color you want the box to be. | |
Re: Here is an open source HMS. As Jim said, it will most likely not fit your needs. [Click Here](http://www.medfloss.org/node/422) | |
Re: If you are not wanting to use the time, you can simply set the dtp's format to ShortDate and it will remove the time. If you are wanting the time, you will need to do some error checking to make sure the format will match that of the database. | |
Re: Is the cust ID field an auto number field? | |
Re: By using nested for loops. Something tells me you are asking for homework code... Do you have any code where you have tried this on your own? |
The End.