| ASP.NET, VB.NET PROGRAMMING SUPPORT | |
|
|
Author | Message |
---|
^DarkLord^ Programmer
Posts : 54 Dark Points : 5497 Reputation : 6 Join date : 2009-07-03 Age : 40
Character sheet Dark Field: 200
| Subject: ASP.NET, VB.NET PROGRAMMING SUPPORT Fri Jul 31, 2009 8:08 am | |
| Here you can post your questions regarding ASP.NET, VB.NET. And I'll try to find time to answer all your questions regarding dotNET. | |
|
| |
†dArk_r0okiE† Programmer
Posts : 65 Dark Points : 5502 Reputation : 1 Join date : 2009-07-14 Age : 32 Location : pampanga
| Subject: ..in VB Fri Jul 31, 2009 8:29 pm | |
| ..sir
...example i have one textbox then in that textbox i input (kenneth) but if I press any numbers or symbols it will not input in textbox but the text that i have enter will not erase...
....thank you sir..nose bleed..
....hope you will help me | |
|
| |
^DarkLord^ Programmer
Posts : 54 Dark Points : 5497 Reputation : 6 Join date : 2009-07-03 Age : 40
Character sheet Dark Field: 200
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Sat Aug 01, 2009 1:26 am | |
| - ♥†lAst_dArkNeSs†♥ wrote:
- ..sir
...example i have one textbox then in that textbox i input (kenneth) but if I press any numbers or symbols it will not input in textbox but the text that i have enter will not erase...
....thank you sir..nose bleed..
....hope you will help me Try this codeblock... - Code:
-
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
e.Handled = True
If e.KeyChar Like "[A-z]" Then e.Handled = False
End Sub
Let me know if it works. | |
|
| |
Dark_MessengeR_kHai Programmer
Posts : 27 Dark Points : 5458 Reputation : -5 Join date : 2009-07-08 Age : 30 Location : MQC
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Sat Aug 01, 2009 10:36 am | |
| DL hndi ba tao mag ASP.NET?? ehehe | |
|
| |
-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5565 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Sat Aug 01, 2009 11:10 am | |
| Vb.Net section to. U sure hindi VB6 ung question mo? kc mgkaiba ung method eh d 2lad ng vb6 na ascii code gngamit
sa vb6 kasi directly makukuha mo ung keyboard input via keyascii example example sa keypress event ng textbox
if isnumeric(chr(keyascii)) = true then msgbox("you have entered a numeric value") else msgbox("value is not a number") end if
tinetest ng code na to if ung pinindot sa keyboard (keyascii) ay number. kaso ascii code ung nirereturn na value kaya kailangan muna iconvert into keyboard character kaya pinasok natin sa chr() function... at ung isnumeric() function naman ang ngtetest if number ang result..
sa dotNet naman may mga arguments na ng hahandle sa event like ung snippet ng dakilang si sir DL, ung "e" ung handler
so instead of keyascii, gamitin mo ung method nung handler
example: e.keychar
at hindi ascii code ung nirereturn na value kundi ung mismong keyboard input na.
"******************************" | |
|
| |
†dArk_r0okiE† Programmer
Posts : 65 Dark Points : 5502 Reputation : 1 Join date : 2009-07-14 Age : 32 Location : pampanga
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Sat Aug 01, 2009 1:14 pm | |
| ...sorry d pla VB.net yun.....
VB6 pu yun sorr DL..
....when i press a number or symbol it will no be inputed in the textbox... only alpha lng yung maiinput dun sa textbox... ..at wala po itong msgbox...basta pagpinindut ko yung number ito ay di maiinput sa textbox..pero d mabubura yung mga alpha na nilagay ko..
.....salamat p0h | |
|
| |
†dArk_r0okiE† Programmer
Posts : 65 Dark Points : 5502 Reputation : 1 Join date : 2009-07-14 Age : 32 Location : pampanga
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Tue Aug 04, 2009 9:30 pm | |
| ....sorry DL hindi ko pa p0h na subkan...... pero sa tingin ko tama yun.... ........ahihihihhhihi | |
|
| |
-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5565 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Wed Sep 02, 2009 8:24 am | |
| Hoi mangutang kayu! nung ali lumasa kayu balat!
lasang patis! | |
|
| |
†dArk_r0okiE† Programmer
Posts : 65 Dark Points : 5502 Reputation : 1 Join date : 2009-07-14 Age : 32 Location : pampanga
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Wed Sep 02, 2009 8:37 pm | |
| ...ehehehhehehehhehe nu kayang magandang tanong....?? ......yung d ko pah kasi masyadong know sa VB eh yung mag connect sa database access 2003....yun DM....ehehhe panu ba yun?? .,....yan ah nag tanong na ako kaya atana lasang patis..ehehehhehe ....wahhaahaa......DS kawawa ya nandin oh....pigtripan deh..wahahha oink-oink DM IDOL | |
|
| |
†dArk_r0okiE† Programmer
Posts : 65 Dark Points : 5502 Reputation : 1 Join date : 2009-07-14 Age : 32 Location : pampanga
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Wed Sep 02, 2009 8:38 pm | |
| ay sorry sa VB 6.0 pala yun...ehehhe | |
|
| |
-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5565 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: GETS KO NAH!!! Wed Sep 02, 2009 11:20 pm | |
| con.ConnectionString = constr con.Open() Dim adapt As New OdbcDataAdapter("select * from student", con) Dim ds As New DataSet
adapt.Fill(ds) DataGridView1.DataSource = ds.Tables(0)
'********************************
Dim i As Integer Dim dr As DataTable = CType(DataGridView1.DataSource, DataTable) For i = 0 To (dr.Rows.Count - 1) Dim x As integer If DataGridView1.Rows(i).Cells("status").Value = "enrolled" Then x = 1 Else x = 0 End If
DataGridView1.Rows(i).Cells("column1").Value = x Next i
HAHAHA! If enrolled ya ing keng database. magcheck ya itang checkbox keng datagridview!!! | |
|
| |
^DarkLord^ Programmer
Posts : 54 Dark Points : 5497 Reputation : 6 Join date : 2009-07-03 Age : 40
Character sheet Dark Field: 200
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Thu Sep 03, 2009 2:38 am | |
| - -=Dark Master=- wrote:
- con.ConnectionString = constr
con.Open() Dim adapt As New OdbcDataAdapter("select * from student", con) Dim ds As New DataSet
adapt.Fill(ds) DataGridView1.DataSource = ds.Tables(0)
'********************************
Dim i As Integer Dim dr As DataTable = CType(DataGridView1.DataSource, DataTable) For i = 0 To (dr.Rows.Count - 1) Dim x As integer If DataGridView1.Rows(i).Cells("status").Value = "enrolled" Then x = 1 Else x = 0 End If
DataGridView1.Rows(i).Cells("column1").Value = x Next i
HAHAHA! If enrolled ya ing keng database. magcheck ya itang checkbox keng datagridview!!! Ayos! Galing! | |
|
| |
^DarkLord^ Programmer
Posts : 54 Dark Points : 5497 Reputation : 6 Join date : 2009-07-03 Age : 40
Character sheet Dark Field: 200
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT Thu Sep 03, 2009 2:40 am | |
| - ^DarkLord^ wrote:
- -=Dark Master=- wrote:
- con.ConnectionString = constr
con.Open() Dim adapt As New OdbcDataAdapter("select * from student", con) Dim ds As New DataSet
adapt.Fill(ds) DataGridView1.DataSource = ds.Tables(0)
'********************************
Dim i As Integer Dim dr As DataTable = CType(DataGridView1.DataSource, DataTable) For i = 0 To (dr.Rows.Count - 1) Dim x As integer If DataGridView1.Rows(i).Cells("status").Value = "enrolled" Then x = 1 Else x = 0 End If
DataGridView1.Rows(i).Cells("column1").Value = x Next i
HAHAHA! If enrolled ya ing keng database. magcheck ya itang checkbox keng datagridview!!! Ayos! Galing!, BTW, Jay? Mig ODBC kaba ketang BreakThrough Project Tamo? o itang mysqlclient ing ginamit mu? | |
|
| |
Sponsored content
| Subject: Re: ASP.NET, VB.NET PROGRAMMING SUPPORT | |
| |
|
| |
| ASP.NET, VB.NET PROGRAMMING SUPPORT | |
|