|
is there any way to access the private data of a class from the other class. like friend functions in c++
Qaiser
|
|
|
|
|
Hello,
I think you are looking for a "protected" member, which only can be accessed from inherited classes.
All the best,
Martin
|
|
|
|
|
No No ... i just wana ask "is there any way to access the 'private' (not protected) data of a class from outside the class"
|
|
|
|
|
if you want to get to the private data you are going to need to use reflection.
Russell
|
|
|
|
|
internal?
this will allow other classes within the same assembly use the method
HTH
Russ
|
|
|
|
|
|
Hi Friends,
Class Implementing an interface implies class declaring publicly that it is implementing certain method(whose signature is defined in interface)..whats the use of this contract..What if class will simply implement that method..
Warm Regards,
Rahul Agarwal
|
|
|
|
|
|
Thanks a lot Martin..that link helped me a lot..
Regards,
Rahul
|
|
|
|
|
Hello,
I am developing a MDI form application in C#.
I want to create some child window form according to the parent Form size.
To get the height and width of main parent Form i am using "this.ClientSize.Width" & "this.ClientSize.Height", but somehow it is not excluding the size of Toolbar, MenuBar and scrollbar.
Please tell me the way to find the active client area of a MDI form.
thanks.
gajesh
|
|
|
|
|
hi gajesh
the client area of a form is a container control.
inherited controls are scrollabecontrol and control.
use the ClientRectangle Property of the control to get the
client area of the form.
regards
|
|
|
|
|
Hi Joe,
The ClientRectangle gives the size of Form...I agree but i have not modified the size(298, 298) of the form instead to get full window i used property WindowState = Maximized(with & Height 1152,864). But the ClientRectangle property still gives the previous size only.
So how should i get the actual active client area height & width?
Thanks.
|
|
|
|
|
try the DisplayRectangle property.
also check the onlayout event fpr changes.
regards
|
|
|
|
|
Hai
I need for an application which retrieves data based on particular day and month between a range of years.i need this code in asp.net2.0.
Thanks in advance
karthik
|
|
|
|
|
Hope this[^] will help you.
Regards,
Satips.
|
|
|
|
|
Hai everybody,
Have a nice day to you all.
When analyzing a piece of code i got the follwoing doubts:
1. They have declared a parameter like this int? sno and int32? mno. What is the usage of ?
2. They have prefixed [TestMethod] for some fucntion as if we prefix [WebMethod] for web service.
What is the purpose of this ?
Can anyone clarify my doubts, Please.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
Tahnk you Nishu.
But there is no details related to [TestMethod]
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
Thank you very much Nishu
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
[TestMethod] is part of the unit testing framework in Visual Studio Team Suite, Team Developer or Team Tester. You need one of those versions of visual studio installed in order to use it.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Please don't mistake me.
I want to know the purpose of the tag.can you give me a reference or explanation
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: I want to know the purpose of the tag
The TestMethod attribute is used as part of the unit testing framework in the versions of Visual Studio I previously mentioned. It denotes that the method should be run as a unit test.
Unit tests, regardless of framework, follow the same ideas and you should search (Google) on that if you want more information. The topic is too large to distill into a forum post.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Thank you.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi all
I have a requirement and i need some resolution to work on.
i have to read a webpage and extract few values from the page. I am
using the httpwebrequest meathod to query the webpage that based on
the values generate a result on the webpage and then i need to pick
the phone number and the email id displayed on the page.
kindly assist how to extract values
|
|
|
|