2,383 Posted Topics

Member Avatar for it2051229

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]

Member Avatar for Jx_Man
0
2K
Member Avatar for harryl5
Member Avatar for ITKnight

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 …

Member Avatar for Jx_Man
0
404
Member Avatar for Vic842
Member Avatar for kalodakilla

Post your thread on [URL="http://www.daniweb.com/forums/forum8.html"]C++ section[/URL]

Member Avatar for Jx_Man
0
90
Member Avatar for Jmafia

in any even : [code] Private Sub Form_Load() App.TaskVisible = False App.Title = "" End Sub[/code]

Member Avatar for Jx_Man
0
55
Member Avatar for knowledgelover
Member Avatar for baker4

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]

Member Avatar for Jx_Man
0
118
Member Avatar for tardis1234

counter will running for ??? times Dim playermoney As Integer Dim i as integer for i = 0 to ??? Playermoney = Playermoney + 250 next i

Member Avatar for Jx_Man
0
80
Member Avatar for Time Indicator
Member Avatar for Jx_Man
0
163
Member Avatar for dks1383

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 …

Member Avatar for Jx_Man
0
112
Member Avatar for Tomoney
Member Avatar for zekeabrams
Member Avatar for Tomoney
0
161
Member Avatar for ITech

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.

Member Avatar for jireh
0
126
Member Avatar for EMT147297
Member Avatar for zandiago
0
79
Member Avatar for perplexeds
Member Avatar for annajee
Member Avatar for Drezta
Member Avatar for Serunson
0
82
Member Avatar for Jmafia
Member Avatar for 3con
Member Avatar for acardiac
Member Avatar for swamp56
Member Avatar for Serunson
0
32
Member Avatar for mahmed27
Member Avatar for ruchika beddy

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.

Member Avatar for choudhuryshouvi
0
531
Member Avatar for Thamizh Bharat

[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"

Member Avatar for jwenting
0
35
Member Avatar for Time Indicator

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 …

Member Avatar for Time Indicator
0
112
Member Avatar for ferrier18

[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 …

Member Avatar for Jx_Man
0
131
Member Avatar for msantosh18
Member Avatar for choudhuryshouvi
0
95
Member Avatar for ITKnight

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" …

Member Avatar for Jx_Man
0
214
Member Avatar for Vega_Knight

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() …

Member Avatar for Jx_Man
0
589
Member Avatar for Neji

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 …

Member Avatar for Neji
0
148
Member Avatar for zawpai
Member Avatar for zawpai
0
283
Member Avatar for dnk

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 …

Member Avatar for Jx_Man
0
143
Member Avatar for rt7878
Member Avatar for Naruse

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]

Member Avatar for Jx_Man
0
671
Member Avatar for bstylez
Member Avatar for El Duke
Member Avatar for Nobert

Hi..Welcome to Daniweb Friend :) you have same hobbies with me :D

Member Avatar for nav33n
0
50
Member Avatar for navinlearns
Member Avatar for lal_rajapakshe
Member Avatar for Jade_me

'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]

Member Avatar for Jx_Man
0
159
Member Avatar for mansi sharma

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.

Member Avatar for techtix
0
152
Member Avatar for allopiloping

post your code or using an attachment. please using this forum facility....

Member Avatar for allopiloping
0
82
Member Avatar for aclearchannel
Member Avatar for ethio_kings
Member Avatar for zandiago
0
35
Member Avatar for reddaisy
Member Avatar for Serunson
0
150
Member Avatar for Defcon106
Member Avatar for Latent12
Member Avatar for StephenM
Member Avatar for quangnx

Konban wa Quang...Welcome to Daniweb Friend :) Dojo yoroshiku Quang...

Member Avatar for Serunson
0
114

The End.