473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

WinForms FAQ

Hello,

I noticed today that http://www.syncfusion.com/faq/winforms/search/1004.asp
no longer exist. Does anybody know the new address or of another site I can
use for reference for Win Form examples?

Thanks,
Rob Panosh
Nov 21 '05 #1
26 1301
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us knows
another link.

Cor
Nov 21 '05 #2
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us knows
another link.

Cor
Nov 21 '05 #3
I told someone over there. They'll look into it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Rob Panosh" <ro************************@asdsoftadfdware.com> wrote in
message news:OP**************@TK2MSFTNGP11.phx.gbl...
Hello,

I noticed today that http://www.syncfusion.com/faq/winforms/search/1004.asp no longer exist. Does anybody know the new address or of another site I can use for reference for Win Form examples?

Thanks,
Rob Panosh

Nov 21 '05 #4
I told someone over there. They'll look into it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Rob Panosh" <ro************************@asdsoftadfdware.com> wrote in
message news:OP**************@TK2MSFTNGP11.phx.gbl...
Hello,

I noticed today that http://www.syncfusion.com/faq/winforms/search/1004.asp no longer exist. Does anybody know the new address or of another site I can use for reference for Win Form examples?

Thanks,
Rob Panosh

Nov 21 '05 #5
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us knows
another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #6
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us knows
another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #7
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well as
sample on syncfusion a little bit changed by me to let it go as well with
option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager,
_
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As
Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As EventArgs)
_
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from a
sample that is as well on syncfusion and changed as well some parts and in
that thread was an improvement again by the original poster. The thread was
longer however that improvement is gone. However you can try this one when
you need that valuemember otherwise I would when I was you try the first
one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us
knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.

Nov 21 '05 #8
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well as
sample on syncfusion a little bit changed by me to let it go as well with
option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager,
_
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As
Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As EventArgs)
_
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from a
sample that is as well on syncfusion and changed as well some parts and in
that thread was an improvement again by the original poster. The thread was
longer however that improvement is gone. However you can try this one when
you need that valuemember otherwise I would when I was you try the first
one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us
knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.

Nov 21 '05 #9
Thank you.. I'm going to give it a try and see what happens. I
downloaded Leadit's ExtendedDataGrid, but while trying to get it to
work, I got very frustrated.. Since I couldn't see any of the code, I
couldn't figure out how to make the combobox one work and there were no
samples available...

Aaron

Cor Ligthert wrote:
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well as
sample on syncfusion a little bit changed by me to let it go as well with
option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager,
_
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As
Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As EventArgs)
_
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from a
sample that is as well on syncfusion and changed as well some parts and in
that thread was an improvement again by the original poster. The thread was
longer however that improvement is gone. However you can try this one when
you need that valuemember otherwise I would when I was you try the first
one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us
knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #10
Thank you.. I'm going to give it a try and see what happens. I
downloaded Leadit's ExtendedDataGrid, but while trying to get it to
work, I got very frustrated.. Since I couldn't see any of the code, I
couldn't figure out how to make the combobox one work and there were no
samples available...

Aaron

Cor Ligthert wrote:
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well as
sample on syncfusion a little bit changed by me to let it go as well with
option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager,
_
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As
Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As EventArgs)
_
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from a
sample that is as well on syncfusion and changed as well some parts and in
that thread was an improvement again by the original poster. The thread was
longer however that improvement is gone. However you can try this one when
you need that valuemember otherwise I would when I was you try the first
one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us
knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #11
Cor,

I can't seem to get it to work... I added a TextBox column style, then
went into the code and changed it from that to the new name of the
combobox style, and once I switched back to the designer, the column
disappeared.. It's still in code, but it doesn't show up on the screen,
even when run...

Cor Ligthert wrote:
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well as
sample on syncfusion a little bit changed by me to let it go as well with
option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager,
_
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As
Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As EventArgs)
_
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from a
sample that is as well on syncfusion and changed as well some parts and in
that thread was an improvement again by the original poster. The thread was
longer however that improvement is gone. However you can try this one when
you need that valuemember otherwise I would when I was you try the first
one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us
knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #12
Cor,

I can't seem to get it to work... I added a TextBox column style, then
went into the code and changed it from that to the new name of the
combobox style, and once I switched back to the designer, the column
disappeared.. It's still in code, but it doesn't show up on the screen,
even when run...

Cor Ligthert wrote:
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well as
sample on syncfusion a little bit changed by me to let it go as well with
option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager,
_
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As
Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As EventArgs)
_
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from a
sample that is as well on syncfusion and changed as well some parts and in
that thread was an improvement again by the original poster. The thread was
longer however that improvement is gone. However you can try this one when
you need that valuemember otherwise I would when I was you try the first
one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx

Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a combobox
to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:
Rob,

