I need to split a string at all whitespace, it should ONLY contain the words themselves.
How can I do this in vb.net?
Tabs, Newlines, etc. must all be split!
This has been bugging me for quite a while now, as my syntax highlighter I made completely ignores the first word in each line except for the very first line.
...
I'm in the process of transplanting a unit test written in vb.net to the larger project written in c#. However, this little ditty has me looking for help.
Public Sub object_DataChange(ByVal TransactionID As Integer, ByVal NumItems As Integer, _
ByRef ClientHandles As System.Array, ByRef ItemValues As System.Arra...
Stack Overflowers:
I have been racking my brain trying to get an List(of T) type array to be the property of a class. I know there has to be a simple way of doing it and I can't find a good example on google. Everytime I create a class that I think will work I get the "Object reference not set to an instance of an object" error when I...
I am developing a tool to automate testing of a web application. I want to handle the popup messages thrown in error scenarios. The problem am facing is after a button click a popup message is thrown, but only after a response is given to the message box(ie clicking on any buttons in the message box) the execution continues, till then th...
whatd does following code do in VB?
Convert.ToInt32(rmaValidationCode.ToCharArray().GetValue(0), 16) Mod 2) = 1
note :Private rmaValidationCode As String
...
I am using ASP.NET and C#.
I must read a cookie called "TheCookie".............
TheCookie have about 3 values in them. Cookie1, Cookie2 and Cookie3.
How would i get the value in code to read Cookie2's value inside "TheCookie"?
This is how i would read when a cookie only have 1 value, but i dont know what to do when there are multiple...
I'm using visual basic 2008 express edition by linq to sql for my database operation such as edit records. I did not use any sql server but I'm just using the built-in sql server within the visual basic 2008 express. I tried to revised the codes, no error in syntax but there's an error at runtime and it pops-up a window message saying it...
I'm using visual basic 2008 express edition by linq to sql for my database operation such as edit records. I did not use any sql server but I'm just using the built-in sql server within the visual basic 2008 express. I tried to revised the codes, no error in syntax but there's an error at runtime and it pops-up a window message saying it...
I have been looking at a class that has a method that accepts a parameter that is of the same type of the class containing the method.
Public Class test
private _avalue as integer
Public Sub CopyFrom(ByVal from as test)
_avalue = from._avalue
End Sub
End Class
When used in code
a.CopyFrom(b)
It appears that instance "...
Below the xml doc
<Root>
<Global>
</Global>
<local>
<section name="A">
<subsection name="A">
<innersection name="A">
<Property1>
</Property1>
</innersection>
<innersection na...
I am having difficulty dynamically compiling a DLL for use with Silverlight 3.0. My goal is to take some rules provided by my users and compile them into a DLL for custom editing purposes.
I created a Silverlight class library project in Visual Studio to get the command line for compiling a Silverlight class library. Based on that an...
Hello,
Yes, this question has been asked before, but I don't feel there's been a good enough answer, or a solution I can relate to.
Leading from this question - Displaying a PDF on a Windows Form, I'd like to display a PDF in a WebBrowser Control, but I'd like the PDF to be an EmbeddedResource.
This question - Describing res protocol...
Is it possible to create (set formatting, add text by form etc) a PDF document in VB.NET without using any third party libraries? This would be done in a website.
...
I have a base class defined as:
Public MustInherit Class BaseRepository(Of T As Class)
and a class that inherits from this class, defined as:
Public Class CommunicationTypeRepository
Inherits BaseRepository(Of CommunicationType)
For testing purposes I have created a helper method that will use Moq to help fetching some ...
While I do know the above goal is rather challenging to achieve, I know it can be done.
What the one I made does:
It compares each word to a word from the list, if its a match, it will physically select the text and change the color, and finally it will return the carat to the position it was in when it highlighted.
Issues with this:...
I am having some trouble with a LINQ to dataset query. I have the problem that data is returned to the dataset as a double and could be null. When I get the data into my LINQ query it truncates to one decimal place. I am wondering if anyone can tell me the best way to set the precision so that it retains two decimal places? I have tr...
I'm having an issue finding an UpdatePanel inside of a Gridview inside of a Formview in Javascript. The Below Doesn't work.
var UpdatePanel3 = $get('<%=FormView1.FindControl("Gridview1").FindControl("UpdatePanel3").ClientID %>');
How can I find that control??
...
I'm converting some C# code into VB.Net and was stuck on second half of this line:
HttpWorkerRequest workerRequest = (HttpWorkerRequest)provider.GetService(typeof(Http WorkerRequest));
What would this code be in VB.NET?
I have the easy part:
Dim workerRequest As HttpWorkerRequest =
...
I have a very interesting LINQ question. I have a document, that I am trying to filter results on, but to filter, I am matching on a REGEX result from one element of the XML.
I have the following, working LINQ to XML to get the individual data that I'm looking for.
Dim oDocument As XDocument
oDocument = XDocument.Load("test.xml")
Dim ...
I would like to calculate a new date simply by using the build-in dateadd function, but take into account that only weekdays should be counted (or 'business days' so to speak).
I have come up with this simple algorithm, which does not bother about holidays and such. I have tested this with some simple dates, but would like some input if...