Can someone tell me an efficient method of retrieving the CSS between tags on a page of markup in .NET?
I've come up with a method which uses recursion, Split() and CompareTo() but is really long-winded, and I feel sure that there must be a far shorter (and more clever) method of doing the same.
Please keep in mind that it is possible...
rowsUpdated is an int32 to count how many rows are updated
rowsToUpdate = dataset.ParentTable.Select("", "", dataviewRowState.Added)
if rowsToUpdate isNot Nothing then
for each row as datarow in RowsToUpdate
**changes the rowstate:**
rowsUpdated = rowsUpdated + ParentTableAdapter.update(row)
Next row
End if
I'm sure it'...
I'd like to give a homework assignment to a person learning VB.NET.
I'd like it to use basic inheritance and a variety of data structures including queues, lists, arrays, or stacks in a windows forms application.
I was thinking of a pizza-ordering application. This would allow them to utilize some basic inheritance and practice using...
I have an animated gif which I would like (It's a fancy animated gif) displayed over my form when a process is being executed. I cannot get the gif to show the underlying controls through it's transparent parts. I've tried using a picturebox but I don't think this can be set to transparent (It's background can, but not the actual object)...
This should be an easy one, looks like I got myself too confused.
I get a table from a database, data ranges from varchar to int to Null values. Cheap and dirty way of converting this into a tab-delimited file that I already have is this (shrunken to preserve space, ugliness is kept on par with original):
da.Fill(dt)
' da - DataAdapter...
In my project properties I go to publish, options, and file associations and enter ".cms", "Contact manager File" "pqcms" and "1icon.ico", but when I publish and install it does not appear to associate the files...I want to be able to double click on the file and have it open the program but it does not appear to do so.
I believe there ...
If I have a module in a VB.Net class library, will it's visibility be limited to the assembly? What I'm looking for is the VB.Net equivalent of a C# internal static class. Does anyone know the equivalent?
...
I am having a problem with my code. I am using VB.NET and Visual Studio 2010 to write my program. The source of the control that I am using can be found here.
First, I imported the Calendar.DayView.dll file into my toolbox to use as a control. Then I added the following code to my existing code:
Private Sub DayView1_NewAppointment(ByVa...
I need to add some document management functionality into my software. Documents will be grouped by company name and project name.
The folders need to be accessed by the application using the id numbers of clients/projects, but also easily browsed by the end user using windows explorer.
Clients and Projects will be stored in a databa...
Hi
I've got some problems.
I've got this code:
Dim infoID As Integer = objCommand1.ExecuteScalar()
Dim strSQL2 As String = "insert into feedBackHotel (infoID, feedBackView) values(" + infoID + ",'" + FeedBack + "')"
Dim objCommand2 As New SqlCommand(strSQL2, conn)
objCommand2.ExecuteNonQuery()
The problem here is..the strSQL2 can c...
Let's say I have this sub in vb.net:
''' <summary>
''' Validates that <paramref name="value"/> is not <c>null</c>.
''' </summary>
'''
''' <param name="value">The object to validate.</param>
'''
''' <param name="name">The variable name of the object.</param>
'''
''' <exception cref="ArgumentNullExcepti...
I am new to LINQ and trying to learn it. I have a stored proc which returns XML Raw and I need to call this proc using VB.NET and LINQ...
...
What is the approach for storing the latitudes and longitudes for multiple addresses as a one time set up. I need to find the nearby stores using Google Maps and I have to get the latitudes and longitudes of all the available stores. As the data is huge and may increase or change in future, can anyone suggest an approach taking performan...
I am currently reading Beginning ASP.NET 4: in C# and VB (Wrox Programmer to Programmer) and it comes with both C# and VB.NET source code. I am definitely planning to use C# in the future for most of my projects. But VB.NET - is it really worth learning side-by-side with C#? Are there such cases when VB.NET is preferred over C#?
UPDATE:...
Hi!
I have application that use MSSQL database.
Application have module that is using for sending messages between application users.
When one user send message to another i insert message in database, and set message status to 1( after user read message database I update and set message status to 0).
Now,i am using system.timers.timer...
Hi There,
Does anyone have a regurlar expression available which only accepts dates in the format dd/mm/yy but also has strict checking to make sure that the date is valid, including leap year support?
I am coding in vb.net and am struggling to work this one out.
Many Thanks
...
How to input the textbox's unicode string to MySQL database. I changed utf8 charset the MySQL Database. I'm using VB.NET 2005 and MySQL Database for Window application. Please Help me.
...
Hi all,
I'm fairly new to Visual Studio (specifically Visual Basic .NET) but have been programming for quite a long time.
Here at my company we have an Access application that allows users to create documents based on invoices that are in Great Plains, an accounting program. Documents such as invoices, packing lists, export documentat...
In VB.Net, is there any advantage to using & to concatenate strings instead of +? e.g.
Dim x as String = "hello" + " there"
vs.
Dim x as String = "hello" & " there"
Yes, I know for a lot of string concatenations I'd want to use StringBuilder, but this is more of a general question.
...
I have a drop down which has a method which binds data to it:
dropDown.Items.Clear()
dropDown.AppendDataBoundItems = True
Select Case selType
Case SelectionTypes.Empty
dropDown.Items.Insert(0, New ListItem("", ""))
Case SelectionTypes.Any
dropDown.Items.Insert(0, New ListItem("ANY", ""))
Case SelectionTypes.S...