Are you sure that it is not just temporary, on the homepage is still a
complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of us
knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #13
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> schrieb:
I told someone over there. They'll look into it.


Seems to work now...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #14
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> schrieb:
I told someone over there. They'll look into it.


Seems to work now...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #15
Ok, fixed it.. I just need to read more. :P

Aaron Smith wrote:
Cor,

I can't seem to get it to work... I added a TextBox column style, then
went into the code and changed it from that to the new name of the
combobox style, and once I switched back to the designer, the column
disappeared.. It's still in code, but it doesn't show up on the screen,
even when run...

Cor Ligthert wrote:
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well
as sample on syncfusion a little bit changed by me to let it go as
well with option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As
CurrencyManager, _
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal
readOnly1 As Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As
EventArgs) _
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from
a sample that is as well on syncfusion and changed as well some parts
and in that thread was an improvement again by the original poster.
The thread was longer however that improvement is gone. However you
can try this one when you need that valuemember otherwise I would when
I was you try the first one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx
Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a
combobox to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:

Rob,

Are you sure that it is not just temporary, on the homepage is still
a complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of
us knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.



--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #16
Ok, fixed it.. I just need to read more. :P

Aaron Smith wrote:
Cor,

I can't seem to get it to work... I added a TextBox column style, then
went into the code and changed it from that to the new name of the
combobox style, and once I switched back to the designer, the column
disappeared.. It's still in code, but it doesn't show up on the screen,
even when run...

Cor Ligthert wrote:
Aaron,

It seems for me as if the Google newsgroup are a mash as well,

I thought that this one is the simple comboboxcolumn that is as well
as sample on syncfusion a little bit changed by me to let it go as
well with option strict on.

\\\
Public Class DgComboBoxColumn
Inherits DataGridTextBoxColumn
Public WithEvents ColumnComboBox As DataGridCombo 'special class
Private WithEvents cmSource As CurrencyManager
Private mRowNum As Integer
Private isEditing As Boolean
Shared Sub New()
End Sub
Public Sub New()
MyBase.New()
ColumnComboBox = New DataGridCombo
AddHandler ColumnComboBox.SelectionChangeCommitted, _
New EventHandler(AddressOf ComboStartEditing)
End Sub
Protected Overloads Overrides Sub Edit(ByVal source As
CurrencyManager, _
ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal
readOnly1 As Boolean, _
ByVal instantText As String, ByVal cellIsVisible As Boolean)
MyBase.Edit(source, rowNum, bounds, readOnly1, instantText,
cellIsVisible)
mRowNum = rowNum
cmSource = source
ColumnComboBox.Parent = Me.TextBox.Parent
ColumnComboBox.Location = Me.TextBox.Location
ColumnComboBox.Size = New Size(Me.TextBox.Size.Width,
ColumnComboBox.Size.Height)
ColumnComboBox.Text = Me.TextBox.Text
TextBox.Visible = False
ColumnComboBox.Visible = True
ColumnComboBox.BringToFront()
ColumnComboBox.Focus()
End Sub
Protected Overloads Overrides Function Commit(ByVal dataSource As _
CurrencyManager, ByVal rowNum As Integer) As Boolean
If isEditing Then
isEditing = False
SetColumnValueAtRow(dataSource, rowNum, ColumnComboBox.Text)
End If
Return True
End Function
Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As
EventArgs)
isEditing = True
MyBase.ColumnStartedEditing(DirectCast(sender, Control))
End Sub
Private Sub LeaveComboBox(ByVal sender As Object, ByVal e As
EventArgs) _
Handles ColumnComboBox.Leave
If isEditing Then
SetColumnValueAtRow(cmSource, mRowNum, ColumnComboBox.Text)
isEditing = False
Invalidate()
End If
ColumnComboBox.Hide()
End Sub
End Class

This one is when you want to use valuemembers, I made it as well from
a sample that is as well on syncfusion and changed as well some parts
and in that thread was an improvement again by the original poster.
The thread was longer however that improvement is gone. However you
can try this one when you need that valuemember otherwise I would when
I was you try the first one.

http://tinyurl.com/49p35

This link is another datagrid faq page

http://www.microsoft.com/belux/nl/ms.../datagrid.mspx
Give it a try, I hope this helps?

Cor.


"Aaron Smith" <th**********@smithcentral.net> schreef in bericht
news:Ga*******************@newssvr33.news.prodigy. com...
Since you asked, I'm currently looking for VB.Net code to add a
combobox to a DataGrid Column.... I've found C# code, but not VB.Net.

