vb.net

Sort list alphabetically

How can I get the resulting generated list of links sorted out alphabetically according to "sTitle"? My sort function on line 272 is not giving me the results I need. Please help. <script language="VB" runat="server"> Function sectionTitle(ByRef f As String) 'Open a file for reading 'Dim FILENAME As String = Serv...

Sharing Objects across WCF Services

I am having an issue similar to this question: Problem with WCF and Multiple Namespaces The major difference I am having is that I don't control both ends of the wire. My setup is similar to this: My.Objects My.LoginService My.Service1 My.Service2 The first thing you do is login via the login service and receive a security ticket. T...

Filter Expression Problem On A Datatable

There is something wrong with my filter expression it isnt working. I am simply trying to return the rows that have a CompanyID of mCurrentID. objts is a datatable Dim mCurrentID As String = lookupInTrenCustomer.EditValue 'populate grid here Dim mFilter As String = "CompanyID=" & mCurrentID Dim sortOrder As Strin...

Vb.net sendkeys & target

When using Sendkeys with vb.net, is it possible to tell if the target of the Sendkeys has changed between sendings? Thank you for your help! ...

xmlSerializer.Serialize -is there a limit to the size of the collection that I can pass to it?

I am using vb.net v4 I have a serialize function: Public Function ListToXML(ByVal pObj As List(Of dcEventEngine.Event)) As String Dim xmlSerializer As New XmlSerializer(GetType(List(Of dcEventEngine.Event))) Dim strWriter As New StringWriter xmlSerializer.Serialize(strWriter, pObj) ...

vb.net 3.5 treeview.sorted=false does NOT turn off sorting! why?

msdn says false is default, but whether or not I explicity set treeview1.sorted=false, it always sorts it alphabetically by the visible node text. How do I get it to stay in the order in which I load the nodes? Private Sub LoadChildren(ByVal ID As Integer, ByVal Node As TreeNode) Dim L As List(Of Integer) = DB.GetChildren(ID) ...

Moving to WIn 7 x64 generates bunch of compile errors in Designer!

I support small local customers with VB2008 and MS Access applications (not VBA!). When I had to replace my machine, the new one came with Win7 64bit. Things failed immediately. I figured out how to compile VB for x86; but when I did that, I got a bunch of compile errors from the designer code, not my own. Typical of the errors is th...

Zip code is dropping leading zero when displayed on excel. Export to excel from vb.net XML to XSLT transform.

I am exporting data from vb.net to excel and it is dropping the leading zero when its displayed on excel. How can I avoid the dropping of leading zero? I read the solution of adding a single quote but it makes my excel sheet column ugly. Also users will complain if they see a single quote on zip code field. vb.net code Response.AddHea...

underline in datagridview

hello, I want to underline all items in one column. My code does not work. dgv.Columns(5).DefaultCellStyle.Font.Underline() thanks. ...

What does HttpResponse.WriteFile Method parameter bool readIntoMemory do?

What does HttpResponse.WriteFile Method parameter bool readIntoMemory do? The MSDN documentation is very unhelpful in this regard as I came across this method and wasn't exactly sure why I'd want to do this or not do this. Note: should anyone respond with "well it reads the file into memory" with no further explanation will be downvot...

ReportViewer / RDLC - how to Selectively hide records?

I'm using vb.net and ReportViewer to show/print RDLC reports. I have a Table control that contains two rows for Detail. The first row prints most of the data, the second row only prints a Comment field. This Comment field only contains a comment for some of the records. I would like that when there is no comment that this second row does...

How to make a release build in VS express 2010

How do I make a release build in visual studio express 2010 (VB) ? ...

problem with stored procedure?

This is my main table structure: The expertise column is a many to many relationship with another table that has a list of available languages. I wanted to have a flattened structure to display all the languages that a person expertise's, so I wrote a stored procedure that stringifies those multiple expertises to fit for each user. ...

How can I create an Extended (custom) Property with EWS?

I have created a little demo application which is able to create a meeting request by using the Exchange WebService (EWS). I would also like to add some custom properties to this item but up to now I have only found examples which use the Exchange Managed API, which I won't use. There must be a way to create these properties by only usin...

Can a loaded DLL know where it is located?

Hello community, I am building a DLL that is used by Office. When Office runs with it, I would like to identify where it is located. Is that possible? ex. of code within the DLL when it is run within Office: // should return C:\tmp\officeaddin.dll, // currently C:\Program Files\Microsoft Office\Office 12 MessageBox.Show(Application.S...

debugging shows that all items in checkbox list as unchecked when there are 3checked

so im dynamically populating a checkbox list. I have confirmed that my text and values are correct for each checkbox but when I check a few and click my event button when I loop through the items they are all set to select=false... Dim resource As ListItem Dim SelectedHashTable As New Hashtable For Each resource In chkResour...

Gridview combine autogenerated fields and template fields

I have several sqldatasources for my gridview. All of the columns are autogenerated. However they all have some consistent fields and I'd like to make those fields template fields so I can modify the edit template for them such as adding a drop down menu. Is this possible? If so, how? :-D Thanks! ...

Is there a query that will return all of the column names in a Microsoft Access table?

I have a Microsoft Access database that I connect to with the Jet Database Engine, using VB.NET. I want to programmatically get all of the column names for a particular table. I would like to do the equivalent of this MS SQL statement: SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'TableName' Is this possible...

Resetting a integer counter vb.net

If I have a double variable that goes through a loop and gets numbers added to it, is it just as simple as saying variablename = 0 to reset it? Jonesy ...

Linq related table not queryable error

Hi all, I've got a problem with Linq in VB.NET. I've created a .dbml file from my db, and everything looks good - relation "arrows" between tables are visible, etc. But when I want to use simple query (taken from 101 Linq Samples by MS): Dim q = From h In dc.Hours, w In h.WorkType I receive an error: Expression of type 'INTegrit...