Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to executing the .exe file in others pc using the my own pc?? Pin
Dragonfly_Lee5-Mar-09 22:39
Dragonfly_Lee5-Mar-09 22:39 
Questionhow to show file icons in list view control? Pin
lsh486love4-Mar-09 20:14
lsh486love4-Mar-09 20:14 
AnswerRe: how to show file icons in list view control? Pin
Xmen Real 4-Mar-09 20:20
professional Xmen Real 4-Mar-09 20:20 
GeneralRe: how to show file icons in list view control? Pin
lsh486love4-Mar-09 20:33
lsh486love4-Mar-09 20:33 
GeneralRe: how to show file icons in list view control? Pin
0x3c04-Mar-09 20:50
0x3c04-Mar-09 20:50 
GeneralRe: how to show file icons in list view control? Pin
Xmen Real 4-Mar-09 22:34
professional Xmen Real 4-Mar-09 22:34 
AnswerRe: how to show file icons in list view control? Pin
Dragonfly_Lee5-Mar-09 23:00
Dragonfly_Lee5-Mar-09 23:00 
QuestionClass property isn't working in custom controls Pin
Xmen Real 4-Mar-09 20:13
professional Xmen Real 4-Mar-09 20:13 
This thing is irritating me since morning...well, I inherit PictureBox in a class and add property of another class something like this


public class PBC : PictureBox
{
    Testing Testing1;
    public PBC()
    {
        Testing1 = new Testing(this);
    }
    public Testing Testing
    {
        get { return Testing1; }
        set { Testing1 = value; }
    }
}
[TypeConverter(typeof(ProperyConverter))]
public class Testing
{
    Control Control = null;
    string textHolder = "";
    public Testing(Control control)
    {
        Control = control;
    }
    public bool IsInitiated
    {
        get { return Control != null; }
    }
    public string TextHolder
    {
        get { return textHolder; }
        set { textHolder = value; }
    }
}


all looks good but when I set the 'TextHolder' property in Design Mode it works but when run all gone...so to find the problem out I set the TextHolder and open the form's Designer.cs and found nothing about Testing and TextHolder. Then after some test I got to know its happening because of 'public Testing(Control control)' constructor...then I added new one
public Testing()
{ }

and when I set the TextHolder property and I saw something in Designer.cs.
VS created an instance of Testing class, set its property 'TextHolder' and then set that instance to the control.
Testing testing1 = new Testing();
testing1.TextHolder = "fgvhh";
this.pbc1.Testing = testing1;




One thing I do not understand...why VS making this is so complicated. It can be simple like this

this.pbc1.Testing.TextHolder = "A Test String";


any idea guys ?

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

AnswerRe: Class property isn't working in custom controls Pin
Greg Chelstowski4-Mar-09 21:28
Greg Chelstowski4-Mar-09 21:28 
GeneralRe: Class property isn't working in custom controls Pin
Xmen Real 4-Mar-09 22:37
professional Xmen Real 4-Mar-09 22:37 
GeneralRe: Class property isn't working in custom controls Pin
Greg Chelstowski5-Mar-09 0:01
Greg Chelstowski5-Mar-09 0:01 
Questionembedding of videos Pin
adiseshaiah4-Mar-09 20:10
adiseshaiah4-Mar-09 20:10 
QuestionDSOFile.dsoFileOpenOptions Options ??? (File Summary Info) ..... Pin
S K Y4-Mar-09 19:31
S K Y4-Mar-09 19:31 
QuestionData Binding Pin
Sajjad Leo4-Mar-09 19:05
Sajjad Leo4-Mar-09 19:05 
AnswerRe: Data Binding Pin
Xmen Real 4-Mar-09 19:11
professional Xmen Real 4-Mar-09 19:11 
GeneralRe: Data Binding Pin
Sajjad Leo4-Mar-09 19:59
Sajjad Leo4-Mar-09 19:59 
AnswerRe: Data Binding Pin
Christian Graus4-Mar-09 19:32
protectorChristian Graus4-Mar-09 19:32 
GeneralRe: Data Binding Pin
Sajjad Leo4-Mar-09 19:40
Sajjad Leo4-Mar-09 19:40 
QuestionHow to list live object instances while an application is running? Pin
Samuel Cherinet4-Mar-09 19:04
Samuel Cherinet4-Mar-09 19:04 
AnswerRe: How to list live object instances while an application is running? Pin
Christian Graus4-Mar-09 19:33
protectorChristian Graus4-Mar-09 19:33 
AnswerRe: How to list live object instances while an application is running? Pin
S. Senthil Kumar4-Mar-09 19:49
S. Senthil Kumar4-Mar-09 19:49 
Questionhow to shift delete button from data grid Pin
haleemasher4-Mar-09 18:34
haleemasher4-Mar-09 18:34 
AnswerRe: how to shift delete button from data grid Pin
Xmen Real 4-Mar-09 20:26
professional Xmen Real 4-Mar-09 20:26 
QuestionWebDAV for C# Pin
satsumatable4-Mar-09 18:23
satsumatable4-Mar-09 18:23 
AnswerRe: WebDAV for C# Pin
keesvdb10-Aug-09 22:20
keesvdb10-Aug-09 22:20 

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.