Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Question regarding filesystemwatcher and existing files Pin
Jon_Boy15-Dec-09 8:55
Jon_Boy15-Dec-09 8:55 
GeneralRe: Question regarding filesystemwatcher and existing files Pin
Ian Shlasko15-Dec-09 9:39
Ian Shlasko15-Dec-09 9:39 
QuestionBuilding an application that recieves emails Pin
Aptiva Dave15-Dec-09 4:25
Aptiva Dave15-Dec-09 4:25 
AnswerRe: Building an application that recieves emails Pin
dan!sh 15-Dec-09 5:08
professional dan!sh 15-Dec-09 5:08 
AnswerCheck this article out for reading email ... Pin
David Mujica15-Dec-09 5:24
David Mujica15-Dec-09 5:24 
AnswerRe: Building an application that recieves emails [modified] Pin
plecco22-Dec-09 8:49
plecco22-Dec-09 8:49 
Questionimage capture and object tracking Pin
voodoo_god15-Dec-09 3:46
voodoo_god15-Dec-09 3:46 
QuestionDatagridviewButtoncell accroding to the value of cell() Pin
Paramu197314-Dec-09 22:19
Paramu197314-Dec-09 22:19 
Well.

I try to display the datagridviewbuttoncell, acording to the value of the cell. But I can't succeed. I tried by the following ways.

I mean, suppose....

Private Sub DataGridView1_CellEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEnter

Dim r1 As Integer = e.RowIndex
If Len(Trim(DataGridView1(1, r1).Value)) <> 0 Then
Dim BnCell As New DataGridViewButtonCell
DataGridView1(2, r1) = BnCell
Else
Dim TxtCell As New DataGridViewTextBoxCell
DataGridView1(2, r1) = TxtCell
End If

End Sub

So, like the above if the data is available in column(1), then column(2) of currentcell will be datagridviewbuttoncell
or else datagridviewtextboxcell

Any better ideas for me?

ThanksThumbs Up | :thumbsup:
QuestionReplacing Bytes in an Office 2003 Word Document Pin
jonegerton14-Dec-09 3:25
jonegerton14-Dec-09 3:25 
AnswerRe: Replacing Bytes in an Office 2003 Word Document Pin
Richard MacCutchan14-Dec-09 5:05
mveRichard MacCutchan14-Dec-09 5:05 
GeneralRe: Replacing Bytes in an Office 2003 Word Document Pin
jonegerton14-Dec-09 6:32
jonegerton14-Dec-09 6:32 
GeneralRe: Replacing Bytes in an Office 2003 Word Document Pin
The Man from U.N.C.L.E.14-Dec-09 7:33
The Man from U.N.C.L.E.14-Dec-09 7:33 
AnswerRe: Replacing Bytes in an Office 2003 Word Document Pin
Eddy Vluggen14-Dec-09 5:50
professionalEddy Vluggen14-Dec-09 5:50 
GeneralRe: Replacing Bytes in an Office 2003 Word Document Pin
Luc Pattyn14-Dec-09 6:21
sitebuilderLuc Pattyn14-Dec-09 6:21 
GeneralRe: Replacing Bytes in an Office 2003 Word Document Pin
Eddy Vluggen14-Dec-09 7:16
professionalEddy Vluggen14-Dec-09 7:16 
GeneralRe: Replacing Bytes in an Office 2003 Word Document Pin
jonegerton14-Dec-09 6:35
jonegerton14-Dec-09 6:35 
GeneralRe: Replacing Bytes in an Office 2003 Word Document Pin
Member 368078514-Dec-09 8:54
Member 368078514-Dec-09 8:54 
QuestionFind out encoding of any file [modified] Pin
jonegerton14-Dec-09 3:08
jonegerton14-Dec-09 3:08 
AnswerRe: Find out encoding of any file Pin
Richard MacCutchan14-Dec-09 5:06
mveRichard MacCutchan14-Dec-09 5:06 
QuestionHow to auto expand combo box on focus. [modified] Pin
Mithun.Shitole13-Dec-09 23:05
Mithun.Shitole13-Dec-09 23:05 
GeneralIssue when create popup calendar.... Pin
Golden Jing13-Dec-09 14:49
Golden Jing13-Dec-09 14:49 
GeneralRe: Issue when create popup calendar.... Pin
EliottA14-Dec-09 3:34
EliottA14-Dec-09 3:34 
GeneralRe: Issue when create popup calendar.... Pin
Golden Jing14-Dec-09 20:07
Golden Jing14-Dec-09 20:07 
GeneralRe: Issue when create popup calendar.... Pin
EliottA15-Dec-09 3:25
EliottA15-Dec-09 3:25 
QuestionVB Form Commands in TextBoxes Pin
Dimz9313-Dec-09 4:10
Dimz9313-Dec-09 4:10 

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.