I'm encountering a hang when the program tries to access the fruit database. I've already enabled network access MSDTC on both my development computer and the SQL Server server.
Code:
(pardon the code coloring...SO's misinterpreting my VB .NET)
Using ts As New TransactionScope
Dim fruit As New FruitDataContext
D...
So I'm building an application that is going to do a ton of code generation with both C# and VB output (depending on project settings).
I've got a CodeTemplateEngine, with two derived classes VBTemplateEngine and CSharpTemplateEngine. This question regards creating the property signatures based on columns in a database table. Using the ...
I'm working with some very large files residing on P2 (Panasonic) cards. Part of the process we employ is to first generate a checksum of the file we are going to copy, then copy the file, then run a checksum on the file to confirm that it copied OK. The problem is, is that files are large (70 GB+) and take a long time to complete. ...
What will be the code when I try to make a combo box read only?
...
I have this code, but I have a problem.
When I update but do not really made any changes to the value and press the update button, the data becomes null. And it will seem that I deleted the value.
I've taught of a solution, that is to add both combobox1.selectedtext and combobox1.selecteditem to the function. But it doesn't work.
comb...
how would i create edit read use table in ms access via vb.net please give me some help
...
I've been converting all kinds of other things, classes, interfaces, ASP.NET MVC apps, and WPF applications, but I am stumped as to how to convert a windows forms application, as the whole structure seems to be different. Does anyone have any advice on how to tackle this problem?
I see essentially that you have two files, Form1.cs and F...
My application uses a ListView control to display some data from a database, and I would like to make the height of the row bigger (it is in the 'Detail' view). Here's a screenshot at the moment:
http:// www.freeimagehosting.net/uploads/01478dd96f.png
(Sorry about having to malform it, SO doesn't let me post more than one hyperlink)
A...
I have a DataGridView which is filling from Table in SQL Server Database. One of it's columns is "price".
Type of column in DGV is automatically sets as Decimal.
In some cases I need to write in cells of this column text like "none", instead of price.
How can I do it?
DGV.Item("price", 0).Value = "none"
doesn't work, because of dec...
Hello,
I use a .NET richtextbox and I want to have the EnableAutoDragDrop property set to True. This allows user to drag&drop text, rtf and images around etc.
However, I need to process files dropped into the richtextbox myself - I do not want them to be embedded as OLE objects when they are dropped.
How can I overcome this? Is there ...
I'm in the process of moving from ADO.NET to Linq. The application is a directory search program to look people up. The users are allowed to type the search criteria into a single textbox. They can separate each term with a space, or wrap a phrase in quotes such as "park place" to indicate that it is one term.
Behind the scenes the d...
Hello, I´m having some problem to convert my VB6 project to VB.NET
I don't understand how this "AddressOf" function should be in VB.NET
My VB6 code:
Declare Function MP4_ClientStart Lib "hikclient.dll" _
(pClientinfo As CLIENT_VIDEOINFO, ByVal abab As Long) As Long
Public Sub ReadDataCallBack(ByVal nPort As Long, pPacketBuffer As B...
I've seen many examples in LINQ but i'm not able to reproduce the same result in vb.net.
I have following code:
Dim context As New MyModel.Entities()
Dim rnd As New System.Random()
Dim gardens As List(Of Tuin) = (From t In context.Gardens Where _
t.Approved = True And _
...
I have a website (coded in vb.net) with an "admin" section (the admin section being a folder in the actual site)... So in every page of the site I'm using my own custom class as the page base (which has been set in the web.config file) but I want to inherit from different class for the files in the "admin" folder... Is there any way to i...
I have a listbox and I want to loop through each of the items to see if the string im looking for is inside. I know I could do .contains but that wouldnt look at substrings. The code im using looks like this:
While tempInt > Listbox.items.count then
if searchString.contains(listbox(tempInt)) then
end if
tempInt+=1
end while
Everything...
I have a button which is in update panel. When I click on button then it click event run two times. How can I prevent second time click event?
...
I'm noticing this error more and more in my error logs. I've read through the questions here talking about this error, but they don't address what I would like to do (see below).
I'm considering three options, in the order of preference:
1) When submitting a form (I use formviews almost exclusively, if that helps), if potentially dang...
Hi have a GridView associated with an XmlDataSource that's structure is dynamic. Essentially, the service that provides the XML simply leaves off an attribute when there's no value, instead of returning an empty value.
This tosses an error and I the rows that come after the one with the missing attribute are not rendered. My issue is th...
I have a Oracle procedure to which I have to pass a datetime value (2/5/2010 11:46 AM)
How do I pass this value from VB.net. When I pass the date as shown below it is not returning any records though there are records.
With Cmd
.Connection = FactsConn
.CommandType = CommandType.StoredProcedure
...
Ok everyone, I must be missing something here.
Every LINQ example I have seen for VB.NET anonymous types claims I can do something like this:
Dim Info As EnumerableRowCollection = pDataSet.Tables(0).AsEnumerable
Dim Infos = From a In Info _
Select New With {.Prop1 = a("P...