2,383 Posted Topics

Member Avatar for P.manidas
Member Avatar for arezz09

just select id from database..if id key already saved in database then give an error message..

Member Avatar for Jx_Man
0
570
Member Avatar for ITKnight
Member Avatar for Jaseem Ahmed
Member Avatar for karthiyayiniyp
Member Avatar for debasisdas
0
53
Member Avatar for samehere

are you really don't know how to do it? [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim msg As MsgBoxResult If MsgBox("Do you really want to exit ?", MsgBoxStyle.YesNo, "Exit") = msg.Yes Then Me.Close() End If End Sub[/CODE]

Member Avatar for samehere
0
184
Member Avatar for rekha gautam

[code=vb]Private Sub cmdDelete_Click() Combobox.RemoveItem (Combobox.ListIndex) End Sub [/code]

Member Avatar for Jx_Man
0
167
Member Avatar for saddas
Member Avatar for satti
Member Avatar for sarifah n

Set KeyPreview on your form properties as True Then Try this : [CODE]Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.F2 Then Button1.Enabled = False End If End Sub[/CODE]

Member Avatar for sarifah n
0
92
Member Avatar for arezz09

arezz09, you already mark this thread as solved. Would you like to share with us how you solve it ? So, when another member read your thread they will get the answer too. Thanks.

Member Avatar for arezz09
0
331
Member Avatar for pito_donje
Member Avatar for pito_donje

see if this help : Declaration [CODE]Option Explicit Private Declare Function GetSystemMenu Lib "user32" _ (ByVal hwnd As Long, _ ByVal bRevert As Long) As Long Private Declare Function RemoveMenu Lib "user32" _ (ByVal hMenu As Long, _ ByVal nPosition As Long, _ ByVal wFlags As Long) As Long Private …

Member Avatar for Jx_Man
0
124
Member Avatar for ITKnight

See if this help : [CODE]SaveSetting "AddressBook", "Login\Data", "Username", Trim(txtUserName.Text)[/CODE]

Member Avatar for ITKnight
0
101
Member Avatar for eileenc87

[QUOTE]Dim myInsertQuery As String = "Update Meeting Set Meeting_Date = "", StartTime_Planned = "", EndTime_Planned = "", StartTime_Actual = "", EndTime_Actual = "", ChairedBy = "", Department = "" , Logged_By = "" Where ( Meeting_Subject = '" + Meeting_Subject + "' )"[/QUOTE] your sql statment is wrong. your query …

Member Avatar for Jx_Man
0
5K
Member Avatar for ITKnight
Member Avatar for ITKnight

See if this help : [CODE]Arr1 = Split("aaa bbb&ccc ddd&eee","&")[/CODE]

Member Avatar for ITKnight
0
211
Member Avatar for doremon89

[QUOTE]Can anyone help me show how to upload file into database which is ms access. The file can be document,picture or video..Anyone??? [/QUOTE] show your effort first. so other members can help you.

Member Avatar for doremon89
0
49
Member Avatar for Jaseem Ahmed

[QUOTE]is this is possible to plus all that items(Integer) that are in listbox or listview...[/QUOTE] Yes, you can. For listbox : [CODE]Dim i, result As Integer For i = 0 To List1.ListCount result = result + List1.List(i) Next i MsgBox result[/CODE] For Listview : [CODE]Dim i, result As Integer For …

Member Avatar for AndreRet
0
139
Member Avatar for josephbeluan
Member Avatar for miss_indie

use blob. save into binary file. [URL="http://coder000.com/store-retrieve-binary-data-blobs-audio-video-image-exe-etc-in-database-in-vb-net/"]see this link[/URL] why you not save the path and play it? its much easier.

Member Avatar for debasisdas
0
161
Member Avatar for ben25x

change the style to Graphical (as WaltP suggest). [ICODE]Com.Style = 1[/ICODE] but this property is read only..you can't change at the run time. so, you can't do that.

Member Avatar for WaltP
0
4K
Member Avatar for Jaseem Ahmed

post more info.. what kind of database? MSSQL Server, MySQL, Access?? 3 columns? what are the name of your columns? and where is your effort?? post your code that you've been work..

