vb.net

Gain control over already opened window.

I Am using vs10. I have the processid and the title of the window that is running. How do i do formborderstyle.none to that window. oops EDIT::::The window that i want to edit is the one that opens from Shell("....") here is my code so far. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.E...

How do I create a generic property in VB.NET?

I'd like to do something like this: Private _myCollection As IList(Of T) Public Property MyProperty(Of T)() as IList(Of T) Get Return Me._myCollection End Get Set(ByVal value As String) Me._myCollection = value End Set End Property Basically, I want to have a collection of items that may be of any type...

How to Print DataGridView with RightToLeft Layout(vb.net)

When I try to Print the content of DataGridView and view it with PrintPreviewDialog , the layout of the DataGridView Content is From LeftToRight although the property of DataGridView (RightToLeft) is true . how can I handle this issue ? ...

Is it possible to work on the same assembly in different projects in .Net?

I'm interested to know how people work in large teams of developers. I work on my own, and each time I create a brand new control, I create a new project to keep all the related files together. I have various common helper assemblies that I import but, for the most part, distinct controls are kept in distinct projects. I'm wondering w...

Drag and Drop Deployment Cannnot find DLL

Hi guyz After I loaded a new reference to my project, I can no longer run my program on another pc without installing it. I attached an image of the exception message. If anybody can help I would really appreciate it! ...

Enumerate Windows user group members on remote system using vb.net

I am trying to do the same thing in vb.net as the op in this post see below but I would like to do it using System.directoryservices method just like he mentioned later in the post. i don't see why i can't since I am able to add a user to the admin group using DS method. ex. Public Shared Sub AddAdminAccount(ByVal username As Str...

.Net Oracle ORA-24338 'statement handle not executed' error and some error in one stored Procedure

Hi, I have the following Stored Procedures create or replace PROCEDURE WEB_AC ( v_iDocid IN NUMBER DEFAULT NULL , v_valor IN VARCHAR2 DEFAULT NULL , v_campo IN VARCHAR2 DEFAULT NULL , v_error OUT NUMBER ) AS v_campoid NUMBER(5,0); v_tipodato VARCHAR2(50); v_DOCTYPE NUMBER; v_tabla VARCHAR2(50); v_procedure VARCHAR2(70); BEGIN...

Create a Video Stream (AVI) from a Series of Images

There is an IP web camera that I wrote a .NET class for sometime ago. It's basically a Timer implementation that pings a snapshot CGI script from the camera every five seconds. The camera itself is very rudamentary; it does not have any sort of API for me to work with, the only thing I can do programmatically (remotely) is invoke this...

Default Button - Vb.NET

Hey guys, I have a button that I want to make default, but without the border thing around the button. Is this possible to do? Thanks. ...

How can a Windows service be installed with visual basic.net express edition?

EDIT: I'm starting a bounty on this question. For the moment, I've moved on and am developing my application using VS2010 Pro Beta, but I'd really like it to be able to be built with express edition, since we are generally not a .net shop and even if one or two developers have VS PRO it will not be available to our entire team. To be ...

ListView resize with user drag (VB.net)

I am converting my company's VB6 program over to VB.net and I have hit another stupid little roadblock. The old program had a ListView docked to the left side of the application screen. The user could place the cursor over the right portion of the ListView, the cursor would turn into the SizeWE arrows, then they could drag it, which wou...

Where can I find the database file in wamp server?

I've recently installed wamp server to be connected to a vb.net program. But I don't know if there is a database file generated somewhere in your computer if you try to input records using your browser. ...

Why not expose List(Of String) in the parameters of web service in VB.NET?

The FxCop says in a rule that generic List should not be exposed to the outside world. But I do not understand why and what is the replacement for the generice List? Reference : http://msdn.microsoft.com/en-in/library/ms182142%28en-us%29.aspx ...

Translation of labels

I already have one application running (in English language). I want to translate those application text to some native langauges with my program. It it possible to change it? ...

how to add a row in existing datatable

hi guys, In a vb.net Windows Application, I have a datatable wich is not from a database. I want to add a new row, but when I add a new row only the new row is in the datatable, not the existing data. dim dt as datatable treelist.datasource=dt this is existing item here in any event i want to add the new row in the datatable so that ne...

MSBuild: Conditional Construct (Project Reference | File Reference)

I´m still trying to eleminate the need of a cobol compiler in a Project with cobol-Projects in it. Is it possible to create following build behaviour: If the Configuration is Debug then use ProjectReferences on ExCobol.cblproj if the Configuration is DebugVB then use FileReferences on ExCobol.dll When Yes, How to achieve it? I assum...

focus the cursor on the column which i select to edit

hi friends, i am using the grid from dev express.. in vb.net 2005.. when i choose a row to edit, in that row, when i select a particular column , then cursor show focus in that particular column , instead it is focused in the first column in that select row.. I want to focus the cursor on the column which i select to edit..for...

Is there a nice way to split an int into two shorts (.NET)?

I think that this is not possible because Int32 has 1 bit sign and have 31 bit of numeric information and Int16 has 1 bit sign and 15 bit of numeric information and this leads to having 2 bit signs and 30 bits of information. If this is true then I cannot have one Int32 into two Int16. Is this true? Thanks in advance. EXTRA INFORMATIO...

Difference between casting in C# and VB.Net

The next code works fine in C#: Int32 a, b; Int16 c; a = 0x7FFFFFFF; b = a & 0xFFFF; c = (Int16)b; But this code crash with a OverflowException in VB.Net. Dim a, b As Int32 Dim c As Int16 a = &H7FFFFFFF b = a And &HFFFF c = CType(b, Int16) Both codes seems the same to me. What is the differ...

Cast String to TimeSpan

Hi, I tried to parse string to TimeSpan like the following : Dim dt As DateTime = DateTime.Now Dim timeCheckin As String = Format(dt, "HH:MM:FF") ts = TimeSpan.Parse(timeCheckin) It threw error like this: System.OverflowException: The TimeSpan could not be parsed because at least one of the hours, minutes, or seconds ...