Ricerca
 Italiano (Italia) English (United States)
Register
Login
DotNetWork Forums
UserControl derivato da CheckBox
Last Post 04 Feb 2010 16:38 by Panatronic. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
AuthorMessages

Posts:365

--
04 Feb 2010 15:06 
Buonasera a tutti.

ho un Control derivato dal CheckBox (principalmente lo sto facendo col controllo infragistics ma il problema me lo da anche con quello Microsoft)
devo far in modo che in base allo stato del check, mi valorizzi una property "Messaggio".
Ho fatto questo questo metodo:
Protected Overrides Sub OnCheckedChanged(ByVal e As System.EventArgs) If Me.Checked = True Then
 Messaggio= "SI"
Else
 Messaggio= "NO"
 End If
 End Sub
 Questo non funziona. Quale evento devo usare?

Grazie.


Posts:9

--
04 Feb 2010 15:26 
In che cosa non funziona?
Se il guaio è solo che il controllo non risponde, devi solo aggiungere, come prima riga
MyBase.OnCheckedChanged()
Carmelo

Posts:9

--
04 Feb 2010 16:00 
Errata corrige: come ULTIMA RIGA

Posts:365

--
04 Feb 2010 16:38 
grazie Carmelo.

la riga che dici di mettere va bene col controllo Microsoft (va aggiunto il parametro MyBase.OnCheckedChanged(e) )

col controllo infragistics invece non ne vuole sapere.

grazie.
You are not authorized to post a reply.

Active Forums 4.1
       
Articoli Pubblicati
Panoramica del Sistema dei Comandi
Come iniziare a capire com'è fatto WPF (parte 5)
2007/09/30 | Author: Patrizia Cosolo
Codedom Getting Started part 1
How to generate automatically C# or VB code using CodeDom and the .NET framework
2009/11/07 | Author: Sabrina Cosolo
Codedom Getting Started part 3
The helper class with CodeDom Functionalities
2009/11/07 | Author: Sabna Cosolo
Panoramica delle Proprietà Subordinate (Dependency Properties)
Come iniziare a capire WPF Parte 6
2007/11/22 | Author: Patrizia Cosolo
Code Unit Testing (part 1)
How to start building tests to strengthen our code
2007/12/26 | Author: Sabrina Cosolo
Miniguida alla OOP con il .NET Framework- Parte I
Come prendere per mano un tipico programmatore VB6
2008/07/27 | Author: Alberto De Luca
Working with Arrays
The backpack problem
2007/07/29 | Author: Alberto De Luca
Small guide to OOP with .Net framework - Part IV
How to Manage inheritance
2009/07/17 | Author: Alberto De Luca
   Print     
Home|Community|Contenuti|Forums|Blogs|Workshops
© 2007-2010 by DotNetWork .:. Terms Of Use .:. Privacy Statement .:. Login .:.