2,383 Posted Topics

Member Avatar for tendaimare
Member Avatar for stats79

stats79,, are u using vb.net or vb6? streamreader is a function in vb.net not in vb6..

Member Avatar for codeorder
0
171
Member Avatar for alleybye
Member Avatar for pito_donje

your question is not clear.. i can't understand what you mean exactly but i try to answer it.. you want to manage forms depend on user rules. Use File Menu,,you can disable links on file menu depend on their authority.. After login form, show the main form that contain menu.. …

Member Avatar for AndreRet
0
76
Member Avatar for bettybarnes

your procedure navigaterecords() not have a parameter.. so when u call it, your procedure didn't get new value of inc variable. so,, add the parameter on your procedure : [CODE]Public Sub navigaterecords(ByVal inc as Integer) ... End sub[/CODE] when call : [CODE]If inc <> 0 Then inc = 0 navigaterecords(Inc) …

Member Avatar for bettybarnes
0
158
Member Avatar for dirkjan75
Member Avatar for Jake.20

just check leap year on monthbox event..so u didn't need to check on yearbox event.

Member Avatar for Jake.20
0
619
Member Avatar for Lucky D
Member Avatar for xxxferraxxx
Member Avatar for Jaseem Ahmed

@Jaseem Ahmed : your code use sql server or access for database? @AndreRet : i think this code using sql server, coz your codes using for access, maybe u missed it :)

Member Avatar for AndreRet
0
82
Member Avatar for xtianenikkian
Member Avatar for louwee
Member Avatar for bettybarnes

show how far u trying it.. just post the codes where u have a wrong logic of put a msgbox..

Member Avatar for anucom
0
104
Member Avatar for blueciel

[URL="http://www.daniweb.com/code/snippet217076.html"]see this snippet [/URL] [URL="http://www.daniweb.com/forums/thread90761.html"]see this thread[/URL] [URL="http://www.daniweb.com/forums/thread186332.html"]this thread too[/URL]

Member Avatar for AndreRet
0
147
Member Avatar for jmensah

make a procedure to select the last number on tran_head and add it with 1..that a autonumber logic..

Member Avatar for codeorder
0
1K
Member Avatar for Jade_me

Try the following codes: Copy [CODE]Clipboard.Clear Clipboard.SetText ActiveForm.ActiveControl.SelText, vbCFText[/CODE] Cut [CODE]Clipboard.Clear Clipboard.SetText ActiveForm.ActiveControl.SelText, vbCFText ActiveForm.ActiveControl.SelText = "" [/CODE] Paste [CODE]If Clipboard.GetFormat(vbCFText) Then ActiveForm.ActiveControl.SelText = Clipboard.GetText(vbCFText) End If[/CODE]

Member Avatar for AndreRet
0
302
Member Avatar for freedom-impulse

check your module connection.if this an be running good, you can't connect with database.so, see the thread which showing by agrothe.

Member Avatar for AndreRet
0
96
Member Avatar for gabanxx

add this code to module to connected sqlserver with vb.net: [code]Imports System.Data Imports System.Data.SqlClient Module Koneksi Public conn As SqlConnection Public Function GetConnect() conn = New SqlConnection("server = MyServerName;database = MyDatabaseName;Trusted_Connection = yes") Return conn End Function End Module[/code] add this code to button event click : [code]Private Sub btnAdd_Click(ByVal …

Member Avatar for shubhadip
0
1K
Member Avatar for jmensah

[QUOTE]txtAccountHolder.Text = myDataReader.Item("First_Name&" - " &Surname")tostring] [/QUOTE] chage it with : [CODE]txtAccount_Name.Text = myDataReader.Item("First_Name").ToString & "-" & myDataReader.Item("Surname").ToString [/CODE]

Member Avatar for jmensah
0
2K
Member Avatar for josephbeluan
Member Avatar for Jx_Man
0
99
Member Avatar for dnk

try this : [code]For Each controlx In Form3.Controls If TypeOf controlx Is TextBox Then controlx.Text = "" Next controlx[/code]

Member Avatar for the_h
0
108
Member Avatar for rhinocort23

so you want the item remove and when it remove the price add in text box..

Member Avatar for Jim2011
0
131
Member Avatar for ruudmu7

i m with u selvaganapathy, Select Max of Company_id , split it between character and number then increment number with 1.

Member Avatar for khan.777
0
2K
Member Avatar for pardeep3dec