Thanks,
Aaron

Cor Ligthert wrote:

Rob,

Are you sure that it is not just temporary, on the homepage is still
a complete link to this pages however are empty.

So just ask what you are searching for here temporary maybe some of
us knows another link.

Cor

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.



--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #17
Herfried K. Wagner [MVP] wrote:
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> schrieb:
I told someone over there. They'll look into it.

Seems to work now...


Same thing for me.. HTTP Error 500-13 - Server too busy

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #18
Herfried K. Wagner [MVP] wrote:
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> schrieb:
I told someone over there. They'll look into it.

Seems to work now...


Same thing for me.. HTTP Error 500-13 - Server too busy

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #19
"Aaron Smith" <th**********@smithcentral.net> schrieb:
I told someone over there. They'll look into it.


Seems to work now...


Same thing for me.. HTTP Error 500-13 - Server too busy


Interesting -- the website still works for me ;-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #20
"Aaron Smith" <th**********@smithcentral.net> schrieb:
I told someone over there. They'll look into it.


Seems to work now...


Same thing for me.. HTTP Error 500-13 - Server too busy


Interesting -- the website still works for me ;-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #21
Herfried K. Wagner [MVP] wrote:
"Aaron Smith" <th**********@smithcentral.net> schrieb:
I told someone over there. They'll look into it.
Seems to work now...

Same thing for me.. HTTP Error 500-13 - Server too busy

Interesting -- the website still works for me ;-).


I just tried it again.. Still nothing.. I'm going to their main page and
it comes up, but when I click on the Winforms FAQ at the bottom right, I
get that server too busy message. Maybe the server is just too busy for
me. lol

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #22
Herfried K. Wagner [MVP] wrote:
"Aaron Smith" <th**********@smithcentral.net> schrieb:
I told someone over there. They'll look into it.
Seems to work now...

Same thing for me.. HTTP Error 500-13 - Server too busy

Interesting -- the website still works for me ;-).


I just tried it again.. Still nothing.. I'm going to their main page and
it comes up, but when I click on the Winforms FAQ at the bottom right, I
get that server too busy message. Maybe the server is just too busy for
me. lol

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #23
I have it using a IP address: http://64.78.52.104/FAQ/WinForms/default.asp

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Rob Panosh" <ro************************@asdsoftadfdware.com> wrote in
message news:OP**************@TK2MSFTNGP11.phx.gbl...
Hello,

I noticed today that
http://www.syncfusion.com/faq/winforms/search/1004.asp no longer exist.
Does anybody know the new address or of another site I can use for
reference for Win Form examples?

Thanks,
Rob Panosh

Nov 21 '05 #24
I have it using a IP address: http://64.78.52.104/FAQ/WinForms/default.asp

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Rob Panosh" <ro************************@asdsoftadfdware.com> wrote in
message news:OP**************@TK2MSFTNGP11.phx.gbl...
Hello,

I noticed today that
http://www.syncfusion.com/faq/winforms/search/1004.asp no longer exist.
Does anybody know the new address or of another site I can use for
reference for Win Form examples?

Thanks,
Rob Panosh

Nov 21 '05 #25
Thats odd.. That works for me but using the full DNS doesn't.. It worked
from home last night too. I'll send them an e-mail..

Aaron

Éric Moreau [VB MVP] wrote:
I have it using a IP address: http://64.78.52.104/FAQ/WinForms/default.asp

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
Nov 21 '05 #26
rob

Aaron Smith wrote:
Thats odd.. That works for me but using the full DNS doesn't.. It worked from home last night too. I'll send them an e-mail..

Aaron

Éric Moreau [VB MVP] wrote:
I have it using a IP address: http://64.78.52.104/FAQ/WinForms/default.asp

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


Aaron,

I get the same results. I will update my link to point to the IP
address.

Rob

Nov 21 '05 #27

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alan Partridge | last post by:
I have an app with both a webforms and winforms front end. When I change the web.config file, eventually IIS\ASP.NET pick up the changes and all is well. With the WinForms GUI - when I change...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
4
by: Elhanan | last post by:
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current...
0
by: Shamil Salakhetdinov | last post by:
Hi All, Have anybody seen somewhere techniques like the one described here: Automating Windows Applications http://www.thecodeproject.com/com/automatingwindowsapps.asp but for managed...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
0
by: netflex | last post by:
Working on a handed off C# project and pretty much my third time dipping into C#. In my solution file, I have a collection of .resx files in their own folder, several .cs files, and my winforms .cs...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.