vb.net

LINQ To SQL: Getting primary key id number from Table WITHOUT making a second trip?

hello, how would i get the primary key id number from a Table WITHOUT making a second trip to the database in LINQ To SQL? right now, i submit the data to a table, and make another trip to figure out what id was assigned to the new field (in an auto increment id field). also, seond part of my question is: i am always careful to know th...

calculus engine in vb?

is there an easy to use library or engine for .NET that does calculus? ...

Does LINQ To SQL auto update the LOCAL/CLIENT id column after a SubmitChanges call?

just want to know if linq to sql auto updated the id column of a class (table row object) after SubmitChanges is called inserting a new row to that table, that would be fantastic, would anyone be able to confirm this? ...

how can I validate dot net application config file(ex, app.exe.config) on console?

is there any tool to validate configuration file? ...

how to highlight matched keywords in a listview?

Hi. I have a search button and I want the search results to be highlighted. For example, I want to search a topic and the results will be shown in a listview. I'm using ASP and vb.net and the result of query is based on the records in my database which is MYSQL. My question is how can I highlight matched keywords in a listview control? T...

BindingNavigator in VB.NET 2008

I have this DataGridView and a BindingNavigator.. Whenever I add a new entry, it returns an error that says: 'Column 'newsID' does not allow nulls.' But in my MySQL database, the newsID column is set to AutoIncrement. How will I solve this problem? Thank you! Here's my code: Public Class FormNews Private Sub FormNews_Load(ByVal ...

Why will this run in 32bit, but not 64bit? (x86 vs x64 in compiler options)

I'm using the following code to iterate through and find windows containing specific strings in their title bars. I have two projects containing this identical information, yet for some reason - it works when targeted to x64, but FindWindowLike returns 0 always on x86. I need this to run in x86. I am developing this on Windows 7 x64, bu...

Web service execute on remote computer

Hi! I'm using asmx web service to lock a folder on remote computer! When I run web service on local machine everything working fine, but when I run it on remote computer nothing happen, folder on remote computer stay unlock! I supose that I need to set security permission for this web service on remote computer, but i don't know wher...

AddHandler vs. Handles - what is the difference?

Understood that Handles is only a way to add in constructor the AddHandler, but in general these two are equivalent. True? ...

Server code in Javascript

I have: Page.aspx Page.aspx.vb TestClass.vb I'm trying to access a shared property of the TestClass class from the Page.aspx. This code works fine: ... <head> <script language="JavaScript"> <% if System.Globalization.CultureInfo.CurrentCulture.Name.ToLower = "pt-br" Then %> alert('portugues'); <% else %> ale...

Identifying a certain node in XML

<enviNFe versao="1.10"> <idLote>000000000000094</idLote> <NFe> <infNFe Id="NFe35090254517628000198550010000000011870030005" versao="1.10"> <!-- ... content ... --> </infNFe> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"&gt; <!-- ... content ... --> </Signature> </NFe> </enviNFe> I have this XML fi...

Using Large Arrays in VB.NET

I want to extract large amounts of data from Excel, manipulate it and put it back. I have found the best way to do this is to extract the data from an Excel Range in to a large array, change the contents on the array and write it back to the Excel Range. I am now rewriting the application using VB.NET 2008/2010 and wish to take advantag...

'out' issue in VB.NET

When in C# we have the out and ref parameter options, in VB there is a only one: ByRef. Now, little 'problem' when trying to 'eliminate' the compiler warning saying that test was not initialized before passing as argument: Dim test As MyParsableClass ' = Nothing need imperatively?? ' ' some code ... ' MyParsableClass.TryParse("value",...

please help me to create Nullable String Parameter in Vb.NET

please tell me how to implement Nullable Parameter of type string in vb.net Function: sub savedetail(byval name as string, byval age as integer) if name isnot nothing then some work end if end sub i am calling it like thing savedetail(nothing,34) //here is giving me format exception exception : System.FormatException: Input st...

File Icons and List view

How to retrieve file icons associated with the file types and add them with the items of Listview in vb.net i read about SHGetFileInfo but i didnt understand anything from that please give me solution or please explain me ho system works with the .net controls in details :( please help me ...

How can I create a Nullable Optional Numeric (integer/double) parameter in VB.NET?

How can I create a nullable numeric optional parameter in VB.NET? ...

Checkbox DataBindings - Checked vs CheckState

Can anyone tell me the pros and cons of using the checkboxes checked property vs the CheckState property for databinding? Thanks. ...

Text input issues with Visual Basic

Ok, I'm writing a program in vb. It's simply a text editor. However i've run into a little snag. My program has options to click a button and text is inserted into the text box. I am using this line: textbox.AppendText (sometext) Now this code works great if i want the text to be added at the bottom of the page. So here's my question,...

.Net Localization Question. Japanese Characters Display as Squares.

OK, I don't do much .Net programming, but I do have one that I maintain, so the answer to this may be obvious. Setup: Windows 7 Ultimate with All Language Packs Installed Visual Studio 2008 Winforms VB.Net project. I'm in the process of localizing this project, and when I'm making the Japanese version of the forms, the characters di...

Intersect extension method, case sensitivity not working

Hello, I am trying to compare the contents of 2 collections in a unit test in .NET using MSTEST. To make things simple, instead of having to .Sort() and then loop through the collection and compare items one at a time, I've found the new and very cool .Intersect Extension method. It seems to work great by doing: Assert.AreEqu...