>> process of creating - Add new Item -> Module -> OK - Just put code that u want to access from any form. >> using module.. - call function or procedure or anything you have declare in your module

Member Avatar for abelingaw
0
127
Member Avatar for daskeyboard
Member Avatar for Sawamura

try this following code : [code=vb]Private Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, pDefault As Any) As Long Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal hPrinter As Long) As Long Private Declare Function EnumJobs Lib "winspool.drv" Alias "EnumJobsA" (ByVal hPrinter As Long, ByVal …

Member Avatar for dstoltz
0
196
Member Avatar for damson

This following code to connect vb 6 with access place this code in module : [code=vb]Global Conn As ADODB.Connection Global rs As ADODB.Recordset Sub Access_Connector() Set Conn = New ADODB.Connection Conn.Provider = "microsoft.jet.oledb.4.0" Conn.CursorLocation = adUseClient Conn.Open App.Path & "\SIS.mdb" End Sub [/code]

Member Avatar for AndreRet
-2
2K
Member Avatar for it2051229

window still opened (i mean your program is not currently closed), so when you try to delete it error came out cause picture box still opened it. thats my guesting.

Member Avatar for tanisha123
0
311
Member Avatar for hari12341
Member Avatar for VisActualyBasic
Member Avatar for hanes84

try this link... [URL="http://www.softpedia.com/progDownload/VBto-Converter-Download-21217.html"]http://www.softpedia.com/progDownload/VBto-Converter-Download-21217.html[/URL]

Member Avatar for bagraoprasad
0
251
Member Avatar for ruchika beddy

just put your code in function method. this an example : [code=vb] Public Function GetSpecialFolder(ByVal mFolder As Environment.SpecialFolder) As String GetSpecialFolder = Environment.GetFolderPath(mFolder) End Function Private Sub Form1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1.Text = GetSpecialFolder(Environment.SpecialFolder.System) End Sub[/code]

Member Avatar for darkhunter5577
0
224
Member Avatar for ramlisarip
Member Avatar for anam_nazir
Member Avatar for Kingcoder210
Member Avatar for jlking007
Member Avatar for november_pooh

try this following code : [code=vb]Private Const SND_APPLICATION = &H80 ' look for application specific association Private Const SND_ALIAS = &H10000 ' name is a WIN.INI [sounds] entry Private Const SND_ALIAS_ID = &H110000 ' name is a WIN.INI [sounds] entry identifier Private Const SND_ASYNC = &H1 ' play asynchronously Private …

Member Avatar for l0oky
0
206
Member Avatar for sainiricha
Member Avatar for venkat.1981
Member Avatar for lacaroix

[code=vb.net]Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged textbox1.Text = ComboBox1.SelectedItem End Sub[/code]

Member Avatar for dustinsierra
0
3K
Member Avatar for zandiago

piracy its bad..its same like you still money without do anything...and its happened in my country...so many piracy here.

Member Avatar for jon.kiparsky
2
981
Member Avatar for Yogesh Sharma

1. Start Microsoft Visual Studio .NET 2. On the File menu, point to New, and then click Project 3. Under Project Types, click Visual Basic Projects 4. Under Templates, click Windows Application. Form1 is created. 5. Change Form1's Properties: .Text="Click to Start", .FormBorderStyle="FixedToolWindow", .Size="192,64" 6. Place a new Label control …

Member Avatar for Naushad Malik
0
129
Member Avatar for Neji

See this link : - [URL="http://vb-helper.com/howto_net_dollars_to_words2.html"]http://vb-helper.com/howto_net_dollars_to_words2.html[/URL]

Member Avatar for pulpers
0
153
Member Avatar for Leesha

try to use Search Facility in this forum and search for it with searching key is "Final Project". you'll find many similar thread. there are many suggestion about final topic from many members.

Member Avatar for zebnoon
0
178
Member Avatar for Annex

You must to specify the character in ascci that contains numbers only Try This following code : [CODE]Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If (Microsoft.VisualBasic.Asc(e.KeyChar) < 48) _ Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 57) Then e.Handled = True End If If (Microsoft.VisualBasic.Asc(e.KeyChar) = 8) Then e.Handled …

Member Avatar for risingsunankur
0
575
Member Avatar for preethi_ga
Member Avatar for sreyad12
Member Avatar for coco86
Member Avatar for Naruse
Member Avatar for keynan_toht17

The End.