Member Avatar for peter_budo
-1
299
Member Avatar for Jaseem Ahmed

Function to check id in database [CODE]Public Function CheckId(Id As String) As Boolean rs.Open "SELECT * FROM AAAAA_DEMO WHERE code ='" & Trim(Id) & "'", _ Con, adOpenDynamic, adLockBatchOptimistic While Not rs.EOF If Id = rs!Id Then CheckId = True Else CheckId = False End If rs.MoveNext Wend rs.Close End …

Member Avatar for Jx_Man
0
1K
Member Avatar for saddas
Member Avatar for saddas
0
159
Member Avatar for huBelial

change your code in line 11 with this following code : [CODE]rs.Open("Select * FROM student", cn, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockBatchOptimistic, 1)[/CODE]

Member Avatar for fariid
0
194
Member Avatar for burntout

Line 48 in your function IsPrime was wrong [ICODE] For i = 1 To number \ 2[/ICODE] see this : [CODE]Private Function IsPrime(ByVal number As Long) As Boolean Dim i As Integer If number = 1 Then Return False ElseIf number = 2 Then Return True ElseIf number > 2 …

Member Avatar for Jx_Man
0
383
Member Avatar for @Kui

have you attach your database to MS SQL server databases on other computer? also check you server name in another computer, i mean another computer may have a different server name. it will affect your connection string.

Member Avatar for @Kui
0
131
Member Avatar for karthiyayiniyp

see if this help : [CODE]Option Explicit Dim ac As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub Command1_Click() Set rs = Nothing rs.Open "select * from demo", ac, adOpenDynamic, adLockOptimistic, -1 If rs!UserName = Text1.Text Then ' modified as your user name field name If !rs.Password = Text2.Text …

Member Avatar for debasisdas
0
561
Member Avatar for EkoX

Hi Ekox, Try this code : [CODE]Program Math1; Uses Wincrt; Var i,n,A: integer; x: real; Begin Writeln('Programe A^n'); Writeln('==================='); Writeln; Write('Input n : ');readln(n); Write('Input A : ');readln(A); Writeln; x:=1; if (n>0) then For i:= 1 to n do x:=x*A else if (n=0) then x:=1 else begin n:=-1*n; For i:= …

Member Avatar for Wolfgan
0
220
Member Avatar for vinothmca

Your post is not clear..post more information about what are you trying to do. if you want to use command button then simply click command button on toolbox (left side) and just draw it on the form. Or you want to create a command button?

Member Avatar for debasisdas
0
317
Member Avatar for pito_donje

>>but I do not include code to disable the task manager & taskbar. I'm confused yes you right. cause its my code on previous for other member to disable windows key for mouse cliking ;) for your Question : change registry value to disbale task manager.

Member Avatar for Jx_Man
0
200
Member Avatar for VBrulez

see [URL="http://netbooks.dotnet4all.com/2004/08/how-to-print-from-rich-text-box.html"]this site[/URL] and [URL="http://msdn.microsoft.com/en-us/library/ms996492.aspx"]this site too[/URL]

Member Avatar for Yousha
0
2K
Member Avatar for Mitchell VB 6
Re: VB 6

hi, i have a questions for you.. 1. are you didn't used database in your project? how do you check user name if all teacher hv their own user name? in your code just teacher with user name 'adb' can log in, another teacher cannot do that. 2. why you …

Member Avatar for AndreRet
0
109
Member Avatar for PM312

[URL="http://www.tek-tips.com/viewthread.cfm?qid=1608862&page=17"]see this link[/URL] and why you used flex grid? u can use a datagrid instead of flexgrid

Member Avatar for Jx_Man
0
59
Member Avatar for Sturdy
Member Avatar for Sturdy
0
722
Member Avatar for jaango123

see if this help : [CODE]Public Function IsValidIP(ByVal addr As String) As Boolean 'create our match pattern Dim pattern As String = "^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\." & _ "([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$" 'create our Regular Expression object Dim check As New Text.RegularExpressions.Regex(pattern) 'boolean variable to hold the status Dim valid As Boolean = False 'check to …

