|
I have an editable data grid when I enter some values in the cells of the grid and click on another control the last cell of grid where I enter value does not lost focus and in result I’m not able to read the values from all cells of grid how can I lost focus from data grid.
thnx in advance
Aamir
|
|
|
|
|
I want to show dial-up connection properties, broadband connection properties and new internet connection wizard using vb.net but I’m not getting it for this I think so RAS API use but I’m not getting it also.
i want to use it for any windows version
thnx in advance
Aamir
|
|
|
|
|
Hi
This is not a regular problem but still any one who know the answer is bigger then life.
Let say we have an access database file (mdb) with one table that called tblRecID with 2 fields: "RecID" & "Info".
"RecID" is auto number + Primery key + Index.
"Info" is simple text.
If we saved 2 records to this table then the next "RecID" will be 3.
Now let's delete the 2 records and the table is now empty again.
How can you get the current "RecID" that need to be 2 (for now) by code (maybe DataTable object) ?
Any one?
|
|
|
|
|
lee1212 wrote:
How can you get the current "RecID" that need to be 2 (for now) by code (maybe DataTable object) ?
I'm with you right up until this sentence. Please can you clarify.
|
|
|
|
|
There is a SQL statement for setting "IDENTITY_INSERT" on or off. With it on, you can insert any legimate value you desire (it can't be a duplicate to what is there).
When you are done, turn it back off.
syntax
SET IDENTITY_INSERT [ database. [ owner. ] ] { table } { ON | OFF }
but you need either "owner" or "dba" the rights to the database.
|
|
|
|
|
Hello, I am going to programming to a finger print scanner. I am unable to get the sdk for the device. Does anybody know where to start to program to a usb device.
I can talk to the com ports with out any problems.. But I can not figure out how to talk to the usb ports..
Thanks
Chris Calzaretta
|
|
|
|
|
First, do you have the drivers for the scanner? If not, your going to need the low-level docs on the scanner hardware so you can write your own device driver. That's just to TALK to the device. You'll probably find those docs in the SDK that you can't get.
Next, you'll need the documentation on the command protocol the scanner uses. You have to know the language the scanner speaks. Again, probably in the SDK you can't get. Without these docs, your not going to know how to get the device initialized, send commands, receive and interpret responses, perform properly formatted data transfers, or whatever else the device needs...
Next, there are no native classes to VB or VB.net that allow you to easily communicate over USB. You'll either have to search the web to try and find any or have to write something yourself.
These would be good places to start:
http:
http:
RageInTheMachine9532
|
|
|
|
|
Hi all,
I am an RPG/Java iSeries programmer getting into VB.NET/ASP.NET programming and am looking for good conferences that I can attend to get up to speed fast.
Anybody have any suggestions?
Aaron Bartell
|
|
|
|
|
Hello everybody.
I want to use the ioctlsocket winsock function to set non blocking mode to a socket in VB.NET.
I have to use this function because it seems there is no means to create a Net.sockets.socket object from a valid Win32 SOCKET handle (provided by a custom function librairy)
In my code, I alway Have SOCKET_ERROR after ioctlsocket call ... and lastError is set to 10022
Maybe my FIONBIO constant is not correct. Can someone help me ? tks
<br />
<br />
Private Shared ul As IntPtr = Marshal.AllocHGlobal(4)<br />
Private Declare Function ioctlsocket Lib "ws2_32.dll" (ByVal sck As Long, ByVal cmd As Long, <[In](), Out()> ByVal argp As IntPtr) As Integer<br />
Public Shared Sub SetNonBlockingMode(ByVal sck As Long)<br />
'Dim ui As UInt32 = UInt32.Parse(1)<br />
'Marshal.StructureToPtr(ui, ul, False)<br />
Marshal.WriteInt32(ul, 0)<br />
LastErrorValue = 0<br />
Dim iRes As Long = ioctlsocket(sck, 2147772030, ul) 'Valeur de FIONBIO sur mon PC = 2147772030<br />
If iRes = SOCKET_ERROR Then<br />
LastErrorValue = Marshal.GetLastWin32Error()<br />
Throw New Net.Sockets.SocketException(LastErrorValue)<br />
End If<br />
End Sub<br />
|
|
|
|
|
Hi there
I need to be able to store multiple XML files in a central location - like a database.
I'm aware that SQL Server has this option, but the people I'm designing this for aren't prepared to spend lots of money.
Any ideas for alternatives??
Many thanks
Dan
|
|
|
|
|
MSDE?
MSDE is the SQL Server engine - check the licensing first (there are restrictions on where you can use it, IIRC), but you should be able to use it and it costs a lot less or nothing.
--
Ian Darling
|
|
|
|
|
Thanks mate, will look at that!
|
|
|
|
|
Is there anyway to get to know the table primary field name?
The information I have is table name and record id of this table, but to form a SQL statement to select those records, I need to know the table primary field. Is there anyway I can get it?
|
|
|
|
|
Take a look at ADOX (Active Data Object Extensions, IIRC)
--
Ian Darling
|
|
|
|
|
Dear VB.NET Forum,
I have just started my first programming exercise in VB.NET. When I try to run the project an error code come up indicating that Sub Main is missing in my project. Kindly explain to me what this 'Sub Main' is for and how should I include it in my project.
Ben
|
|
|
|
|
Ok, first of all, what project are you running? Is it a Window application? Or is it a console Application? Where is your entry point into the app?
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Hello Nick
I am running a Windows Application Project. I have not programmed in VB before, and what I have is the latest VB.NET software loaded on my machine. I am trying to teach myself VB.NET, but too bad the starting point seems to be quite difficult. Can I teach myself the basics of VB using VB.NET?
|
|
|
|
|
Don't worry about it. VB.Net is quite easy once you get the hang of it
OK, regarding your question. In VB.Net, there are 2 possible points of entry in an application, A windows form, or a Sub Main. To set either one, go to your Solution Explorer, Right-click on your Project and choose properties. Look for the "Startup Object" properties and it's corresponding Combobox, which will list any "Sub Main" and windows form in your application. Choose any one to have your program "start" from that point.
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Hi there,
I just started programming in VB.NET. i am working on asp.net and using VB.NET. I have a log in screen and when the user clicks on it it should go to a results.aspx page. please suggest me the code that i need to write in the button click event.
thanks in advance
|
|
|
|
|
Response.Redirect(page)
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Hello,
I am unable to get my combobox to load.
I have the user iner or scan a number into the textbox.
This calls a procedure and walla.....My CB should populate
but no. Can someone give me some suggestions from my code?
I get an object required error right here
Also, how can I get it to accept a scan instead of a user
hitting enter after entering the data?
Thank you very much.
Dim batchnumber As String
Dim GetBatchNO As Integer
strValue = Trim(UCase(txtbatchnum.Text))
Me.MousePointer = vbNormal
If strValue = 0 Then
MsgBox ("Invalid Batch Number!")
txtbatchnum_GotFocus
Me.MousePointer = vbNormal
Exit Sub
End If
txtbatchnum.Text = GetBatchNO
'ado.dbo_ShippingGetTnocwayFromBatchno GetBatchNO
batchnumber = Trim(ado.rsdbo_ShippingGetTnocwayFromBatchno!Tnocway) & ""
ado.rsdbo_ShippingGetTnocwayFromBatchno.Close
comboTnum.Clear
Do While Not ado.rsdbo_ShippingGetTnocwayFromBatchno.EOF
comboTnum.AddItem batchnumber
ado.rsdbo_ShippingGetTnocwayFromBatchno.MoveNext
Loop
End Sub
|
|
|
|
|
Hi all,
I have been in the IT industry for nearly 10 yrs now, and have no programming skills at all. Finally decided to bite the bullet and throw myself into it head first. However, I haven't tried programming since I was 18, some 12 years ago, and my current financial situation means purchasing books, etc. is out of the question. So, if there are any nice people out there who think they can help me, please get in contact.. Any help would be greatly appreciated, however little....
Cheers everyone..
Matt
|
|
|
|
|
hi,
i am currently facing a title separation (Station 1) difficulties in printing on the same page.
req output:
Station: 1 (combobox value)
data
data
data
Station: 2 (combobox value)
data
data
data
data
how to capture the range value and separte into the above output?
can anybody help......i have been struggling for some time
thanks.
|
|
|
|
|
I got this BASIC code from an old book, I am converting this to c, could somebody tell me what is "On NTY GoTo 610, 620, 680, 690" function is? I know that is to go to line 610,620,680,690. but what are the conditions for that?
what about " !" in here?, In c if it is "!=" that is not equal to, but what about here? It canot be factorial number.
NTY = ITYPE(I): KP = 4 * (I - 1) + 1
600 On NTY GoTo 610, 620, 680, 690
610 R = ELEM(KP): GoTo 660
620 REY = ELEM(KP + 1) * Abs(Q(I)): If REY < 1! Then REY = 1!
630 If REY < 2000 ! Then GoTo 640 Else GoTo 650
640 R = ELEM(KP) * 64 ! / REY: GoTo 660
650 R = ELEM(KP) * 1.325 / (Log(ELEM(KP + 2) + 5.74 / REY ^ 0.9)) ^ 2
660 DH = DH + S(J) * R * Q(I) * Abs(Q(I)) ^ EN
670 HDQ=HDQ+EX*R*ABS(Q(I))^EN GOTO 710
680 DH = DH + S(J) * ELEM(KP): GoTo 710
690 DH = DH - S(J) * E(LEM(KP) + Q(I) * (ELEM(KP + 1) + Q(I) * (ELEM(KP + 2) + Q(I) * ELEM(KP + 3))))
thanks in advance
shanila
|
|
|
|
|
as I recall
On NTY GoTo 610, 620, 680, 690 statement tests NTY and jumps to 610 if NTY=1 , 620 if NTY=2 etc.
in VB6 ! meens that the number is single.
but in GWBasic I used to see it if I write a huge number (the editor adds it)
|
|
|
|