800 Posted Topics
Re: You might also want to wrap your code in try/catch blocks. | |
Re: Your If statement is convlicting with what you are wanting. You are checking to see if the row is not empty, and checking to see if string value is not empty. Then removing it when it satisfies both conditions. I think what you are looking for is: If IsNothing(row.Cells(j).Value) = … | |
Re: I think what thines is trying to say is you will have to post some code so we can look at it. We can't exactly tell what's going wrong if we can't see your code. :) | |
Hello my fellow DaniWebbers, I have a discussion topic for everyone. Winforms VS. WPF ITT: Your opinion on the two Your reason for coming to that discision Your approval/disapproval of Microsoft abandoning WinForms How this impacts your vb.net skills | |
Re: [Here](http://www.daniweb.com/software-development/vbnet/threads/231979/send-images-to-crystal-reports-vb.net) is another person who has asked a similar question. | |
Re: You will have to change your command strings. Any STRING that is being entered into a command should be wrapped in `'s. Example: SELECT * FROM book WHERE isbn='" & Cstr(intISBN) & "'" You just need to fix your queries. | |
Re: You will not be able to have child forms without having a mdiParent. | |
Re: Your connection string looks wrong. Are you getting your "DataDirectory" from your vb app? If so, your connection string should look like this. cnn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & DataDirectory & "\Database.accdb" | |
Re: There are multiple Mouse events. Here is the order that the click events fire in. MouseDown MouseClick MouseUp Examples: Private Sub MouseDownMe(sender as object, e as MouseEventArgs) handles Me.MouseDown MsgBox("You have clicked the mouse.") End Sub Private Sub MouseClickMe(sender as object, e as MouseEventArgs) handles Me.MouseClick If e.Button = Windows.Forms.MouseButton.Left … | |
Re: Is this for a ASP.Net question or a java applet question? | |
Re: Ok, if I hope I understand the question... You are: 1) Retreiving the data from a database 2) Entering the data into the active directory Right? | |
Re: You will have to loop through the datagrid like a table. Here is another question from Microsoft's Forumns. [Click Here](http://social.msdn.microsoft.com/Forums/ar/winformsdatacontrols/thread/7966c0b0-2232-4555-bdef-f79f2684713a) | |
Re: You will need to use directory info. Here is an example. Private Sub GetRandFile(sender As Object, e As EventArgs) Try Dim tmpdir As String = My.Computer.FileSystem.SpecialDirectories.Desktop Dim tmpar() As String If Directory.Exists(tmpdir) = True Then Dim di As New IO.DirectoryInfo(tmpdir) Dim diar1 As IO.FileInfo() = di.GetFiles() Dim dra As IO.FileInfo … | |
Re: [Here](http://www.daniweb.com/software-development/java/threads/42177/changing-mouse-cursors) is another post on the same subject. | |
Re: There is UPDATE table SET column2 = column2 + 1 | |
Found an odd fix for the bad comments for the CODE section for the vb.net forumns. If you add an additional ' at the end of the commented line, it renders fine. | |
Re: The only way I know of would be to single out each directory and find the directory pointing back to it's self. This would be time consuming, but you would be able to find the problem, then just remove the loopback. | |
Re: Here is an entire project from CodeProject. You can use it as a reference to help get you started. [Project](http://www.codeproject.com/Articles/30687/Double-Entry-Accounting-in-an-Iron-Speed-Designer) | |
Re: Are you sure tha the text from the text boxes is being handled correctly? One thing I do to check entered dates is a small try catch. Try Dim test As Date = CDate(TextBox1.Text) Catch ex As Exception MsgBox("Date incorrect!") End Try And for TextBox12, I am assuming it is … | |
Re: [Here](http://vb.net-informations.com/xml/open-xml-vb.net.htm) is a tutorial for you. | |
Re: Are you storing these values in a database? I would hope so. If not, you could possibly lose all information from power loss or application exit. | |
Re: You have a couple of options for keeping records of who is logging in. 1)Database* 2)Program's Settings (XML) 3)Text FIle 4)CSV File *The most reliable. | |
Re: You might have to try to parse the HTML content of the website. | |
Re: Do you have any timers or any code that is firing constantly? | |
Re: Are you wanting to limit the select count to 60 per each item in the combobox, or 60 total selections of items? | |
Hello my fellow daniwebbers, I have yet another question. I have a date, which is pulled from a database, that I need to convert to another form of that date. Example. Date1: 1/2/2001 Date2: 01/02/2001 What i am wanting to do is turn the current date format into two digit … | |
Re: You can also use the Active Directory if you are wanting a full name. That would be the most accurate way if you were writing a multiple user application. Each user's name would be in teh active directory. | |
Re: Don't know if anyone else here has the same feeling that I have..... I have a feeling that this may either be a prank, or something malicious.... Am I the only one who feels this way? Also, wrong forum. | |
Re: Create a timer, delclare a public variable with the value of 30 and set the interval to 1000 miliseconds (1 second) then in the timer place the code. public var as integer = 30 'In the timer.tick event.' var -= 1 ballLocation = new Point(ballLocation.x, ballLocation.y - 1) If var … | |
Re: Place this code in the Form's mouse down event. 'On mousedown' If e.Button = Windows.Forms.MouseButton.Left Then Capture = True relocateTimer.Start() End If Place this in the mouse up event. 'On mouseup' relocateTimer.Stop Capture = False Next place this in the timer's tick event. 'Place this code in a timer.' 'Set … | |
Hello my fellow Daniwebbers, I have yet another question for you. I have been using a library to scan, located [here](http://bytescout.com/products/developer/scansdk/bytescoutscansdk.html), and have not been getting a consistant return. When I use the TWAIN Source, the GUI pops up and disappears almost instantly. When I tell the source manager to … | |
Re: I am suspecting that the issue is the AllocatedItem. Correct me if I am wrong, but there will only be object types in the data source right? You can place the code in a TryCast() to attempt to cast it to the AllocatedItem object. | |
Re: Are you using an older version of a dll when using a newer's functions, or visa versa? | |
Re: Exact duplicate of [this.](http://www.daniweb.com/software-development/vbnet/threads/419532/dates-in-my-database-become-0-or-1) | |
Re: What poojavb is saying is that you do not need those single and double quotes. Single quotes in SQL are used to represet a string DATA value. The double quotes you are using to creating a string in VB.NET Example: Dim strn As String = "This is the correct way … | |
Hello my fellow DanniWebbers, it is me againg. I have yet another question for you guys and gals. I have a parent panel with child panels that contain images. I am looping through the panels to save the images in the order the panels appear in the parent panel. I … | |
Hello my fellow Danniwebbers, I am going crazy here. I have been messing around with the scanning packages(WIA and TWAIN) and have gotten WIA to work, but not as intended. At first I used the common dialog to show a Image Aquisition Wizard, but that did not return desired results. … | |
Re: I have always had bad luck with looking for empty rows. I have always made direct references to the data are. I would normally wrap the code in two for statements like: For i = 1 To NumberOfColumns For i = FirstDataRow To LastDataRow 'Place your extraction code here.' Next … | |
Re: You will have to "recreate" the situation to generate the report the same way as it was two days ago. If the reports are not archived, then you will have to find a way to recreate the situation. | |
Re: You aren't referencing a textbox you renamed or forgot to name are you? If not, have you possibly deleted the textbox by accident? Are both of them on a different form? Have you forgotten to add them to the form? If you have you can do it through the designer … | |
Hello my fellow Danniwebbers, I have yet another question for you to ponder. I have two custom action listers. One that handles Mouse.Click and one that handles Mouse.MouseDown. My question to you is, can I delay the mouse down event so that it does not intefere with the code of … | |
Re: Can you please elaborate on the "missing" features? What features does it have and not have? | |
Re: You would have to keep a counter of the visists to that website, and increment the counter every time the user views that website. Then, you will have to define how many visits constitute an automatic favorite. Next, you will copy the corresponding website to the "Favorites" list box. | |
Re: Try this: Dim textbox1 As New TextBox textbox1.name = "TextBox1" textbox1.bounds = New Rectangle(e.Location,New Size(100,100)) textbox1.location.x = myOtherTextBox.Location.x + 40 textbox1.location.y = myOtherTextBox.Location.y Me.Controls.Add(textbox1) | |
Re: You will have to create a query that gets the current value and subtracts one. Dim sqls as String = "UPDATE table SET column= column - 1 WHERE unique=value" | |
Re: You will need to reference the value in the textbox from Add Product. Like: BuyingForm.TotalTextBox.Text = Cdbl(AddProduct.PriceTextBox.Text) * Cint(BuyingForm.QuantityTextBox.Text) But, you may have a problem. Are you luaching the buying form FROM the add product form? If not, you are not going to be able to get your value from … | |
![]() | Re: You might have to edit the CSV file. Or, if you know all the lengths are the same, you can parse the second value and seperate by the values from string index 1-3, 3-6, ect... ![]() |
Re: You will have to store the data you have already read to a "temp" location. That way every time you open the file again, you can compare to see if there is any new data, copying only the new data. | |
Re: Declare a boolean variable at the top of the class. public Paused as Boolean = false 'When you fire your click event do this; If Paused = false Then 'Pause code here Paused = true ElseIf Paused = True Then 'Unpause code here. Paused = False End If |
The End.