vb.net

Stylesheets for .NET Windows Controls

Hello I was wondering is there any option of using Stylesheets for .NET Windows controls ? If not, which is the best way to make the UI look consistent.I need to use VS 2005 to make the changes in the UI. Regards ...

ASPxCombobox, Allow user input and dropdown selection

Hi, I'm using devexpress ASPxComboBox, however I wanted to know how I can allow the user to enter values(in case it is not in the list) or choose from a dropdown list. An example would be great! Thanks, Tim ...

Simple .NET CD/DVD burning component

There's a number of postings about IMAPI in .NET, including these: http://www.codeproject.com/KB/miscctrl/imapi2.aspx http://www.vbaccelerator.com/home/net/code/libraries/writing_cds/imapi/article.asp But I can't say they're straightforward. First link looks good, though its C# WinForms realization doesn't allow simple re-using in VB.NE...

Get object information in a running process

I have a vb.net application which runs as a service. I also have another Windows application that serves as the service interface. In brief the service watches some folders for new files and imports them into various databases. In the service I have an class called 'importFile' containing basic properties such as 'FileName' and 'ImportS...

Nothing != null - or does it?

Recently in a previous project I came across a peculiar difference between VB.NET and C#. Consider the following C# expression which: null <= 2 This expression evaluates to False which is what I would expect. Then the corresponding VB.NET expression: Nothing <= 2 I was surprised to learn that this expression actually evaluates to ...

How can I get the local group name for guests/administrators ?

Question: I use the code found at http://support.microsoft.com/kb/306273 to add a windows user. The problem is i need to add the user to a group, but the groupnames are localized. E.g. the MS-example uses an english computer, which means you can get the guest group like this: grp = AD.Children.Find("Guests", "group") But on a non-eng...

What options are available for a vb.net developer when using Fluent NHibernate?

I've been using c# for the past year and I enjoy the power you get with Fluent NHibernate. One question that I get from friends is "nice but how can vb.net programmers use this?" So for example- the below is a c# mapping class. How would someone do this with vb.net? public class PostMap : ClassMap<post> { public PostMap() { Table("Po...

Specflow - getting specflow to generate vb.net code in the output window

Hi does any one know how to configure specflow to output step definitions in a nunit output window? Thanks! ...

Can I define an assignment operator in vb.net Structure?

I am having a structure that is actually a simple byte with more functionality. I defined it this way: Structure DeltaTime Private m_DeltaTime As Byte Public ReadOnly DeltaTime As Byte Get Return m_DeltaTime End Get End Property End Structure I want to have these two functionalities: Public ...

How do I access changed (via GridDropDownListColumnEditor) values of a Telerik RadGrid server-side?

Details: I'm basically trying to implement the functionality of the example here (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx) on my own site, but instead of using a data source control located in the page markup (like in the example: SessionDataSource), I'm using a dataset that I get fro...

ServiceBase Credentials

I have a window service that Inherits System.ServiceProcess.ServiceBase. While running in debug mode (havent tested compiled), the thread does not see the current user credentials. I need the credentials so I can set up the WebProxy and I would prefer to use the account that service is running under instead of passing the user and pwd ...

Is there a .NET data-type smaller than a byte?

How about a Nibble etc. ...

ItextSharp and CCITTFaxDecode

Hello everyone, I'm currently trying to extract an image from a pdf file using iTextSharp. The pdf is made from a scanner: it has a single page that contains one big image. When looking at the file I find the following: << /Type /XObject /Subtype /Image /Name /Obj3 /Width 2480 /Height 3507 /ColorSpace /DeviceGray /BlackIs1 true /Bit...

WinForms: Locating the relative position of two controls

I'm writing a VB.Net WinForms application that has multiple data girds on any given form. On one such form, the data grids are loaded into split containers which in turn are located on a tab control. The load method for each data grid is threaded so that an animated "Loading" form can be shown. I would like to position the new loading...

SerialPort events won't fire on Windows Server 2008 using .NET 2.0 Application

I have a program that reads data from a scanner via the serial port. This program works fine on Windows XP. We have a terminal server set up running Windows Server 2008. I run HyperTerminal on our test terminal, it connects and reads the scanner data fine through COM1. I run my app on that same test terminal and get nothing when I sc...

Filter parent/child table (one to many association) in linq query based on entities in child table?

I have a table (Projects) which is linked to projectVersions on projectID projectVersions contains several columns on which I'd like to filter a returned project (and associated projectVersions) list. For example there is a "capacity" column and a "country" column. I am doing a filtered list of projects on one page and I'd like to inc...

run a program from a windows service

I have a program which i want to invoke from windows service. xsftp.StartInfo = New ProcessStartInfo("c:\stage\psftp.exe", "[email protected] -b c:\stage\script.bat -pw XXX") xsftp.Start() The same code works fine if i write in a console application, but from windows service it wont run, i see the psftp is being started in the task man...

Browser scrollbars in ASP.net (how to set them)

How do I set the scrollbars in an ASP.net page dynamically? When a user comes to certain pages on my site I would like the page to be scrolled down about halfway. Is there a way to do this without using Javascript? ...

Listview edit mode

I am currently using a listview WITHOUT a data control.When i click on the edit button the listview will not enter edit mode. Any help would be appreciated, thank you very much <asp:ListView ID="Lv_Test" runat="server" InsertItemPosition="FirstItem" OnItemEditing="Lv_TestItemEditing"> <LayoutTemplate> ...

Comparing two generic lists on a specific property

I'm using VB.NET with .NET 2.0. I have two lists, and I want to compare the lists on a specific property in the object, not the object as a whole, and create a new list that contains objects that are in one list, but not the other. myList1.Add(New Customer(1,"John","Doe") myList1.Add(New Customer(2,"Jane","Doe") myList2.Add(New Cust...