Click here to Skip to main content
15,886,799 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can we seperate the functions in different files? Pin
Albu Marius2-Oct-07 5:21
Albu Marius2-Oct-07 5:21 
QuestionSave and Print in C# Pin
aammiz2-Oct-07 4:10
aammiz2-Oct-07 4:10 
QuestionCan`t set focus to the form that i show. . . . . Pin
Yanshof2-Oct-07 3:47
Yanshof2-Oct-07 3:47 
AnswerRe: Can`t set focus to the form that i show. . . . . Pin
Andrei Ungureanu2-Oct-07 4:05
Andrei Ungureanu2-Oct-07 4:05 
GeneralRe: Can`t set focus to the form that i show. . . . . Pin
Yanshof2-Oct-07 4:08
Yanshof2-Oct-07 4:08 
QuestionSchema.ini & file names Pin
digsy_2-Oct-07 2:45
digsy_2-Oct-07 2:45 
AnswerRe: Schema.ini & file names Pin
Dave Kreskowiak2-Oct-07 8:48
mveDave Kreskowiak2-Oct-07 8:48 
Questionhow can I change the properties of controls in/from another class [modified] Pin
pramarathe2-Oct-07 2:29
pramarathe2-Oct-07 2:29 
hi it may b a newbi question but i hvnt got d answer Frown | :(
here is somethings i did
in form1 class
1 I have a statusbar in form1 class and statuslabel1 ,
2 i have made it public control .
3 I have created a public property StatusPanelText which sets the text of statuslabel1.Text= value

Now in IOFunctions class (this is another class where i hv IO related functions)
i have a function which searches the files in given DIR (dirinfo,fileinfo etc) and i want to display file names in the statuslabel1.text

in class i create a instalce of form1

form1 objForm1= new form1();
objForm1.StatusPanelText =filepath;

now this text shows in new form up if i say objform1.show();
but i want the existing form statusbar to change .....

any help ????



-- modified at 9:29 Tuesday 2nd October, 2007

Hej again ...
there is some stuff i need to mention i guess (after d responses)
1) my problem (according to me Smile | :) ) is as i create a new instance of form1 the changes happen in d object form1..so i want to get hold of existing Form1 object and controls...
2) I want this (update statusbartext) in other classess as well (DBrelatedclass,regutl etc) most of the classes are static as they contain only methods/functions.

after some search i think (?) singleton pattern is near to solution but i am not able to impliment it Frown | :(

hope new explanation adds value....


-- modified at 4:25 Thursday 11th October, 2007
AnswerRe: how can I change the properties of controls on another class Pin
Justin Perez2-Oct-07 2:40
Justin Perez2-Oct-07 2:40 
AnswerRe: how can I change the properties of controls on another class Pin
Pete O'Hanlon2-Oct-07 2:49
mvePete O'Hanlon2-Oct-07 2:49 
AnswerRe: how can I change the properties of controls on another class Pin
Andrei Ungureanu2-Oct-07 2:51
Andrei Ungureanu2-Oct-07 2:51 
AnswerRe: how can I change the properties of controls on another class Pin
pramarathe2-Oct-07 4:37
pramarathe2-Oct-07 4:37 
QuestionSpace Key problem Pin
mihksoft2-Oct-07 1:59
mihksoft2-Oct-07 1:59 
AnswerRe: Space Key problem Pin
Justin Perez2-Oct-07 2:35
Justin Perez2-Oct-07 2:35 
GeneralRe: Space Key problem Pin
mihksoft2-Oct-07 2:37
mihksoft2-Oct-07 2:37 
GeneralRe: Space Key problem Pin
Pete O'Hanlon2-Oct-07 2:39
mvePete O'Hanlon2-Oct-07 2:39 
GeneralRe: Space Key problem Pin
Justin Perez2-Oct-07 2:41
Justin Perez2-Oct-07 2:41 
GeneralRe: Space Key problem Pin
mihksoft2-Oct-07 2:45
mihksoft2-Oct-07 2:45 
GeneralRe: Space Key problem Pin
Justin Perez2-Oct-07 2:49
Justin Perez2-Oct-07 2:49 
GeneralRe: Space Key problem Pin
leppie2-Oct-07 4:50
leppie2-Oct-07 4:50 
QuestionHow to expose std::vector in C Sharp Pin
Dhanesh Nair2-Oct-07 0:35
Dhanesh Nair2-Oct-07 0:35 
AnswerRe: How to expose std::vector in C Sharp Pin
Judah Gabriel Himango2-Oct-07 4:21
sponsorJudah Gabriel Himango2-Oct-07 4:21 
QuestionClass with symbol [modified] Pin
N a v a n e e t h2-Oct-07 0:24
N a v a n e e t h2-Oct-07 0:24 
AnswerRe: Class with symbol Pin
Christian Graus2-Oct-07 0:32
protectorChristian Graus2-Oct-07 0:32 
GeneralRe: Class with symbol Pin
Jens Meyer2-Oct-07 0:42
Jens Meyer2-Oct-07 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.