Hi all.
I've always use String.IsNullOrEmpty to check for a empty string. It recently come to my attention that a " " count as not a empty string. For example,
Dim test As String = " "
If String.IsNullOrEmpty(test) Then
MessageBox.Show("Empty String")
Else
MessageBox.Show("Not Emtpy String")
End If
It wi...
How come software created in an older framework version won't run on a newer framework version?
Actually whenever i try to run some old specific software having .net 3.5 framework on my PC they show they needs .net framwork 1.1 . What a bad thing?
My newer version of Photoshop ans Ms office open all lower version files.
...
I am trying to create a function to convert a mapped drive path to a UNC path. I did some googling and found several different pages on the matter. I am most interested in the first one, but I cannot seem to get the code to cooperate. Since the original post was in C#, here is my VB.NET conversion:
Public Shared Function GetUniversalNa...
OK, I am having and issue with Entity Framework. I have had it working, but have now added several more entities to the model, and now I am getting the above error. For debugging purposes, I have created a test form with a grid control to populate from my Projects entity collection. FYI, I am using GUID's for my primary keys. I only have...
I've got a simple function that takes a List parameter. While working with it, it copies it and reverses the copy using .NET's List(Of T).Reverse method.
Private Function FindThing(ByVal Things As List(Of Thing)) As Thing
Dim ReverseOrderThings As List(Of Thing) = Things
ReverseOrderThings.Reverse()
For Each t As Thing In R...
Anyone have experience with compiled query syntax for VB? I'm used them a few times in C#, but can't seem to make the translation. My code is below:
#Region "Locals"
'Data context objects '
Private _dbOrderInfo As New OrderInfoDataContext
#End Region
#Region "Delegates"
Public Shared ReadOnly Func(_dbOrderInfo, Boolean, IQu...
Is it possible to create anonymous delegates in vb.net version 8 or earlier? If so, could someone provide an example of the syntax? Thanks.
...
Hi,
This is kind of two questions (one more specific than the other).
If I have a method like this:
Public Function Blah(String Foo)
End Function
Can I qualify Foo against another type (for instance can I require that Foo be a String that also implements IInterface?).
I'm imagining something vaguely similar to this:
Public Functio...
I have a problem with using a script that adds a NiceEdit toolbar to a text area when that text area is within an Ajax tab.
I want to know if I should refer to it in a different way than just the ID.
I mean the ID of that text area, I tried to take the text area outside the Tab Container, it works, but when I return it, it simply doe...
Hi ,I would like to know if there are some in built functions for the scenario that is described below :
The input is the path of a parent folder. Wat the function must do is , it should list out all the .zip files inside that parent folder.The parent folder can contain any number of subfolders, and the same applies to the subfolders to...
How do I define the Trace Constant for a Web Site in VB.NET to enable trace output? I know where it is for web applications, but I cannot find it for web sites.
...
I need to get the sytem idle time.It must be developed in vc++ and the code should not use hooks is there any possible way of getting SystemIdleTime from taskmanager
...
I have the following function that loops through a directory and checks for a specified folder and file:
Private Function VerifyPath(ByVal root As String, ByVal folder As String, _
ByVal file As String) As Boolean
Dim folders As New List(Of String), files As New List(Of String)
Dim oDir As New IO.Di...
Please excuse my lack of knowledge here but could someone let me know how i can get the first 16 bits of a 32 bit hex number.
...
Has any one used BITs in VB.NET? If so, do you have code samples and advice?
I was looking at SharpBits but I have a VB project that I wanted to use BITS for. Is it possible to use it with my VB.NET program? (.NET 2.0) I was tempted to try to convert each class to VB.NET in the SharpBits.Base folder but figured I'd ask in case som...
Will LINQ's parallel extensions automatically detect the number of cores and utilize them all? Conversely, if the code is run on a single core machine, will it still work or do I have to detect the number of cores and tell PLINQ how many to run across?
Sadly, I don't have access to any single core machines to test my code on so I can...
Hi to all!
As the title says, how can generate (and display) images on the fly for simple charting, resizing etc?
Thanks
...
I have a context menu attached to a panel, that should mirror commands available in a toolbar menu.
Currently in my MouseUp event, I set the enabled state of the MenuItems, and add them to the context menu:
ctxMnuLinks.Items.Clear()
ctxMnuLinks.Items.Add(mnuLinksOpen)
ctxMnuLinks.Items.Add(New ToolStripSeparator)
ctxMnu...
Hi,
I think know how to do this in C# but I'm having syntax trouble in VB.NET because I need to take advantage of the 'handles' event stuff.
I have different events that I somehow (probably delegate) need stored in a property of an attribute (I just add an attribute to a property linking to the corresponding event).
E.g.
<BindEvent(E...
i am using a richtext box in my vb.net application and i need to dispaly top ten records from the database in it.but it is displaying only 1 record.what to do??
kindly help.....
...