Member Avatar for Jx_Man
0
122
Member Avatar for Vega_Knight

see if this help: [CODE]Program CountingWords; Uses WinCrt; Var JumPhrase : Integer; Phrase : String; Ul : Char; Procedure CheckWords(Teks: String; Var CW: Integer); Var i: Integer; Begin If (Teks[1]=' ') Then CW:=0 Else CW:=1; For i:= 1 To Length(Teks) Do Begin If (Teks[i]=' ') And (Teks[i+1]<>' ') And (Teks[i+2]<>' …

Member Avatar for Vega_Knight
0
1K
Member Avatar for Sturdy

[QUOTE=;][/QUOTE] See if this help : [CODE]Dim strTEXT As String Dim intSTR_LEN As Integer Dim intCOUNT As Integer Dim boolPALIN As Boolean Private Sub Command1_Click() strTEXT = Text1 boolPALIN = True strTEXT = Replace(strTEXT, ",", "", , , vbTextCompare) strTEXT = Replace(strTEXT, ".", "", , , vbTextCompare) strTEXT = Replace(strTEXT, …

Member Avatar for Sturdy
0
819
Member Avatar for kitschkath

[QUOTE]I used the codes above but I can only retrieve the values (45) ?? what seems to be the problem ..can anyone help me ... I'am a newbie ... I need to sum the columns in the list view the answer should be [193][/QUOTE] it cause you just take the …

Member Avatar for Jx_Man
0
1K
Member Avatar for markdean.expres
Member Avatar for Nimitmak

[QUOTE=Nimitmak;1507405]Guys ,i got this code in my project ,but i didnt understand most of it ,if any body can understand then please add comments in it to understand. [CODE] Private Sub cmdclose_Click() Unload Me Unload recoform frmmain.Show frmmain.Image1.Picture = LoadPicture(imagefile) frmmain.cmdont.Enabled = True frmmain.cmdpre.Enabled = True frmmain.cmdrecognize.Enabled = True End …

Member Avatar for Jx_Man
0
300
Member Avatar for jamshed ahmed

see if this helps : imports : [CODE]Imports System Imports System.Management Imports System.Management.Instrumentation Imports System.IO Imports System.Collections[/CODE] Procedure to get info : [CODE]Private Sub getMotherBoardDetails() Try Dim objMOS As New ManagementObjectSearcher("SELECT * FROM Win32_BaseBoard") Dim objMan As ManagementObject For Each objMan In objMOS.Get txtCaption.Text = objMan.GetPropertyValue("Caption").ToString() txtCreationClass.Text = objMan.GetPropertyValue("CreationClassName").ToString() txtDescription.Text …

Member Avatar for Jx_Man
0
110
Member Avatar for Jake.20

you can write code to accept numbers only and not other character.. try this : [CODE] Private Sub numWeight_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles numWeight.KeyPress Select Case Microsoft.VisualBasic.Asc(e.KeyChar) Case 48 To 57, 8 'Let these key codes pass through Case Else e.Handled = True End Select End …

Member Avatar for Jake.20
0
137
Member Avatar for bro3886

as debasisdas said you cannot handle the win key. you can disable windows key using api for mouse clicking only and u still can access start button with press it,, this following code for disable win key from mouse clicking. [CODE]Option Explicit ' Dim TFlag As Boolean Private Declare Function …

Member Avatar for Jx_Man
0
1K
Member Avatar for saddas
Member Avatar for androidz

your parameter is missing on line 56 [ICODE]Set lbl = Me.Controls.Add("forms.label.l")[/ICODE] and also your top, left and width is too small for label, don't forget for m_memo value from user input.. [CODE] For i = 0 To m_equation Set lbl = Me.Controls.Add("vb.label","Label" & i) With lbl .Top = 1000 ' …

Member Avatar for AndreRet
0
770
Member Avatar for Amadman114

[CODE]Public x = 1 'This is whats wrong - it says "End of statement expected" when mouse over Public y = 1 'the "1" [/CODE]

Member Avatar for Amadman114
0
960
Member Avatar for Jaseem Ahmed
Member Avatar for satti

The End.