Click here to Skip to main content
15,357,358 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: code conversion Pin
Gideon Engelberth21-Jul-09 3:29
MemberGideon Engelberth21-Jul-09 3:29 
GeneralRe: code conversion Pin
MA Awan21-Jul-09 16:55
MemberMA Awan21-Jul-09 16:55 
GeneralRe: code conversion Pin
MA Awan21-Jul-09 18:39
MemberMA Awan21-Jul-09 18:39 
Questionhow to insert Apostrophe or Single Quote key access DB through dynamic string? Pin
JC.KaNNaN20-Jul-09 20:58
MemberJC.KaNNaN20-Jul-09 20:58 
AnswerRe: how to insert Apostrophe or Single Quote key access DB through dynamic string? Pin
Christian Graus20-Jul-09 21:55
mveChristian Graus20-Jul-09 21:55 
QuestionSending SMS Through VB 6 Pin
jayachandra.c20-Jul-09 20:47
Memberjayachandra.c20-Jul-09 20:47 
AnswerRe: Sending SMS Through VB 6 Pin
Christian Graus20-Jul-09 21:54
mveChristian Graus20-Jul-09 21:54 
QuestionCould not Focus Cell In DataGridView Pin
rhtbhegade20-Jul-09 20:38
Memberrhtbhegade20-Jul-09 20:38 
Hi Experts,

After my validation my control goes to the next cell..I have written the code to focus the current cell.But could not get the same....

code is --->

Private Sub dgvstock_CellValidating(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellValidatingEventArgs) Handles dgvstock.CellValidating

Dim cell As DataGridViewCell = dgvstock.Item(e.ColumnIndex, e.RowIndex)
Dim ret As Integer

If cell.IsInEditMode Then
Dim c As Control = dgvstock.EditingControl

Select Case dgvstock.Columns(e.ColumnIndex).Name
Case "Sr No.", "Amount"
c.Text = CleanInputNumber(c.Text)
If c.Text = "" Then
ret = MessageBox.Show("Enter Only Numbers", "Invalid Input")
If ret = 1 Then
dgvstock.CurrentCell = dgvstock(e.ColumnIndex, e.RowIndex)
//Here i want the focus on current cell
End If
End If
End Select
End If
End Sub


Private Function CleanInputAlphabet(ByVal str As String) As String
Return System.Text.RegularExpressions.Regex.Replace(str, "[0-9\b\s-]", "")
End Function
AnswerRe: Uppercase in datagridview cell Pin
Sreyas M N12-Nov-09 18:49
MemberSreyas M N12-Nov-09 18:49 
AnswerRe: Could not Focus Cell In DataGridView Pin
Sreyas M N12-Nov-09 19:17
MemberSreyas M N12-Nov-09 19:17 
QuestionImporting CSV files without header Pin
Astitva2320-Jul-09 12:37
MemberAstitva2320-Jul-09 12:37 
QuestionDifference between Scripting.Drive and DriveInfo: One works to detect external usb device, one doesn't Pin
babybass20-Jul-09 8:15
Memberbabybass20-Jul-09 8:15 
AnswerRe: Difference between Scripting.Drive and DriveInfo: One works to detect external usb device, one doesn't Pin
Alan N20-Jul-09 9:55
MemberAlan N20-Jul-09 9:55 
GeneralRe: Difference between Scripting.Drive and DriveInfo: One works to detect external usb device, one doesn't Pin
babybass20-Jul-09 10:57
Memberbabybass20-Jul-09 10:57 
QuestionTriplesDES error Pin
TheMrProgrammer20-Jul-09 7:10
MemberTheMrProgrammer20-Jul-09 7:10 
AnswerRe: TriplesDES error Pin
Luc Pattyn20-Jul-09 7:54
sitebuilderLuc Pattyn20-Jul-09 7:54 
GeneralRe: TriplesDES error Pin
TheMrProgrammer20-Jul-09 21:07
MemberTheMrProgrammer20-Jul-09 21:07 
GeneralRe: TriplesDES error Pin
Luc Pattyn21-Jul-09 1:41
sitebuilderLuc Pattyn21-Jul-09 1:41 
Questionhow to return dataadapter and data set from the same function Pin
hemrk20-Jul-09 6:08
Memberhemrk20-Jul-09 6:08 
AnswerRe: how to return dataadapter and data set from the same function Pin
Christian Graus20-Jul-09 14:37
mveChristian Graus20-Jul-09 14:37 
GeneralRe: how to return dataadapter and data set from the same function Pin
hemrk20-Jul-09 15:47
Memberhemrk20-Jul-09 15:47 
Questionuseing .MovePrevious() etc Pin
StephenFinch20-Jul-09 2:31
MemberStephenFinch20-Jul-09 2:31 
AnswerRe: useing .MovePrevious() etc Pin
Johan Hakkesteegt20-Jul-09 2:48
MemberJohan Hakkesteegt20-Jul-09 2:48 
GeneralRe: useing .MovePrevious() etc Pin
StephenFinch20-Jul-09 3:02
MemberStephenFinch20-Jul-09 3:02 
QuestionValidating a cell in DataGrid Pin
rhtbhegade20-Jul-09 0:51
Memberrhtbhegade20-Jul-09 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.