Click here to Skip to main content
15,893,588 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: i have seriously problem with vb.net (hook) Pin
bkarasa10-Apr-06 13:17
bkarasa10-Apr-06 13:17 
QuestionAfter build Pin
Mr kilany7-Apr-06 1:08
Mr kilany7-Apr-06 1:08 
Questionhow can i use the timer tool in vb.net Pin
Mr kilany7-Apr-06 0:47
Mr kilany7-Apr-06 0:47 
AnswerRe: how can i use the timer tool in vb.net Pin
Chatura Dilan7-Apr-06 1:03
Chatura Dilan7-Apr-06 1:03 
Questioni need to read file from access and notepad Pin
Mr kilany7-Apr-06 0:45
Mr kilany7-Apr-06 0:45 
AnswerRe: i need to read file from access and notepad Pin
Greeky7-Apr-06 1:35
Greeky7-Apr-06 1:35 
QuestionI need to add the button of a datagrid column Can anyone guide me as to how this is done. Pin
Aayush Singh7-Apr-06 0:17
Aayush Singh7-Apr-06 0:17 
AnswerRe: I need to add the button of a datagrid column Can anyone guide me as to how this is done. Pin
Greeky7-Apr-06 1:33
Greeky7-Apr-06 1:33 
<br />
Option Strict Off<br />
Option Explicit On <br />
<br />
Imports System<br />
Imports System.ComponentModel<br />
Imports System.Drawing<br />
Imports System.Windows.Forms<br />
<br />
Public Class DataGridButtonColumn<br />
    Inherits DataGridTextBoxColumn<br />
    Public Event ButtonClicked(ByVal rowNumber As Integer)<br />
    Public WithEvents btn As New Button<br />
    Dim xReadOnly As Boolean = False<br />
    Public Property _ReadOnly() As Boolean<br />
        Get<br />
            Return xReadOnly<br />
        End Get<br />
        Set(ByVal Value As Boolean)<br />
            xReadOnly = Value<br />
        End Set<br />
    End Property<br />
    Public Sub New()<br />
        Me.TextBox.Visible = False<br />
        Me.TextBox.Cursor = Cursors.Hand<br />
        btn.FlatStyle = FlatStyle.System<br />
        btn.ForeColor = Color.Red<br />
        btn.Cursor = Cursors.Hand<br />
        btn.Text = "SİL"<br />
    End Sub 'New<br />
    Dim _rowNum As Integer<br />
<br />
    Protected Overloads Overrides Sub Edit(ByVal [source] As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer, ByVal bounds As System.Drawing.Rectangle, ByVal [readOnly] As Boolean, ByVal instantText As String, ByVal cellIsVisible As Boolean)<br />
        Try<br />
            MyBase.Edit([source], rowNum, bounds, [readOnly], instantText, cellIsVisible)<br />
            _rowNum = rowNum<br />
            btn.Parent = Me.TextBox.Parent<br />
            btn.Location = Me.TextBox.Location<br />
            btn.Size = New Size(Me.TextBox.Size.Width, TextBox.Size.Height)<br />
            btn.Text = "SİL"<br />
            btn.Visible = True<br />
            btn.BringToFront()<br />
            btn.Focus()<br />
        Catch ex As Exception<br />
            Throw ex<br />
        End Try<br />
    End Sub 'Edit<br />
    Protected Overrides Function Commit(ByVal dataSource As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer) As Boolean<br />
        'btn.Visible = False<br />
        Return True<br />
    End Function 'Commit<br />
    Private Sub btn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn.Click<br />
        If Not xReadOnly Then<br />
            RaiseEvent ButtonClicked(_rowNum)<br />
        End If<br />
    End Sub<br />
<br />
End Class<br />
<br />

QuestionUnhandled Errors Pin
Purple Monk7-Apr-06 0:08
Purple Monk7-Apr-06 0:08 
QuestionHELP ON QUICK REPORTS Pin
dex58ter6-Apr-06 23:54
dex58ter6-Apr-06 23:54 
QuestionWINDOWS MENU Pin
Greeky6-Apr-06 23:53
Greeky6-Apr-06 23:53 
AnswerRe: WINDOWS MENU Pin
Chatura Dilan7-Apr-06 0:49
Chatura Dilan7-Apr-06 0:49 
GeneralRe: WINDOWS MENU Pin
Greeky7-Apr-06 1:31
Greeky7-Apr-06 1:31 
GeneralRe: WINDOWS MENU Pin
Chatura Dilan7-Apr-06 2:08
Chatura Dilan7-Apr-06 2:08 
GeneralRe: WINDOWS MENU Pin
Vikrant Badhai8-Apr-06 0:36
Vikrant Badhai8-Apr-06 0:36 
QuestionExport datagrid to excel Pin
mayhem_rules6-Apr-06 23:51
mayhem_rules6-Apr-06 23:51 
AnswerRe: Export datagrid to excel Pin
Greeky7-Apr-06 1:40
Greeky7-Apr-06 1:40 
QuestionHow do you break up any Boolean Algebra expression into all possible result? Pin
Regardt6-Apr-06 23:50
Regardt6-Apr-06 23:50 
QuestionInvisible Buttons........ Pin
daviiie6-Apr-06 23:42
daviiie6-Apr-06 23:42 
Questionhow to edit & delete in gridview Pin
Amit Agarrwal6-Apr-06 22:01
Amit Agarrwal6-Apr-06 22:01 
QuestionLaptop Pin
ADY0076-Apr-06 21:13
ADY0076-Apr-06 21:13 
AnswerRe: Laptop Pin
albCode6-Apr-06 23:15
albCode6-Apr-06 23:15 
QuestionHow to declare a DLL function in VB.NET? Urgent need help! Pin
Ling Chen Wu6-Apr-06 19:30
Ling Chen Wu6-Apr-06 19:30 
Questionproblem in dispaly images dynamically Pin
Amit Agarrwal6-Apr-06 18:32
Amit Agarrwal6-Apr-06 18:32 
AnswerRe: problem in dispaly images dynamically Pin
Christian Graus6-Apr-06 19:02
protectorChristian Graus6-Apr-06 19:02 

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.