Click here to Skip to main content
15,904,153 members
Home / Discussions / C#
   

C#

 
QuestionReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
jas0n236-Apr-09 3:54
jas0n236-Apr-09 3:54 
AnswerRe: ReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
Mirko19806-Apr-09 4:11
Mirko19806-Apr-09 4:11 
AnswerRe: ReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
Deresen6-Apr-09 4:12
Deresen6-Apr-09 4:12 
AnswerRe: ReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
Luc Pattyn6-Apr-09 4:31
sitebuilderLuc Pattyn6-Apr-09 4:31 
AnswerRe: ReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
jas0n236-Apr-09 5:25
jas0n236-Apr-09 5:25 
GeneralRe: ReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
Luc Pattyn6-Apr-09 6:10
sitebuilderLuc Pattyn6-Apr-09 6:10 
GeneralRe: ReadLine, Perform Action, DeleteLine, ReadNextLine... Pin
jas0n2311-Apr-09 20:59
jas0n2311-Apr-09 20:59 
QuestionProblem with PropertyGrid Pin
sandeepkavade6-Apr-09 2:33
sandeepkavade6-Apr-09 2:33 
Hi,
I am basically a VC++ developer but now working on C#.
I am having a assembly in that i have added a UserControl and on that UserControl I am having a tree-view control and Property Grid control. As and when user selects the different nodes I am populating the corresponding properties in that grid. For the normal properties its working perfectly. But when I have to choose the property from the drop-down list. Its creating the problem. Whenever I click on the drop-down arrow nothing happens.
So I created a test application. Took a windows form application added property grid, added a class deriving it from StringConverter. Everything works fine in test application. But I don't know why its failing in my production code.
I debugged both codes. In test application whenever I click on the drop-down arrow call is coming inside GetStandardValues function. But this is not happening in my main code, its not hitting the break-point at all.

Can anybody tell me why this is happening, Where I am going wrong?
the test application code is below. The exact code is present in my main code

namespace PropertyPage
{
class MyProperties:StringConverter
{
private double str1;
private string str2;
private string str3;

public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
//return base.GetStandardValuesSupported(context);
return true;
}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
{
//return base.GetStandardValuesExclusive(context);
return true;
}
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
return new StandardValuesCollection(new string[] { "Entry1", "Entry2", "Entry3" });
}

[CategoryAttribute("Task "), DescriptionAttribute("test"), TypeConverter(typeof(MyProperties))]
public string Str3
{
get { return str3; }
set { str3 = value; }
}
[CategoryAttribute("Task "), DescriptionAttribute("test"), ReadOnly(true)]
public double Str1
{
get { return str1; }
set { str1 = value; }
}
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
public string Str2
{
get { return str2; }
set { str2 = value; }
}
}
}

I am initializing the grid as

private void Form1_Load(object sender, EventArgs e)
{
MyProperties my = new MyProperties();
my.Str1 = 12;
propertyGrid1.SelectedObject = my;
}

I have observed similar behavior with Str2 Property. Its not allowing me to set the path in my main code but in test application its doing its job.
QuestionRemoting using WEBDAV Protocol Pin
balu123456-Apr-09 2:00
balu123456-Apr-09 2:00 
AnswerRe: Remoting using WEBDAV Protocol Pin
SeMartens6-Apr-09 2:29
SeMartens6-Apr-09 2:29 
Questiondisplay the items in a combobox Pin
ShivarajKumar6-Apr-09 1:44
ShivarajKumar6-Apr-09 1:44 
AnswerRe: display the items in a combobox Pin
akhilonly0076-Apr-09 1:58
akhilonly0076-Apr-09 1:58 
AnswerRe: display the items in a combobox Pin
Giorgi Dalakishvili6-Apr-09 2:05
mentorGiorgi Dalakishvili6-Apr-09 2:05 
QuestionHow to insert text to GIF and animate the text ? Pin
ErezRozn6-Apr-09 1:41
ErezRozn6-Apr-09 1:41 
AnswerRe: How to insert text to GIF and animate the text ? Pin
Luc Pattyn6-Apr-09 2:41
sitebuilderLuc Pattyn6-Apr-09 2:41 
QuestionHow do i compress a large dataset Pin
Danie de Kock6-Apr-09 1:37
Danie de Kock6-Apr-09 1:37 
AnswerRe: How do i compress a large dataset Pin
SeMartens6-Apr-09 2:36
SeMartens6-Apr-09 2:36 
GeneralRe: How do i compress a large dataset Pin
Danie de Kock6-Apr-09 3:06
Danie de Kock6-Apr-09 3:06 
GeneralRe: How do i compress a large dataset Pin
SeMartens6-Apr-09 3:27
SeMartens6-Apr-09 3:27 
QuestionHow to catch browser close Pin
dataminers6-Apr-09 1:03
dataminers6-Apr-09 1:03 
AnswerRe: How to catch browser close Pin
Deresen6-Apr-09 3:55
Deresen6-Apr-09 3:55 
GeneralRe: How to catch browser close Pin
dataminers6-Apr-09 4:38
dataminers6-Apr-09 4:38 
GeneralRe: How to catch browser close Pin
Deresen6-Apr-09 4:55
Deresen6-Apr-09 4:55 
GeneralRe: How to catch browser close Pin
dataminers6-Apr-09 23:17
dataminers6-Apr-09 23:17 
QuestionGeneric Collection in C# Pin
Ashwani Dhiman6-Apr-09 0:42
Ashwani Dhiman6-Apr-09 0:42 

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.