2,383 Posted Topics
Re: handle it with keydown event : [code]private void TextBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { MessageBox.Show("you pressed delete key"); } }[/code] | |
Re: I added one line code...see the red one : [code]private void cmdtam_Klik(object sender, EventArgs e) { string cstr; cstr = "data source=knight;initial catalog=latihan;uid=sa;pwd=sri"; SqlConnection con1 = new SqlConnection(cstr); con1.Open(); SqlCommand com1 = new SqlCommand(); com1.Connection = con1; com1.CommandType = CommandType.Text; com1.CommandText = "select * from customer" DataSet ds1 = new … | |
Re: Post your thread on [URL="http://www.daniweb.com/forums/forum8.html"]C++ section[/URL] | |
Re: in any even : [code] Private Sub Form_Load() App.TaskVisible = False App.Title = "" End Sub[/code] | |
Re: see this example : [code]"SELECT a.Id_User, a.Password, b.Id_Role, b.Status FROM USERS a join ROLE b on (a.Id_Role=b.Id_Role)"[/code] | |
Re: counter will running for ??? times Dim playermoney As Integer Dim i as integer for i = 0 to ??? Playermoney = Playermoney + 250 next i | |
Re: i think that code is fine. any other mistake? post your code... | |
Re: using API Function... this an API function : [code=vb]Const TH32CS_SNAPHEAPLIST = &H1 Const TH32CS_SNAPPROCESS = &H2 Const TH32CS_SNAPTHREAD = &H4 Const TH32CS_SNAPMODULE = &H8 Const TH32CS_SNAPALL = (TH32CS_SNAPHEAPLIST Or TH32CS_SNAPPROCESS Or TH32CS_SNAPTHREAD Or TH32CS_SNAPMODULE) Const TH32CS_INHERIT = &H80000000 Const MAX_PATH As Integer = 260 Private Type PROCESSENTRY32 dwSize As Long … | |
Re: don't post thread like this again... use your previous thread, don't make this forum full with your multiple thread. you just ask again in same post. | |
| |
Re: add it on component. ctrl + T (or right click on your toolbox / project->component) -> check for Microsoft Common Dialog Control 6.0 -> OK it will shown on your toolbox. | |
Re: [QUOTE=Ezzaral;577334]A search across this site (that little box in the upper right corner) on "final year topic" yields 50 pages of results. That should get you started I would think.[/QUOTE] yeah, use searching facility and u will find many topic there... there are too much thread about "final year Topic" | |
Re: you can do generally searching?? if u can, its a same technique. put you search procedure in text change event. so when user input data on textbox it will searching others data. but why u using first name as searching key?? how about if you have 2 same frist name … | |
Re: [code]Dim vPrice As Decimal Dim vQty As Integer Dim vTotal As Decimal Dim vDiscount As Decimal Dim vFinal As Decimal vPrice = Val(InputBox("Enter a price")) vQty = Val(InputBox("Enter a qty")) vTotal = Val(vPrice * vQty) If vTotal < 20 Then vDiscount = vTotal vFinal = vDiscount ElseIf vTotal >= 20 … | |
Re: there are some error display when you execute that exe file?? | |
Re: try this followong code : [code=vb] 'This example requires two command buttons Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function CopyIcon Lib "user32" (ByVal hIcon As Long) As Long Private Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" … | |
Re: try this following code vega : [code=vb]Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO) Private Type SYSTEM_INFO dwOemID As Long dwPageSize As Long lpMinimumApplicationAddress As Long lpMaximumApplicationAddress As Long dwActiveProcessorMask As Long dwNumberOrfProcessors As Long dwProcessorType As Long dwAllocationGranularity As Long dwReserved As Long End Type Private Sub Form_Load() … | |
Re: yes, here it is the code, try it and let me know if it worked : [code=vb]Dim AllDir Private Sub Form_Load() On Error Resume Next For i = 65 To 90 x = Dir(Chr(i) & ":\", vbDirectory + vbHidden + vbSystem) If Err = 52 Then Err.Clear Else If x … | |
Re: yup, post your problem if find some understanding :) happy coding friend :) | |
Re: try this following code : [code=vb] 'This project needs ' -a Command Button (Command1) ' -a CommonDialog (CommonDialog1) ' -a Label (Label1) Private Const OF_READ = &H0& Private Declare Function lOpen Lib "kernel32" Alias "_lopen" (ByVal lpPathName As String, ByVal iReadWrite As Long) As Long Private Declare Function lclose Lib … | |
Re: use a Process, and simply "run" the file (If you happen to know the parameters for launching in fullscreen, then add that too). [code=vb.net]Dim prc As New Process prc.StartInfo.FileName = "C:\mediafile.avi" prc.StartInfo.Arguments.Insert(0, "-Fullscreen") prc.Start()[/code] | |
| |
Re: 'This project needs a timer,Interval 1000 for normally [code] 'In general section Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Const Invert = 1 Private Sub Timer1_Timer() 'Flash the window FlashWindow Me.hwnd, Invert End Sub [/code] | |
Re: to set default button u don't have to fill button style in msgbox or use vbdefaultbutton style. ex : msgbox("message","Titile") -> it will shown Ok only. to get other icon do like techtix said. | |
Re: post your code or using an attachment. please using this forum facility.... | |
Re: Konban wa Quang...Welcome to Daniweb Friend :) Dojo yoroshiku Quang... |
The End.