Imports System.Data.Sql Client
Imports System.Data
Dim con As SqlConnection = Nothing
Dim constr As String = New String("server= urservername;ui d=urusername;pw d=urpassword;da tabase=urdataba sename")
con = New SqlConnection(c onstr)
con.Open()
Hope it helps
Soulfly
User Profile
Collapse
-
Create contextmenustrip on run time
Good day, please help me on my problem....
i want to create a context menu strip on run time but i got this error, please help me, i tried to search on the net but i cant fine any solution there...
my code is:
...Code:Imports System.ComponentModel.CancelEventArgs Public Class VinteryBase Private m_New As Boolean Sub CreateMenu() Dim mnuItem As ToolStripMenuItem -
if you want you can use the streamreader... it can read csv file...
just search on how to use stream readerLeave a comment:
-
Try this code:
Dim cn As New ADODB.Connectio n
With cn
cn.Open "Provider=Micro soft.Jet.OLEDB. 4.0; Data Source=app.path & \yourdbasehere; jet oledb:database password=yourpa sswordhere"
End With...Leave a comment:
-
How to get only the year in the date in vb 6.0
Can anyone help me on how to get only year in a date...
e.g. 09/15/1986
i want to get only the 1986....please give me some idea on how to do this....
thanks in advance... -
Find controls is used to find the control in the web page and get its corresponding value...Leave a comment:
-
Using System.io;
//insert image into the database
string strFn = "";
strFn = this.openFileDi alog.FileName;
pictureBox.Imag e = Image.FromFile( strFn);
FileInfo fiImage = new FileInfo(strFn) ;
imageLength = fiImage.Length;
FileStream fs = new FileStream(strF n, FileMode.Open,
...Leave a comment:
-
Using System.io;
//insert image into the database
string strFn = "";
strFn = this.openFileDi alog.FileName;
pictureBox.Imag e = Image.FromFile( strFn);
FileInfo fiImage = new FileInfo(strFn) ;
imageLength = fiImage.Length;
FileStream fs = new FileStream(strF n, FileMode.Open,
...Leave a comment:
-
Try this code:
in your button: put this code..
[code=vbnet]
form2.show();
form1.close();
[/code]
form2 is the second form...Leave a comment:
-
Please indicate what is the error in order for us to help you...Leave a comment:
-
-
Try this code:
con.open "Provider=micro soft.jet.oledb. 4.0; datasource=data base name"
rs.open "select * from tablename",con, 3,3
connection complete
Happy Coding...Leave a comment:
-
-
[CODE=vb]Dim c As Integer
Dim i As Integer
c = 1
For i = 0 To 5
listview1.ListI tems.Add(c) = "sample data"
Next i[/CODE]
Try this code, hope it can help.Leave a comment:
-
dim c as integer
c=1
do
loop while c<= listview1.listi tems.countLeave a comment:
-
Add the MIcrosoft ADO Data control 6.0 (OLEDB) in your component, then after that drag it to your form then right click the adodc control then,
1.Select adodc properties
2.select the Use connection string, then click build and select yor database for the connection
3.then in the provider tab u select "Microsoft Jet 4.0 Ole DB Provider"
3.then go to the recordsource tab, then choose the commandtype...Leave a comment:
-
WindowsMediaPla yer1.settings.m ute = true
WindowsMediaPla yer1.settings.v olume =100Leave a comment:
-
download the jewelbutton.ocx in the internet...that is the component that u wanted....
then after downloading, add it to your components in vb6.0Leave a comment:
-
Please try to search some sample codes on the internet, this forum will not give you the codes that you want...
this forum will only help solve your problem in your codes...
try to explore in order for you to learn, ok?Leave a comment:
-
Please post the code that youve been tried in order for us to help youLeave a comment:
No activity results to display
Show More
Leave a comment: