.Net Substitute For CoCreateGUID() In VB6?

Jun 8, 2009

I need to generate a GUID so I can store into a table and the create related records (to be filled in later) in 3 other tables. Used to be easy in VB6 with the CoCreateGuid() function. But I'm not seeing anything in VB.Net help files to match. Trying to use this function I get all kinds of COM errors. So I guess I can import several COM/DCOM classes to make it work, but maybe the overhead isn't worth it.

View 3 Replies


ADVERTISEMENT

.net - Substitute One Table For Another At Runtime?

Aug 23, 2011

I have 9 tables with state information in them. They all have the same field names. I have a Crystal Report that is based on one of them. I want the user to be able to select a state and change the Crystal Report to use that table instead of the one it was based on.I mean when user select text in combo box and then click on "OK" then report show (using only one rpt for all the tables of same fields).

View 2 Replies

Substitute Values In A WriteFileStream?

Sep 13, 2011

'm reading in a .txt file and then writing it back out. I had a user request to substitute some values that need to change.EA to PRFT to EAI know how I would do that in SQL, but I do not know how to change the values of the information inside of a WriteFileStream

View 5 Replies

VS 2010 ReDim Gone - Substitute?

Apr 16, 2011

I've been learning how to implement genetic algorithms in vb, and some sample I downloaded basically does the following in a few places:

[Code]...

I gather that this process could be used to define the size of an array that is not known at creation, but becomes known later in the program. VB2010, however, doesn't like this code at all, and tells me ReDim can no longer be used to this end. Why? And is there an easy replacement for this?

View 1 Replies

What Is Substitute For ADDNEW Function

Aug 6, 2009

what is the substitute for ADDNEW function in VB5 at the newest VS2008 their there was just recordset to which u apply this function then allwing u to add a record to a data base?

View 2 Replies

Substitute Of PictureBox.hWnd (of Vb 6.0) In .net 2005?

Sep 10, 2009

what is the substitute of PictureBox.hWnd of vb 6.0 in vb.net 2005 if any know then reply me soon.

View 1 Replies

What Is The Substitute Of Selectedvalue For The Compact Framework

Jan 12, 2009

I am working on the mobile device application and I have a simple form where I have a text box+submit buttom and datagrid

On value enter in textbox+submit, i want to display the the data related to that value (txtbox) in grid.

Now in the compact framework there is no option like Selected value There is selected all, selected text. With the use seleted text is not working.

Dim con3 As New SqlConnection("xxx")
con3.Open()
Dim cmd3 As New SqlCommand

[Code].....

View 2 Replies

.net - Substitute Field Name In Linq Where Clause By Combo Text?

Jun 22, 2012

I have a combo with 6 text NA,PO,FA,GO,VG,EX and I want to do a Linq query upon the selected value in this combo used as field in the where clause. for example:

'if "NA" is selected :
Dim query = from t in db.table where t.NA > 0 Select t
'If "PO" is selected :
Dim query = from t in db.table where t.PO > 0 select t

How to do this in elegant way without writing 6 if statement or using "Select case"

View 1 Replies

.net - Substitute/disable Control Components For Development/testing?

Feb 2, 2012

I have a VB form that contains controls for interfacing with some hardware (video cameras, motors, etc) on the machine it is to be deployed on, but I'm usually not at the location of said machine (it's a 3-hour drive away). I'm trying to work on the project while on my laptop, but obviously the controls will generate all sorts of errors since they can't talk to the hardware.

I was thinking of replacing the control types with my own mock control classes, then use #if directives to control whether I'm building for the real machine or my test machine. Problem is, some of the affected code is in the form designer-generated code section; the form designer automatically tries to "correct" my changes, so I'd have to manually put them back all the time, and try to remember not to commit the form designer's edits into version control.

View 2 Replies

Use The VS2010 License As A Substitute For VB6 License?

Oct 31, 2011

I recently purchased Visual Studio 2010 and am wondering if it is possible to use the VS2010 license as a substitute for VB6 license.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved