Click here to Skip to main content
16,006,442 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: VB.net - Checking for the instance of a control Pin
CPallini30-Dec-07 23:42
mveCPallini30-Dec-07 23:42 
GeneralRe: VB.net - Checking for the instance of a control Pin
Dave Kreskowiak31-Dec-07 3:56
mveDave Kreskowiak31-Dec-07 3:56 
GeneralType Load Exception Pin
Nagarajan R.J30-Dec-07 21:23
Nagarajan R.J30-Dec-07 21:23 
GeneralRe: Type Load Exception Pin
Dave Kreskowiak31-Dec-07 3:57
mveDave Kreskowiak31-Dec-07 3:57 
QuestionHow to design a form for finding or searching a data from the database in VB.NET? Pin
S.SRIVATHSAN30-Dec-07 18:46
S.SRIVATHSAN30-Dec-07 18:46 
AnswerRe: How to design a form for finding or searching a data from the database in VB.NET? Pin
Michael Sync30-Dec-07 18:55
Michael Sync30-Dec-07 18:55 
AnswerRe: How to design a form for finding or searching a data from the database in VB.NET? Pin
Vimalsoft(Pty) Ltd1-Jan-08 3:09
professionalVimalsoft(Pty) Ltd1-Jan-08 3:09 
Questionneed help getting the value from a selected row in DataGridView Pin
Shimmy Weitzhandler30-Dec-07 14:17
Shimmy Weitzhandler30-Dec-07 14:17 
<br />
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _<br />
<br />
Partial Class Form1<br />
<br />
Inherits System.Windows.Forms.Form<br />
<br />
'Form overrides dispose to clean up the component list.<br />
<br />
<System.Diagnostics.DebuggerNonUserCode()> _<br />
<br />
Protected Overrides Sub Dispose(ByVal disposing As Boolean)<br />
<br />
Try<br />
<br />
If disposing AndAlso components IsNot Nothing Then<br />
<br />
components.Dispose()<br />
<br />
End If<br />
<br />
Finally<br />
<br />
MyBase.Dispose(disposing)<br />
<br />
End Try<br />
<br />
End Sub<br />
<br />
<br />
<br />
Friend WithEvents CustomerID As System.Windows.Forms.DataGridViewTextBoxColumn<br />
<br />
'Required by the Windows Form Designer<br />
<br />
Private components As System.ComponentModel.IContainer<br />
<br />
'NOTE: The following procedure is required by the Windows Form Designer<br />
<br />
'It can be modified using the Windows Form Designer. <br />
<br />
'Do not modify it using the code editor.<br />
<br />
<System.Diagnostics.DebuggerStepThrough()> _<br />
<br />
Private Sub InitializeComponent()<br />
<br />
Me.Label1 = New System.Windows.Forms.Label<br />
<br />
Me.DataGridView1 = New System.Windows.Forms.DataGridView<br />
<br />
Me.CustomerID = New System.Windows.Forms.DataGridViewTextBoxColumn<br />
<br />
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()<br />
<br />
Me.SuspendLayout()<br />
<br />
'<br />
<br />
'Label1<br />
<br />
'<br />
<br />
Me.Label1.AutoSize = True<br />
<br />
Me.Label1.Location = New System.Drawing.Point(13, 181)<br />
<br />
Me.Label1.Name = "Label1"<br />
<br />
Me.Label1.Size = New System.Drawing.Size(39, 13)<br />
<br />
Me.Label1.TabIndex = 0<br />
<br />
Me.Label1.Text = "Label1"<br />
<br />
'<br />
<br />
'DataGridView1<br />
<br />
'<br />
<br />
Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize<br />
<br />
Me.DataGridView1.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn(){Me.CustomerID})<br />
<br />
Me.DataGridView1.Location = New System.Drawing.Point(16, 12)<br />
<br />
<big>Me.DataGridView1.MultiSelect = False</big><br />
<br />
Me.DataGridView1.Name = "DataGridView1"<br />
<br />
<big>Me.DataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect</big><br />
<br />
Me.DataGridView1.Size = New System.Drawing.Size(240, 150)<br />
<br />
Me.DataGridView1.TabIndex = 1<br />
<br />
'<br />
<br />
'CustomerID<br />
<br />
'<br />
<br />
Me.CustomerID.HeaderText = "CustomerID"<br />
<br />
Me.CustomerID.Name = "CustomerID"<br />
<br />
'<br />
<br />
'Form1<br />
<br />
'<br />
<br />
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)<br />
<br />
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font<br />
<br />
Me.ClientSize = New System.Drawing.Size(284, 264)<br />
<br />
Me.Controls.Add(Me.DataGridView1)<br />
<br />
Me.Controls.Add(Me.Label1)<br />
<br />
Me.Name = "Form1"<br />
<br />
Me.Text = "Form1"<br />
<br />
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()<br />
<br />
Me.ResumeLayout(False)<br />
<br />
Me.PerformLayout()<br />
<br />
End Sub<br />
<br />
Friend WithEvents Label1 As System.Windows.Forms.Label<br />
<br />
Friend WithEvents DataGridView1 As System.Windows.Forms.DataGridView<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
'this is the method I'm talking about:<br />
<br />
<big>Private Sub DataGridView1_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged<br />
<br />
Label1.Text = sender.SelectedRows(0).Cells("CustomerID").Value.ToString<br />
<br />
'last line causes either an ArgumentOutOfRangeException saying 'Index is out of range'<br />
<br />
'or an ArgumentException (see details below)<br />
<br />
End Sub</big><br />
End Class<br />
<br />
<br />
<br />
<br />


