Click here to Skip to main content
15,921,113 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionWindows Form Size Problem Pin
Morrizle23-Sep-08 5:38
Morrizle23-Sep-08 5:38 
QuestionCrystal Reports In VB.NET Pin
tungcan5diop22-Sep-08 22:20
tungcan5diop22-Sep-08 22:20 
AnswerRe: Crystal Reports In VB.NET Pin
Wendelius23-Sep-08 8:26
mentorWendelius23-Sep-08 8:26 
Questionapplication runtime error Pin
balu1234522-Sep-08 9:14
balu1234522-Sep-08 9:14 
AnswerRe: application runtime error Pin
led mike23-Sep-08 4:35
led mike23-Sep-08 4:35 
Questionwork with a ssh connection Pin
caradri22-Sep-08 3:17
caradri22-Sep-08 3:17 
RantRe: work with a ssh connection Pin
Paul Conrad22-Sep-08 6:42
professionalPaul Conrad22-Sep-08 6:42 
Questioncombobox and dropdownitems Pin
CICCIOLO6922-Sep-08 0:15
CICCIOLO6922-Sep-08 0:15 
Hi,
I'm trying to add a sub menu as a combobox filled by a dataset.
Adding as main menu item it works, as a submenu not.
Here is the code.

Dim dsCBO As New DataSet
Dim GiacCBO As New ToolStripComboBox
Dim strSQL As String = "select item_id,descr from items;"
Dim strConn As String = Me.SQLConnString
Dim daLookups As New SqlDataAdapter(strSQL, strConn)
Try
daLookups.Fill(dsCBO)
With dsCBO
.Tables(0).TableName = "Item"
End With
Catch excFill As Exception
End Try
With GiacCBO
.ComboBox.DataSource = dsCBO.Tables("Item")
.ComboBox.DisplayMember = "descr"
.ComboBox.ValueMember = "item_id"
End With
AddHandler GiacCBO.SelectedIndexChanged, AddressOf GiacCBO_SelectedIndexChanged
GiacenzaArticoloToolStripMenuItem.DropDownItems.Add(GiacCBO)

The combobox is still empty ?!?!
Substituting the last code row with:
MenuStrip1.Items.Add(GiacCBO)
the GiacCBO object show all records of the dsCBO.

What's wrong ?
GeneralRe: combobox and dropdownitems Pin
nelsonpaixao28-Sep-08 14:42
nelsonpaixao28-Sep-08 14:42 
QuestionDatagrid image column problem. Pin
devboycpp21-Sep-08 20:06
devboycpp21-Sep-08 20:06 
QuestionMethods to implement SSL while Login by Desktop Messenger [modified] Pin
Gaurar21-Sep-08 19:32
Gaurar21-Sep-08 19:32 
QuestionMessenger Plus! Drawing Function Pin
mcr.joe20-Sep-08 1:50
mcr.joe20-Sep-08 1:50 
QuestionGet Combobox value within Microsoft.VisualBasic.PowerPacks 3.0 DataRepeater Control Pin
That's Aragon18-Sep-08 22:32
That's Aragon18-Sep-08 22:32 
AnswerRe: Get Combobox value within Microsoft.VisualBasic.PowerPacks 3.0 DataRepeater Control Pin
Ashfield19-Sep-08 5:11
Ashfield19-Sep-08 5:11 
QuestionRound Corner Shaped Form? Pin
developer.ravish18-Sep-08 20:17
developer.ravish18-Sep-08 20:17 
AnswerRe: Round Corner Shaped Form? Pin
Ajay.k_Singh18-Sep-08 23:42
Ajay.k_Singh18-Sep-08 23:42 
AnswerRe: Round Corner Shaped Form? Pin
BAGYIPHONEGYI21-Sep-08 1:03
BAGYIPHONEGYI21-Sep-08 1:03 
Questionhow to get virtual ip address in c# Pin
gargagan18-Sep-08 18:32
gargagan18-Sep-08 18:32 
AnswerRe: how to get virtual ip address in c# Pin
Paul Conrad21-Sep-08 7:34
professionalPaul Conrad21-Sep-08 7:34 
QuestionFunction IIF in VB.net Pin
tungcan5diop17-Sep-08 21:57
tungcan5diop17-Sep-08 21:57 
AnswerRe: Function IIF in VB.net Pin
Mycroft Holmes17-Sep-08 22:32
professionalMycroft Holmes17-Sep-08 22:32 
AnswerRe: Function IIF in VB.net Pin
Paul Conrad18-Sep-08 6:44
professionalPaul Conrad18-Sep-08 6:44 
JokeRe: Function IIF in VB.net Pin
AlexeiXX319-Sep-08 8:00
AlexeiXX319-Sep-08 8:00 
GeneralRe: Function IIF in VB.net Pin
Paul Conrad19-Sep-08 8:37
professionalPaul Conrad19-Sep-08 8:37 
GeneralRe: Function IIF in VB.net Pin
AlexeiXX319-Sep-08 10:27
AlexeiXX319-Sep-08 10:27 

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.