I have a string:
Dim strXMLTags As String = "<tags><test>1</test></tags>"
And I want to verify that all opening tags have a closing tag in the proper place. So if I put the previous string through, it'd work. However, if I put:
Dim strXMLTags As String = "<tags><test>1</test>"
Then I want it to give me an error. Is there an XML ...
My friend had a VB.NET project and lost the source. I decompiled project binaries and got it back. In the decompiled codes I saw some lines like image.Height = &H5DC. Apparently it is integer but I don't get it, what is "&H5DC"? Is it hexadecimal? How can I find out its actual integer value?
...
Is there any difference between using the Microsoft.VisualBasic.DateAndTime.Now compared to the System.DateTime.Now?
I seem to remember reading something that said the MS.VB namespace was for legacy use only, and was much slower than using the native .net classes.
...
I'm a bit new to vb.net and used to working in perl, this is what I'd like to do.
I wanted something similar to DBIX::Class::Resultset's search (from cpan) in my vb.net project, so that I can give my function a hash containing keys and values to search on a table.
Currently it returns a single matching result of type T where I want it ...
I have a personal website that I want to see when the last post was made to it. Is there a way to find the last posted date on my blog?
In my application, I have a notification that I want to fire if we've made a 'News' post on our site so that our users are aware of any issues and I figured the best way would be to see when the last p...
Hello,
I have written a web usercontrol (ascx). Inside, there is a Panel that I want to show/hide on click of a hyperlink inside the usercontrol.
Normally, this is easy just by doing something like this (the onclick attribute is added to the hyperlink on prerender):
var PanelToShow = document.getElementById('<%=PanelInvoiceHasBeenCre...
In properites>Application>"Startup form" combobox, in my VS VB.NET project, I see only 2 forms listed, while my application has 6 forms. Does this mean something is corrupt?
I tried to make a new project, then copy only the old vb files into this new project. But still only those two (of 6) forms show up in the "Startup form" combo box...
I'm using a dynamically created Access database as a temporary storage for a file being inputed. I know that everything works, as on my dev machine I can get this code to run. But on another system (Win 7) it's not working. I'm being stopped at this line...
DAOEngine = New DAO.DBEngine
When it gets here, it just throws an error...
...
Can anyone give me some advice as to how to clean up a string in Visual Basic .NET? I'm creating a string as a report with line breaks. However, the string is built based off of screen scrapes from a TN3270 emulator. The string is saved successfully with all of the data I require, but those annoying rectangle symbols show up once I send ...
I'm writing a report in VB .NET (using Active Reports) that displays details about a location, and then displays a bunch of images, which are stored in a database. The images are displayed in my main report via a subreport.
However, I can't get the images to load. I have two files, the main report (rptMain) and the image subreport (rpt...
I have a class called Questions. This Questions has properties QuestionID and QuestionAnswer. While iterating through this List of Question in foreach, I have to find .QuestionID = 12. If I find .QuestionID = 12 then I have to immediately assign a value to .QuestionAnswer = "SomeText" of .QuestionID = 14.
I don't want iterate again in...
I have a project that has mainly two objects, both inheriting from a base. Like this:
Public Class Vehicle
Property Model As String
Property Make As String
End Class
Public Class Truck
Inherits Vehicle
Property IsFlatbed As Boolean
End Class
Public Class Car
Inherits Vehicle
Property LeatherSeats As Boolean
End...
I have a Mettler Toledo postal scale (PS60) that I need to configure and read weights from using a USB connection. The scale uses the Microsoft USB POS HID for scales driver. I will have 11 to 12 of these scales connected, and will need to identify each as well. The idea being my users will remove something from one scale and place it on...
I have a class called Questions. This Questions has properties QuestionID and QuestionAnswer. My list of Questions has QuestionID like 2,3,4,15,12,24,22,,,, etc
I need to sort this List of Questions Object based on QuestionID and store in another Questions object.
...
The exception:
"Input string was not in a correct format."
Appears when I try to access a field on my page like this:
.TransmissionId = IIf(FormValues("TransmissionId").Length > 0, Integer.Parse(FormValues("TransmissionId")), 0)
However it works for another field which is the same exact type of field, accessed like this:
.StateId ...
I want to make an app which you make a password and username and use it for the app but I only want this screen to open the first time you load the app so after the first load it goes right to the login screen
sorry I am a complete n00b at vb
I am using vb.net
I do not know how do any thing like store info nor am I knowedgable about S...
VB.NET 2010, .NET 4
Hello,
I currently have a class that represents a serial device. The communication paradigm is: Send a command/request, the device then sends an acknowledged or not-acknowledged byte. If acknowledged, the device sends its response.
The way this is being done right now is: A timer periodically sends a command/re...
I'm getting an ArgumentOutOfRange error when using substring function in .NET. I'm new to .NET so probably doing something wrong. I have a txtField, which is a text field component in GUI. I'm using Microsoft Visual Basic 2010 Express
txtField.Substring(txtField.Length-4,txtField.Length-1)
If txt.Field contains only numberic values...
I have a 2 tiered nested GridView in ASP.NET and I'm trying to insert a new record into the child GridView. I am able to Add/Remove/Edit records in the parent table but the child table is connected to my SQL database through the code-behind, so I am unable to use the SqlDataSource control like with the parent table.
I have searched aro...
Every time I refresh the browser, my button's event handler fires again. How do you prevent this?
...