I am well aware that finalizers are typically used to control unmanaged resources. Under what circumstances may a finalizer deal with managed ones?
My understanding is that presence in the finalizer queue will prevent any object, or objects strongly referenced thereby, from being collected, but it will not (of course) protect them from...
Hey SO.
Building a little audio converter which uses Directx to decode the audio (under assumption that the end user has the decoders installed) and I want to write the loaded audio to a wave file in C:\Temp\ to send to the audio compressor because the audio compressors only support uncompressed WAV format.
I'm having a bit of trouble th...
I am a java developer that inherited a vb.net web application. This app relies on a VB class assembly that builds in to a dll. I have made some changes to this class assembly but I cant seem to get the vb.net app to pick up the changes. I thought that using regsvr32.exe or regasm.exe would do the trick but after reading a bit more they d...
I recall being told by a professor the following is bad practice. But it makes stepping through code a lot less tedious. I'm just solicting comments on pros and cons:
Friend Class MyClass
Private isEmpty As Boolean
Public Property IsEmpty() As Boolean
Get
Return isEmpty
End Get
Set(ByVal Value As Integer)
isEmpty = value
...
My LINQ query contains the following Group By statement:
Group p By Key = New With { _
.Latitude = p.Address.GeoLocations.FirstOrDefault(Function(g) New String() {"ADDRESS", "POINT"}.Contains(g.Granularity)).Latitude, _
.Longitude = p.Address.GeoLocations.FirstOrDefault(Function(g) New String() {"ADDRESS", "POINT"}.Contains(g.Granularit...
Hi,
I have IE 8 installed on my machine; and trying to integrate the "Caret Browsing" (navigation using Keyboard) concept into application which i am planning to develop.
My sample application in VB.NET as follows:
A Form - Form1
A Text box - TextBox1
A Button - Button1
A WebBrowser control - WebBrowser1
Added following line of cod...
Something is munged-up here, I just don't know what. I've got some code that looks like this:
If ediFileGroupAbbr = "NIPDSINV" OrElse ediFileGroupAbbr = "WWPDSINV" Then
Dim p As New PrivateBillingAdapter_ForN(ediFileGroupAbbr, businessLocationID, mode, EDIJobItemLogID, BusinessUnitID)
Return p.ProcessEDI(True, False)
ElseIf edi...
In my grid I have data in two columns same for couple of rows. Then again couple of other rows will same with different data.I want make them into alternative sections with colors
In below example(image).
Rows no 1 to 4 has 'High', 'High'. I want make them gray bgcolor for those rows.
Rows no 5 to 8 has 'High','Low'. I want make them ...
I have to automate a program that is outside of my control. The way I'm doing this is to use SendKeys.SendWait("keys") to the other program. The problem is, there are multiple fields that might be active and no way to select a single one with confidence. The fields are all different lengths, so my solution is to copy something really lon...
I have a ListView in my project that has dynamically added/edited/deleted items. When the user deletes an item, I want the item that replaces the deleted item to be highlighted. I tried simply storing the deleted item's index then highlighting the item there (list.Items(index).Selected = True). This works well unless the item deleted was...
Is it possible to have visual studio 2010 automatically add namespaces to classes within folders just like c#?
...
I am trying to make 2 variables available throughout my site. I am parsing the URL in order to retreive both of them.
This code on the page itself works fine.
Dim countryLanguage As String
countryLanguage = (Request.ServerVariables("URL"))
Dim langVar = (Mid(countryLanguage, 2, 2))
Dim countryVar = (Mid(countryLanguage, 5, 2))
I have...
I'm using Telerik RadControls, in my codebehind I have the following function, a portion of which adds buttons to the footer.
Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)
If TypeOf e.Item Is GridDataItem Then
Dim editLink As HyperLink = DirectCast(e.Item.FindControl("EditLi...
I have a Usercontrol: SnazzyForm, which in addition to a couple of borders and and a header area and whatnot, also has a Content Presenter which under .NET Framework 3.5 presented content passed to it in other forms that used the control just fine.
However after moving the project to 4.0 I am greeted with "Cannot add content to object o...
I have to check duplicate records in ArrayList. In ArrayList each item should have atleast 2 times before insert new Item. Per example
Example 1:
AL(0) = '1'
AL(1) = '1'
AL(2) = '2'
AL(3) = '2'
AL(4) = '2'
Method has to return = True, because each value has atleast 2 times in the list.
Example 2:
AL(0) = '1'
AL(1) = '1'
AL(2) = '2'
A...
I hate to ask this question on this forum, but I'm having a lot of trouble finding it on these online tutorials. Basically, I'm learning about SQL, VB.NET, and how to glue the two together, and I've learned about using SqlCommand.executeScalar() to get the first entry in a table. But that's all it's really good for, right? Or is there...
Hi all,
Could anyone please enlighten me about how one might go about binding to a gridview in ASP.Net 4 in a scenario where the first row of my gridview should be the headers, the second should be a combobox for each column and the third is the beginning of my actual datasource.
If you can imagine what I am trying to achieve is an abi...
hi all,
I want to make a setup project for dot net, which should Install application and during instillation if it found application was previously installed in different location then it should ask for db files from that location else new files will be used from new installation.
...
Hi,
I'm looking for such control in order to represent a hierarchical list that I can sort separately each set of master (parents) and his details. Something like that:
http://www.microsoft.com/Global/project/en/us/PublishingImages/ProjPortServ-scrn-2-lrg.jpg
I think that such a control does not provided in .NET
Do you know for a good ...
A dataset will be shown in 2 different columns.
Can I use for this the repeater-control or is there a more appropriate control ?
Does anyone know a good example?
...