Click here to Skip to main content
15,900,907 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL Server pool size Pin
Justin Perez16-Jan-08 4:34
Justin Perez16-Jan-08 4:34 
GeneralRe: SQL Server pool size Pin
DannyAdler16-Jan-08 21:02
DannyAdler16-Jan-08 21:02 
GeneralRe: SQL Server pool size Pin
DannyAdler16-Jan-08 4:24
DannyAdler16-Jan-08 4:24 
GeneralTiff to AVI Pin
Ylno16-Jan-08 3:06
Ylno16-Jan-08 3:06 
GeneralCheck if a Bitmap has tranparency Pin
DannyAdler16-Jan-08 2:43
DannyAdler16-Jan-08 2:43 
GeneralRe: Check if a Bitmap has tranparency Pin
Christian Graus16-Jan-08 9:20
protectorChristian Graus16-Jan-08 9:20 
GeneralRe: Check if a Bitmap has tranparency Pin
DannyAdler16-Jan-08 23:06
DannyAdler16-Jan-08 23:06 
GeneralDisplay comboBox in usercontrol property Pin
Peterson Luiz16-Jan-08 2:23
Peterson Luiz16-Jan-08 2:23 
Hello,

I have a userControl that has a string property. I want that, instead of typing in this property, the user gets a comboBox with strings got from a database.
I've created a new class that has a GetStandardValues method, like this:

public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
ArrayList permissions = new ArrayList();
permissions.Add("test1");
permissions.Add("test2");
permissions.Add("test3");

return new StandardValuesCollection(permissions);
}

When I set the typeConverter of the property at my userControl to be the type of the above class, it works. The control's property diplays the test strings in a comboBox.
But when I try to bring this strings from a dataBase, it doesn't work.

I've already tried this:

public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
ArrayList permissions = DataBase.GetPermissions();
return new StandardValuesCollection(permissions);
}

Anybody has can help me?

Thanks

Peterson

GeneralRe: Display comboBox in usercontrol property Pin
Justin Perez16-Jan-08 3:16
Justin Perez16-Jan-08 3:16 
GeneralRe: Display comboBox in usercontrol property Pin
Peterson Luiz16-Jan-08 4:34
Peterson Luiz16-Jan-08 4:34 
GeneralRe: Display comboBox in usercontrol property Pin
Gareth H16-Jan-08 12:07
Gareth H16-Jan-08 12:07 
QuestionWhich ADO.NET DataProvider to use? Pin
Blumen16-Jan-08 2:19
Blumen16-Jan-08 2:19 
GeneralRe: Which ADO.NET DataProvider to use? Pin
Gareth H16-Jan-08 2:37
Gareth H16-Jan-08 2:37 
GeneralRe: Which ADO.NET DataProvider to use? Pin
Colin Angus Mackay16-Jan-08 4:17
Colin Angus Mackay16-Jan-08 4:17 
GeneralRe: Which ADO.NET DataProvider to use? Pin
Blumen16-Jan-08 17:55
Blumen16-Jan-08 17:55 
QuestionHow to import contacts from mail in C# Pin
mrcsn16-Jan-08 2:01
mrcsn16-Jan-08 2:01 
AnswerRe: How to import contacts from mail in C# Pin
originSH16-Jan-08 2:14
originSH16-Jan-08 2:14 
GeneralRe: How to import contacts from mail in C# Pin
Russell Jones16-Jan-08 2:49
Russell Jones16-Jan-08 2:49 
GeneralRe: How to import contacts from mail in C# Pin
Vikram A Punathambekar16-Jan-08 3:42
Vikram A Punathambekar16-Jan-08 3:42 
GeneralRe: How to import contacts from mail in C# Pin
Justin Perez16-Jan-08 3:58
Justin Perez16-Jan-08 3:58 
GeneralRe: How to import contacts from mail in C# Pin
Vikram A Punathambekar16-Jan-08 4:27
Vikram A Punathambekar16-Jan-08 4:27 
GeneralRe: How to import contacts from mail in C# Pin
originSH18-Jan-08 1:16
originSH18-Jan-08 1:16 
GeneralRe: How to import contacts from mail in C# Pin
mrcsn16-Jan-08 17:46
mrcsn16-Jan-08 17:46 
GeneralRe: How to import contacts from mail in C# Pin
originSH18-Jan-08 1:23
originSH18-Jan-08 1:23 
QuestionHow to get all IPs in Network Pin
Venki5616-Jan-08 1:24
Venki5616-Jan-08 1:24 

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.