Shimi

GeneralRe: need help getting the value from a selected row in DataGridView Pin
nishkarsh_k30-Dec-07 18:34
nishkarsh_k30-Dec-07 18:34 
QuestionNeed help with DataGridView Control in VB6 Pin
brettfk101030-Dec-07 1:51
brettfk101030-Dec-07 1:51 
GeneralRe: Need help with DataGridView Control in VB6 Pin
Dave Kreskowiak31-Dec-07 4:01
mveDave Kreskowiak31-Dec-07 4:01 
GeneralRe: Need help with DataGridView Control in VB6 Pin
brettfk101031-Dec-07 11:29
brettfk101031-Dec-07 11:29 
QuestionHow to pivot a DataGrid Pin
VB.Net Developer29-Dec-07 21:40
VB.Net Developer29-Dec-07 21:40 
AnswerRe: How to pivot a DataGrid Pin
Michael Sync29-Dec-07 22:11
Michael Sync29-Dec-07 22:11 
General2D chart for VB6 Pin
Nick Alexeev29-Dec-07 20:46
professionalNick Alexeev29-Dec-07 20:46 
GeneralRe: 2D chart for VB6 Pin
Michael Sync29-Dec-07 22:10
Michael Sync29-Dec-07 22:10 
GeneralRe: 2D chart for VB6 Pin
Nick Alexeev30-Dec-07 7:29
professionalNick Alexeev30-Dec-07 7:29 
GeneralRe: 2D chart for VB6 Pin
Michael Sync30-Dec-07 16:47
Michael Sync30-Dec-07 16:47 
GeneralRe: 2D chart for VB6 Pin
Dave Kreskowiak30-Dec-07 8:02
mveDave Kreskowiak30-Dec-07 8:02 
GeneralRe: 2D chart for VB6 Pin
Nick Alexeev30-Dec-07 10:16
professionalNick Alexeev30-Dec-07 10:16 
GeneralRe: 2D chart for VB6 Pin
Dave Kreskowiak30-Dec-07 16:11
mveDave Kreskowiak30-Dec-07 16:11 
GeneralRe: 2D chart for VB6 Pin
Paul Conrad30-Dec-07 10:37
professionalPaul Conrad30-Dec-07 10:37 
Answer2D real-time chart for VB6: RMChart Pin
Nick Alexeev30-Dec-07 13:28
professionalNick Alexeev30-Dec-07 13:28 
NewsRe: 2D real-time chart for VB6: RMChart Pin
Nick Alexeev21-Dec-08 17:35
professionalNick Alexeev21-Dec-08 17:35 
GeneralRestrict the user from entering strings in a DatGridView column.. Pin
nishkarsh_k29-Dec-07 9:58
nishkarsh_k29-Dec-07 9:58 

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.