Here's my test code:
Dim testSingle As Single = 7.2
Dim testSingleF As Single = 7.2F
Dim testDouble As Double = 7.2
If testSingle = testDouble Then ' this is false
Label1.Text = "true"
Else
Label1.Text = "false"
End If
If testSingleF = testDouble Then ' this is false
Label2.Text = "true"
Else
Label2.Text = "false"
End ...
I created a Class Library project in Visual Studio 2010 and created added the following VB.Net class:
Public Class Dumb
Private name As String
Public Sub New(ByVal newName As String)
name = newName
End Sub
Public Sub sayHi()
System.Console.WriteLine("Hi " & name)
End Sub
End Class
I built the solu...
I am trying to get all the text between the following tags and it is just not workind
If Not String.IsNullOrEmpty(_html) Then
Dim regex As Regex = New Regex( _
".*<entry(?<link>.+)</entry>", _
RegexOptions.IgnoreCase _
Or RegexOptions.Cul...
I've got some old legacy code that I'm maintaining (please forgive the naming, this was written by a non programmer and the application is not important enough to be rewritten):
Dim Path3 As String
Path3 = "C:\Inetpub\wwwroot\uscgcrc\rsa\RSADocuments\IRBCorrespondenceToPI\"
Dim dirInfo3 As New DirectoryInfo(Path3)
Dim FileContainer3 A...
I'm currently running into a problem regarding animation in OpenGL. I have between 200 and 10000 gears on the screen at a time all rotating. When the window is not in maximized view, my CPU runs at about 10-20 % consistently. No spikes, no stuttering in the animation, it runs perfectly smooth regardless of the number of gears on screen. ...
What are the advantages of using Bonjour in a program (vb.net), is it even possible? Couldn't I get the same end result using just what I program?
...
Consider a MyForm class that contains a shadowed implementation of Show(), and a CreateForm() method that accepts an instance of the form and calls the shadowed sub:
Public Class MyForm
Inherits Form
Public Shadows Sub Show()
MessageBox.Show("Shadowed implementation called!")
End Sub
End Class
...
Public Sub Creat...
How can i use NotifyIcon in WPF in vb not in c#
I want it in xaml
...
Can anyone help explain why the code below fails to retrieve the html
Dim WebReqeust As WebClient = New WebClient
Dim URL as string = "http://www.professionalorganizervannuys.com"
Dim WebPage As String = WebReqeust.DownloadString(URL)
It fails on this particular URL.
Thanks in advance.
...
I'm making a C++ code editor application using VB.NET. I'd like to change the color of the keywords as the user types it. Also I'm looking for a way to highlight some lines of the code.
Is there a way to change the forecolor and backcolour of a piece of text inside a textbox?
...
I am having a problem displaying some pictures (more than one) in a picturebox.
<div id="salary_total" style="display: block;"><table style="border: 3px solid rgb(71, 5, 6); padding-right: 1px;" bgcolor="#ffffff" cellpadding="0" cellspacing="0"><tbody><tr><td><img src="./images/counter/b.gif"></td>
<td><img src="./images/counter/3.gif"...
Question: I have a document management system, and I am building a Web-Service interfaces to the database.
Everything works so far, just that right now, it's totally unsecured, everybody can access it.
How can I incorporate password or private-public key authentication ?
I can only find 'best practises' and using 'windows user' or pas...
I have this class declaration:
Public Class clsColection(Of T)
Inherits System.Collections.ObjectModel.KeyedCollection(Of String, T)
Implements System.Collections.IEnumerable
Implements System.Collections.Generic.IEnumerable(Of T)
...
Public Shadows Function GetEnumerator() As System.Collections.Generic.IEnumerator(Of T...
I'm trying to convert C++ API to VB.Net, but this function is too hard and i don't know how make it work.
Here is the API doc for this function:
void RemoteDllSetReceiver(void *inst, on_received_buffer_t received_buf_cb);
Sets a callback function to receive notifications from the DLL. The prototype of the callback is:
typedef bool...
I would like to give our intranet users and create, edit, colaborate documents via a browser. What is the best way to go about this?
Requirements: The user should be able to:
1. create content,
2. edit content (content created by anyone)
3. records should be kept on who edited what and when
4. should easily be able to go back and forth...
Hi, I am executing a SQL Server 2000 DTS package using C# by following the code from this article http://support.microsoft.com/kb/319985. once the package is executed I am looping through each step to find out if any step has failed and get info about error if it has failed. I also use this information to find out if the package has succ...
Question:
Normally, when you create a HTTP module, you create it as separate dll project and register that dll in the web.config.
Now, is it possible to write a HTTP module directly in an ASP.NET project, so I don't have to create a separate dll project?
Note: Don't say as an added project in the same solution, I mean in the same proj...
Hello,
We are building application that stores objects to isolated storage using .NET runtime serialization.
Problems occur when we update application by adding some new properties to the classes of objects we are serializing. So we want to do some kind of versioning of the objects in isolated storage so we can check if they are obsol...
Hi,
When I try to compile my VSTO Outlook addin, I get this error:
Reference to class 'RibbonBase' is not
allowed when its assembly is linked
using No-PIA mode
Can't seam to find a solution to it online.
Any idea?
Thanks!
Mojo
...