|
thx for the links ^^
tried them out n still tryin to understand
kinda got a prob since i'm using vb 2005 express edition and cant open the source files to take a look at the examples
noe where can i get examples for using vb software?
sry fer da trouble. been looking but cant find yet.
saw da ultimate grid ad at the side n kinda looking into it.
|
|
|
|
|
|
As far as I recall, the Code Project tutorial I referenced was written with C#.
Use "VB.NET and C# Comparison" cheat sheet from (I think) www.harding.edu[^] but in case it wasn't, Google for it.
This should help you to understand what is happening in both C# and VB.net, but as you are just learning, consider downloading the Microsoft PDF e-book that is available to registered users of vb.net 2005 Express Edition.
Also, you might like to get a copy of "VB.NET Fundamentals" from http://www.pdsa.com/[^] this is a free e-book that comes with source code. As I understand, you are required to register with them before they let you have a copy to download.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
|
Hi.
I need your help please
how do i connect a mircosoft access database into my forms. And wat code do i use to save the data entered into the database. And edit code for editing information.And the search code.how do i link the textboxes with the fields in the database.
Could you supply me with code
I need help please please
Kind Regrds
Nolin
-- modified at 8:42 Tuesday 1st August, 2006
|
|
|
|
|
|
Hi there.
If you use an Access database here is an example on how to use it.
First add a reference to ADODB.dll
Declare database connection varaible as follow:
Private cnDatabase As ADODB.Connection
Open the database. Note that the DatabaseName must be the full path of the database.
cnDatabase = New ADODB.Connection
cnDatabase.Open(DatabaseName)
Fetch data from the Database:
Dim rsRecord As New ADODB.Recordset
Dim strSql As String
Dim tempValue As Object
strSql = "SELECT * FROM " & TableName
rsRecord.Open(strSql, cnDatabase)
With rsRecord
If Not .EOF Then
tempValue = .Fields("FieldName").Value
End If
.Close()
End With
rsRecord = Nothing
Save data to the database:
Dim rsRecord As New ADODB.Recordset
Dim strSql As String
strSql = "SELECT * FROM " & TableName
rsRecord.Open(strSql, cnDatabase, ADODB.CursorTypeEnum.adOpenKeyset,
ADODB.LockTypeEnum.adLockOptimistic)
With rsRecord
.AddNew()
.Fields("FieldName").Value = YourValue
.Update()
.Close()
End With
rsRecord = Nothing
Hope this wil help you.
A programmer's life is good... or is it?? Ek dink nie so nie!
|
|
|
|
|
Hi
I want to send a string (LPSTR) or any other type from C to VB6 from a dll. It causes vb to crash.
How should I do it? I have no problem sending numbers....
Thanks
|
|
|
|
|
How can I track the mouse movements when the combobox has dropped down. The mousemove event does not fire after the combobox has dropped for selection.I want to know what item the mouse is over?
Mark Thibodeaux
|
|
|
|
|
|
|
I have developed one software.
In that I want to represent my data in an organisational structure.
Or hierarchical diagram.
I am using VB6.0 and SQL server as my platform.
Please help me
-- modified at 9:57 Monday 31st July, 2006
|
|
|
|
|
Hi all
I'm moving an VB6 app to .NET and i'm faced with the following problem:
Having the following stored procedure in SQL SERVER 2000, that returns a dataset (Read only) AND has an OUTPUT parameter at same time, which of the command methods should i use, since it seems that ExecuteReader (Thats seems to be the only that returns a rowset) doesnt update the OUTPUT parameter.
Im I missing something?, Is there Any work Around?
'==============================================================================
ALTER PROCEDURE spGetResourceText (@frmName varchar(20),@MaxIndex int OUTPUT)
AS
SET NOCOUNT ON
SELECT @MaxIndex = Max(Id) FROM tblResourceText WHERE frmName = @frmName
SELECT * FROM tblResourceText WHERE frmName = @frmName
RETURN
'==============================================================================
Thanks in advance for your time!
Carlos Paiva
|
|
|
|
|
Sorry, I've post in the wrong place.
Repost in ADO.NET messageboard!
Thanks
Carlos Paiva
|
|
|
|
|
Carlos,
I hope you want to receive 2 result sets. So you can use DataSet for executing your SQL procedure. Normally Dataset return result sets as Tables.
So from the above, you will get 2 tables, you can written the code like below and retrieve both the resultsets,
Dim DA As New SqlDataAdapter
Dim DS as new Dataset
DA.SelectCommand = {pass your Command object}
DA.Fill(DS)
dim intMaxIndex as integer
intMaxIndex = DS.Tables(0).Rows(0).Item(0)
For intIndex = 0 To DS.Tables(1).Rows.Count - 1
{within this loop you can get each record/field values by
DS.Tables(1).Rows(intIndex).Item({field name})}
Next
Best Regards,
:-OChandru .
|
|
|
|
|
Hello, I am new to VB and need help on a specific question.
I need to know if there is a find function in VB so that I can terminate a loop. Example, suppose I need to find all tildas (~) in a file from start to finish in MS-Word. I would like to use a find function (if it exist) in my test condition so that the program exits the loop when the last tilda is found. Below is a for loop that I hard coded to repeat so many times but I would prefer doing it a better way. Help is appreciated.
Sub test()
'
' test Macro
' Macro recorded 7/30/2006 by Harold-Wishes
'
Selection.Find.ClearFormatting
For Counter = 1 To 20
With Selection.Find
.Text = "'"
.Replacement.Text = "'"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.TypeText Text:="'"
Next
End Sub
-- modified at 7:36 Monday 31st July, 2006
|
|
|
|
|
|
Hello,
Could you clarify?
I would like to remove the code below and have the loop stop when the last tilda is found. Currently I have it set to loop twenty times.
For Counter = 1 To 20
I know there is some boolean function for find, but I'm not getting the syntax correct.
|
|
|
|
|
|
hi friends
please tell me custom control min,max,close button of browser through script
if possible then send code if no then why i am using vb.net script javascript
keep in touch
byee
Regards
Irvendeep
|
|
|
|
|
You can't minimize a window using Javascript.
You can't maximize a window using Javascript. The closest is to set the window size to be the same as the screen size. Off the top of my head, something like: window.moveTo(0,0);window.resizeTo(screen.x, screen.y);
Use window.close(); to close the window.
---
b { font-weight: normal; }
|
|
|
|
|
hi there
i am trying to check the checkbox through program .. can any one please help me .. thanks in advance..
bharath.s
|
|
|
|
|
checkbox1.checked = true
i have used that in my programs, it seems to work
Thanks, Terence
|
|
|
|
|
What do you want to check from the checkbox? You have to make it narrow, so other user can help you with it.
Thanks
|
|
|
|
|
i have a decimal number ina variable i want to convert it into hexa decimal
and i want to assign it into a target varable the problem is my target variable can hold only one byte so i want to to assign this hex number in byte by byte
that is if a=&h0fe2
i want to assign b=&h0f
c=&he2
thank you in advance
|
|
|
|