vb.net

What to use to make two .net programs transfer information

I currently have two programs that need to comunicate one with another. It doesn't have to be something complicated, it's just passing data from one to another, all very simple. I was thinking of using .net remoting, but I've heard there's a new thing WCF. Should I go for the .net remoting or try WCF? Or is there something simpler to use...

SubSonic 3 Step By Step WinForm App VB.Net Genrating And Setup

Hi, If some body can write SubSonic 3 Step By Step WinForm App VB.Net: Installation,Setup And Genrating. Thanks In advance ...

How to delete a record?

Hi all, I have records in table1, if the records exist, it must copy into table2. I want to delete those records in a table1 once all the records are copied into another table2. Im still a beginner in database and with some researches, i found some tutorials on d internet how to connect with database, and the codes easy to understand so...

Raising events in multi-threaded classes?

Raising events in multithreaded classes? I am running a class(gamepad handler) that uses many child threads to check for key input and the like then it raises events to my form to sort out the needed reaction, Is there a way to make the event raises on the same thread as the class itself. ...

How to scan and count controls present in DataAccessPage of Access DataBase programmatically?

As per my application (Vb.net), it scans the Access database for Active-X controls. It is working now for Report form and Access Form. The code to find out controls is as follows: oReportCtls = oReport.Controls For Each oReportCtl In oReportCtls If oReportCtl.ControlType = 119 Then 'Activex Control' ...

Please help prevent data layer refactoring of this ODP.NET code and transactions

I am using Oracle 11g client, with ODP.NET. I am trying to add conditional Transaction handling. Dim ds As New DataSet() Dim txn As OracleTransaction Dim _beginTransaction as Bolean = true Using conn As New OracleConnection(ConnString) Try conn.Open() If _beginTransaction Then ...

I would need a little help to write this linq query

I have this SQL query select case when AllowanceId is null then 2 else AllowanceId end as AllowanceId , d.descen as domdescen , t.descen as typdescen , case when qty is null then 0 else qty end as qty , u.descen as unidescen from (select t.allowancetypeid, d.allowancedomainid from allowancedomain as d, allowancetype as t ...

Reflection: How to find from a property info object if that property has a Non Public (Private / Protected) Setter?

Hi Friends, I searched on the forum / Internet for the solution how a PropetryInfo object (of a Public property) can reveal if it has a Private \ Protected Setter ... it was all in vain .... all help I found was about how to "Set" value of a public property having a Private Setter... I would like to know if I have a PropertyInfo objec...

How expensive are dots in .NET?

In the past, in C and C++ land, nested pointer dereferencing was considered, by some, to be a relatively expensive operation if executed in a tight loop. You wouldn't want to get caught with: for (int i = 0; i < 10000000; i++) { j->k->l->m->n->o->p->dosomeworknowthatwereherewhynoteh(); } because you might lose precious millisecond...

Collection instance with ContentProperty on XAML errors out

Hi I have a observable collection as follows.... I used to get designer ignorable error as "type(0) does not support direct content" due to which I implemented ContentProperty as shown below... but now I get two unavoidable errors at the designer as 1.The object 'CustomDataGridColumnCollection' already has a child and cannot add 'Da...

How to seperate Numbers from Symbols? regular expression???

hi, I am trying to seperate numbers from a string which includes %,/,etc for eg (%2459348?:, or :2434545/%). How can i seperate it, in VB.net ...

How to use VB.NET to query remote server event logs?

I am working on creating a web app that will query event logs on internal servers for events using a specific ID. Since most of the servers are running Windows Server 2003, I cannot use the preferred System.Diagnostics.Eventing.Reader method that I was hoping to use. I've seen the mention of using WMI, but would like to avoid this if p...

Multi-Language and Resource Files

I have a question about creating a multi-language application and the use of resource files. I will explain what I have done and what I would like the final product to be like. I am doing this in VB.Net and using Visual Studio 2008 After creating a new project, I added a resource file to the project (Add -> New Item, Selected Resource ...

how to create crystal report in a backend mysql

pls anybody help for me when creating crystal report in a vb.net2008 while backend is mssql how to create it pls help to create crystal report step by step with code..... ...

Pass collections of data to PL/SQL Package Procedure or Function from .NET?

I have a table that I need to insert a set of records into based on user input. IE: Selection from a list of items to choose from. For this example, let's just say it's a collection of int's. Not a lot of good examples on the internet. There's only one related question here on SO, but it lends no answers either (both answers are dead en...

How do I handle null nested objects in RDLC report that is bound to custom assembly object datasource?

I have an RDLC report that I am rendering directly to the Response Stream as PDF (rather than using the ReportViewer). In the code that renders the report, it's DataSource is bound to a List(Of ClassA) objects defined in a custom assembly. This seems to work for the most part. My problem is that I can't seem to handle the situation wh...

size checkboxes

Is it possible to make a checkbox large? So far, the sources i've read said that it's nearly impossible. I've tried Cssclasses and it didn't work either. I don't want to cheat and use a TextBox. How can I make the checkboxes larger? ...

Shared Interface and ReaderWriterLockSlim

I am using log4net in a class with multiple threads and I had a simple question. Do I need to enter readlock/writelock when checking properties and calling methods on the log4net.ILog interface? I am using the suggested method from the log4net examples so at the top of said class I have: Private Shared ReadOnly log As log4net.ILog = ...

Creating your own component in vb.net 2008

How do you create your own custom component for vb.net 2008? I want it to simply output to a .dll, not a whole winforms app. So, here is what I have done so far: Made a class library project Added a custom control object Confused myself badly Googled it, to no avail How can I control the component? For example, I want my component t...

VB.NET - SQLCommand.ExecScalar() throws unreferenced exception on Return?

I'm calling Sqlcommand.ExecScalar() - stepping through the stored proc works fine, right under RETURN @RecordNum @RecordNum correctly contains a bigint, as scoped. When I step into the RETURN.. I get an exception thrown, that visual studio does not seem to be able to capture. The stored procedure works fine when executed directly, a...