vb.net

Help Defining RegEx to Capture Line Definition from INI file

Need help defining an expression to capture the four numerics per line that define the lines on a map. 59.684 -4.251 59.575 -5.576 59.575 -5.576 59.437 -6.899 59.437 -6.899 59.27 -8.218 -7.346 23.196 -7.409 23.233 -7.409 23.233 -7.46 23.285 -7.46 23.285 -7.495 23.349 -7.495 23.349 -7.51 23.42 9.172 39.362 9.134 39 9.134 39.288 9.087 39....

Where can I find a clean API for Visual Basic development?

I am completely new to ASP.NET programming, and was asked to work on a small project involving ASP.NET, VB (which I am new to as well) and Microsoft SQL Server 2005. Being used to php/java I was hoping to find some kind of similar API to php.net and the javadoc. It would be very useful to have as I would prefer to work with a text edito...

Accessing class properties in xaml

I've currently created the class below. For some reason though I can't access the properties I've created through my xaml style. Public Class Ribbon : Inherits Button Private mpopDropdown As Popup Public Property Dropdown() As Popup Get Return mpopDropdown End Get Set(ByVal value As Popup) ...

Problem encoding string to ISO8859-1

Hi I'm using this code to convert string to ISO8859-1 baseurl = "http://myurl.com/mypage.php" client = New WebClient client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)") client.QueryString.Add("usuario", user) client.Qu...

Split String in VB.net

Hello, How do I split a string "99 Stack Overflow" into 2 in vb.net I want the first value to be 99 and the 2nd to be Stack Overflow. Please help ...

linq sum in vb.net

I need to make a query that look like this is SQL: SELECT CodProiect, SUM(Valoare) FROM DET WHERE CodProiect = 'cod_pr' GROUP BY CodProiect; How can I write the same thing in LINQ? I have attempted this: dim gac1 = (From ac1 In t_detalii _ Where ac1!CodProiect = cod_pr1 _ Select ac1!Valoare).Sum(Function(ac1...

Wait Cursor Error

I'm coding an advanced web browser. The bad thing is, is that whenever you move your cursor over the window, a wait cursor is displayed. I tried to deselect the wait cursor but it doesn't work! I'm using Visual Basic 2010 Beta 2... Please help!! ...

URL Rewriting and 301 Redirect... Redirects to the original URL

In answering another persons question here on SO, I discovered that there is a small "bug" in my global redirect code. I have wired up a Global class to an HttpModule. It's job is to detect "http:/www." in the URL and redirect the user to the NON www. version Protected Sub OnBeginRequest(ByVal sender As Object, ByVal e As EventArgs) ...

Lock MSChart Gridlines

How do I do the following with an MSChart? Set axes to x: [0 - 1000] and y: [0 - 1]. Show the gridlines when chart has no points. Disable auto adjusting of gridlines. Note: Setting Axis(X/Y).(Min/Max)imum seems to have no effect if a point exists inside the bounds. ...

vb.net passing a value of text box to a variable

Dim SecondName As String = SecondNameTxtBox.text() Is the above statement a correct one? Here I want to assign the value of the text box into tat "SecondName". If it's wrong, please tell me the correct way to write this statement. ...

How do I traverse/iterate through all the objects inside a form in VB.net?

Hi. I have a VB class inside which one of the methods accepts an array of forms. For each form inside the array, I need it to traverse all of the objects, check if they are a specific tyoe (input, label, checkbox, etc.) and get the properties of each object. Then, I want to dump these into a text file in the following format: Form1 ...

vb.net passing a value of text box in javascript function

MotherTongueTxtBox.Attributes.Add("onblur","val_Length(MotherTongueTxtBox.text,"hi friends",Length);") in the above statement val_length s a javascript function in tat function the first parameter shd b the contents of the text box ,the second parameter s a string type, is the statement correct i think it s wrong can u suggest a correc...

"System.NullReferenceException" when trying to fill array

This is my code: Public UserBookings() As String If dr.Read() Then Dim intCounter As Integer intCounter = 0 While dr.Read() UserBookings(intCounter) = dr(0) intCounter = intCounter + 1 End While Return UserBookings Else Return False End If But I get t...

Entity Framework - C# or VB.Net

My company is tossing around the idea of using the Entity Framework when it comes out with .NET 4. We are currently a VB.NET shop, but have some interest in switching to C#. Is there any major arguments for or against such a move? Does EF with C# hold any advantages in performance, coding ease, etc over VB.NET? Thanks for your thought...

Accessing top master page properties in a nested master page code behind

I have a nested master page that has its own master page. The parent master page has a property defined in its code behind. Public ReadOnly Property SelectedPage() As String Get Return _selectedPage End Get End Property How can I reference the parent master page's property from within either the child master page's c...

how to call mysql console using vb.net

Is it possible to call mysql console using vb.net?Or to create a mysql database backup using vb.net. I'm thinking if I could use a .bat file to execute the mysql dump code for me. And then call it using system.diagnostic.process.start in vb.net. But I don't have any idea on how I can call the mysql console.exe. Because I have only exper...

arrays VB.NET vs c

just a sanity check please: in VB.NET: dim myarray(5) as integer gives six elements 0 to 5 but in c? int myarray[5]; gives five elements 0 to 4 ? is this correct? ...

how to backup mysql database in vb.net

Is it possible through the use of a batch file, I'm trying this code: mysqldump --host=localhost --user=root --password=nitoryolai -R hospital >E:\wamp\etc\db-backup\hosp.sql Then vb.net will execute the batch file through s.d.p.s("b.bat") But it doesn't work, it only creates an empty .sql file. Can you tell me what's wrong with the b...

null reference exception was unhandled by user code

sir, i develop the following code in vs2005, now i just using this module in my new project @ vs 2008.. But this error was araised. I cant able to fix this problem... Private Sub DataAccess() Dim errHandle As New ErrorHandler Dim lobjCommon As New eCopsCommonFunctions Try AccessCodeDrplst.DataSource = ...

get system time in vb.net

How do I get the system time using vb.net and copy it into clipboard automatically? Is there a built-in function in vb.net for this? ...