2,383 Posted Topics
Re: ok. there is many people ready to help you. all for the best | |
Re: you can use err object. this object was built in vb.net. i will give a simple code for u try this following code : [CODE] sub main() 10: on error goto errHandling 20: dim a as integer = 2 30: dim b as integer = 7 40: dim c as … | |
Re: see on your start menu program and find folder microsoft visual studio 6.0 tools on microsoft visual studio 6.0 menu. in this folder, running package & deployment wizard tool. you can make setup for your project with this tool. you just following every instruction and add file as u want. | |
Re: [CODE] If MsgBox("Your Confirm Message ?", MsgBoxStyle.OKCancel, "Exit confirm") = MsgBoxResult.OK Then 'add your code to do something if yes button pressed Else ' Do nothing when cancel was pressed End If [/CODE] OK. | |
Re: specify database that u want to use. sql server, access, mysql, oracle, etc.. | |
Re: first you have make a module to connected vb.net with sqlserver. you can add this code in module : Imports System.Data Imports System.Data.SqlClient Module ModuleName Public conn As SqlConnection Public Function GetConnect() conn = New SqlConnection("server = ServerName;database = DatabaseName;Trusted_Connection = yes") Return conn End Function End Module you can … | |
Re: "We only give homework help to those who show effort" if you never try you'll never know how to write program, but i'll give a clue. 1st make a function or procedure to convert number to word. ex : private function ConvetNumToWord(ByVal num As integer) dim Words as string ' … | |
Re: if you use integer as id datatype (ex:1.2.3...n) you can select max from id and add it by 1. | |
Re: check this link [URL="http://www.asciitable.com/"]http://www.asciitable.com/[/URL] but i give the ascii table too. hope this usefull | |
Re: are u using sqlserver? i had error like this before, and actualy you can't to update or add string to double. if your empid is double, you cannot insert with string. check the fields type again.. Ok. see u | |
| |
Re: try this if u use access as your database. 1st make module to connect vb with database [CODE]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 & "\databaseName.mdb" End Sub [/CODE] then u can call access_connector … | |
Re: you can change date format : [CODE]Ex : Format(Date, "dddd MMMM dd,yyyy")[/CODE] every days name and month name will be long type or you can make procedure to convert : [CODE] Private Sub Month_Convertion() Dim bulan As String bulan = Month(Date) Select Case bulan Case 1 bulan = "Januari" Case … | |
Re: program start is load form event.what integer?showing effort please.its more help. OK.see u | |
Re: i think nothing mistake was happened. the message error will shown if file was moved, deleted or there was none file. try to kill other file | |
Re: open your vb 6 look into toolbar Add-Ins --> Visual data manager after that VSM will be opened. to make new db with vsm : File -> New -> MsAccess - > Version 7.0 mdb - save db you now can make new table and insert field. | |
Re: actually Shouvik and venkatramasamy was given the solution but if you want to try other way you can use enter keys. [CODE]Private Sub Option1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Option2.SetFocus End If End Sub[/CODE] may help. | |
Re: you can change the form properties visible = false -> to hide form show in taskbar = false -> to hide from taskbar if you want to hide application from task manager add this in your code : app.taskvisible = true actually your application not shown in application list but … | |
Re: i think peter was given the solution. opt = Int(Me.TXT_r.Text) - 110 character can't be converted into numeric (int in your project) try to make exception (try-catch) or you can stinted input in text box, if user input character or letter you can display error message. | |
Re: you can use a function in vb.net to do that (datediff()) [CODE] dim result as long result = DateDiff(DateInterval.Day, dtpicker1.Value, dtpicker2.value) [/CODE] if you want to get details, you can count month and days by divide the result with days in selected month in dtpicker | |
Re: you mean that when user finished login, user access a form in accordance with the rules? | |
Re: you can use dataAdapter n generate dataset. or declare variable as new data set. | |
Re: how about to use opacity. u can change the value from 100% to 0%.its my opinion. | |
Re: use cristalreport viewer to see result. To connect you can use sqldata adapter. in sqldata adapter configuration u will make connection with your database n choose which database to load n specify the table. after configuration make new cristal report (.rpt) with configuration. | |
Re: this is you the part example code : Me.BindingContext(DataSet21, "table1").Position = Me.BindingContext(DataSet21,_ "table1"). Count - 1 you make mistake on your code. delete a underscore sign (_) in (DataSet21,_ "table1"). do same changes to similar code.. | |
Re: how about to use 2 datagrid. first datagrid to list client and second datagrid to list client_id as the client selected on first datagrid. of course you have to use events for each datagrid. | |
Re: by check : if Bydate radio is checked you can add code to turn on the next radio button. so when you click Go button once byDate radio will be turn on then you click Go button again. the program will check if bydate is turned on then checked the … | |
Re: if u used data grid for viewer i have the code : - first u have a connection module (in this code i used GetConnect to connect to sqlserver) - in this code dgWhat is datagrid name. Dim conn As SqlConnection Dim cmdWhat As New SqlCommand Dim daWhat As New … | |
Re: i think if u have menu, u just add code when menu clicked to call reports form. | |
Re: i think is not difficult to convert from vb6 to vb.net. actually in vb.net you just learn a oop but is not difficult. like the first time you try to learn vb6. post your problem in forum. OK. c u | |
Re: actually we cant used one programming language 'cause people has many necessary. every programming language has a different power (good and bad), so u can use the best language for problems. | |
Re: First declaration a new object for the Form you have to called. So you can use Dim do declare then you can use the new object to call a form as you want. Example: The Form Name is CalledForm Dim call as new CalledForm call.show() if you want to close … |
The End.