vb.net

Parsing and getting specific values from CSV string

I am having a string in CSV format. Please see my earlier question http://stackoverflow.com/questions/2865861/parsing-csv-string-and-binding-it-to-listbox I can add new values to it by some mechanism. Everything will be same except the new values will have numeric part = 0. Take example I have this exsiting CSV string 1 , abc.txt , 2 ...

nservicebus compiler error "reference required to assembly nServicebus" in vb.net programs

I downloaded the nServicebus binaries as of May 17th and have two different vb.net projects (one in .net 3.5, the other in .net 4.0) that both have the error "Reference to Assembly nServicebus, Version 2.0.0.1145, culture=neutral, PublicKeyToken=9fc386479f8a226c containing the type NServicebus.IStartable. Add one to your project. I hav...

How Can I comapre Two excel sheet using C# With the help of VBA code that I have below?

Dim LastRow_1 as Integer Dim LastCol_1 as Integer Dim Data_1 as Range Dim LastRow_2 as Integer Dim LastCol_2 as Integer Dim Data_2 as Range Dim Sh_1 as Worksheet Dim Sh_2 as Worksheet Dim X As Long Dim Y As Long Dim C_1 as Range Dim C_2 as Range Set Sh_1 = Activeworkbook.Sheets("Sheet1") Set Sh_2 = Activeworkbook.Sheets("Sheet2") L...

Making Infragistics ultrawingrid, desired columns readonly

I am stucked at the situation where I need to disable few columns of a each row ,except newly added row. That is I have 10 columns in grid and I want first three columns that are binded from the rows coming from db as disabled or read-only, rest are editable. if I add new row then all columns of new row must be enabled until and unless ...

Windows Forms: Unable to Click to Focus a MaskedTextBox in a Non TopLevel Form

Like the title says, I've got a Child form being shown with it's TopLevel property set to False and I am unable to click a MaskedTextBox control that it contains (in order to bring focus to it). I can bring focus to it by using TAB on the keyboard though. The child form contains other regular TextBox controls and these I can click to f...

ISO-8859-1 decode vb.net

Hello, I'm having problems decoding a file with "ISO-8859-1" encoding. For example, I can't decode "%E7" to "ç". Can you help me? P.S.: I'm using VB.NET Thanks, Pedro ...

What is the "right" way to make a modular ASP.NET page?

Hi, I'm writing an internal program using ASP.NET (Visual Studio 2008). The basic premise is that folks will connect to the page through their web browser, put in some data (which will be validated and sanitized of course), click "submit" and then a query will be run on a database. I told you that story so I can tell you this story - I ...

Passing derived objects in a constructure

This is a bit of a convoluted question, hopefully I can make it clear. I am finding that this may not be possible, but am trying to see if anybody has a solution. I have four classes, two are core classes and two are those core classes extended: extUser Extends coreUser extSecurity Extends coreSecurity In the constructor for coreUse...

HTML input not working correctly with AJAX update panels used else where on page

I have some update panels on my page that do some asyncpostbacks to keep some dropdownlists correctly populated. My problem is that on my page i have an HTML input that is handling some file uploads. With the AJAX on the page with asyncpostbacks, and while i step through my code behind, the files arent being uploaded. Using a postbacktri...

how to call back to original form

I have 2 forms. Form1 and Form2. When Form2 is closing, how do I make Form2 to inform Form1 that Form2 is closed. Do I need to use Delegate, if yes, how? thanks. ...

Global Entity Framework Context in WPF Application

Good day, I am in the middle of development of a WPF application that is using Entity Framework (.NET 3.5). It accesses the entities in several places throughout. I am worried about consistency throughout the application in regard to the entities. Should I be instancing separate contexts in my different views, or should I (and is a a...

Issue with DBNull when using LINQ to DataSet

I've got the following LINQ Statement: Dim PSNum As Integer = 66 Dim InvSeq = (From invRecord In InvSeqDataSet.RptInvSeqDT.AsQueryable() _ Where IIf(invRecord.IsPack_NumNull(), False, invRecord.Pack_Num = PSNum) _ Select New With _ {.Inv = invRecord.Invoice_Num, .Seq = invRecord.Inv_Seq})...

Interface implementation Diferences

What is the diference of using interfaces like ... I have an interface Public Interface IProDataSource Function read() As Integer End Interface Then a class Public Class DataSource : Implements IProDataSource Function read() As Integer Implements IProDataSource.read some code... End Function End Class ...

WPF Spellcheck Engine takes up too much memory.

Each datatemplate in my WPF ItemsControl contains FIVE custom bindable richtextbox controls. It is a data-driven app that for authoring multiple-choice questions --> The question and four answer choices must all support: 1) Spell check 2) Rich formatting (otherwise I'd use regular textboxes) The spell check object in .NET 4 has a Frie...

Performance Related features for migration from .net 2003 Framework 1.1 to .net 2008 framework 3.5?

I am work on VB.net 2003 Framework 1.1 for last 3.5 years in windows Application. We are currently migrating to VB.net 2008 framework 3.5, but i don't know about the features which related to ADO.net and which is important to performance. I know linq to SQL but our architecture is made in .net 2003 so we should follow this. Any features...

Alternative Button controls for winform?

Where can I find alternative button controls for vb.net Winform? ...

dynamicaaly created dropdownlist

hi, i am working in project. i have a problem in dropdownlist's selectedindexchanged event. when the value of district dropdownlist is changed then it is firing his own selectedindexchanged event but it does not fills licencee dropdownlist and when the value of dynamically created branddropdownlist is changed than it first fires the sel...

VB.NET logical expression evaluator

I need to test a logical expression held in a string to see if it evaluate to TRUE or FALSE.(the strig is built dynamically) For example the resulting string may contain "'dog'<'cat' OR (1>4 AND 4<6)". There are no variables in the string, it will logically evaluate. It will only contain simple operators = > < >< >= <= and AND , OR and O...

iTextSharp move objects in PDF

Hi, I am trying to move content in a pdf document using iTextSharp. We have a number of documents that are the same size i.e. 488x320mm, the content within these documents is always positioned relative to the top right of the document but varies in size i.e. 210x330mm, 240x350mm etc. What i need to do is 'find' the content block and mo...

Field of related table does not update in WPF DataGrid when Key changed

We have a DataSet with an order table and a currency table. The currency id of th order table is linked to the currency table with a relation (see code): Public Function GetOrders() As DataSet Dim dtsOrder As New DataSet Dim tblOrder As New DataTable Dim tblCurrency As New DataTable 'Define columns tblOrder.Columns....