|
Hi, I am new in vb.net 2003, I am using C# and i want to retrive the control in one form to another form. i am using like this.
public static frmDocumentMaster m_Childform;
public static frmDocumentMaster GetChildInstance()
{
if (m_Childform==null || m_Childform.IsDisposed) //if not created yet, Create an instance
m_Childform = new frmDocumentMaster();
return m_Childform; //just created or created earlier.Return it
}
But its shows only Label control not another control. Please anybody help me.....
f
|
|
|
|
|
- Please use something useful in your title: "Anybody help me???????" is not clear, use "retrieve control in another form" eg.
You can make your controls available in several ways. Personally I find using "static" a bad idea. better is to make your control public, even more better would be to create a public property that exposes the control, even more better than that is to create a public property exposing a property of that control (eg the Text property of a TextBox)
My advice would be to redesign your code.
Hope this helps.
|
|
|
|
|
Hi,
I am using datagrid in Winforms.
How can i set the autogenerate columns =false
I just want only those columns to show up whihc i have added no other columns apart from that.
Thanks.
Deepak Surana
|
|
|
|
|
Hi,
I think you don't have any such property "autogenerate columns" in datagrid for winforms.
Just select the fields you require to display in your database query.
Or else you can set the "Visible" property equal to 'False' for particular column in the datagrid which you dont want to display.
|
|
|
|
|
hello experts,
I have one question... Why ASPX pages are running more slower than any other web technology...?
I saw php sites are running too fast than the any ASP.NET application.
The latest example of it is Code Project it self. When it was in classic ASP than it run smoothly, but since the upgradation is apply on it using ASP.NET technology it running more slower and slower.
one more intersting aspect of ASP.NET is : This is the only web technology which having the compiled code and other technologies are run whole code every time. So .NET should run fast as compare to other...
How to over come with this particular problem...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
This is a dumb question. Many tests have been done, for example between J2EE and ASP.NET. No matter what the result, examining the code used will result in people pointing out ways to optimise one version or the other. There's really no way to compare apples for apples, the core benefit of ASP.NET is being able to write structured code, no-one said it was faster, although I also don't think it's slower. Each app needs to be written, performance tested and, yes, worked on when it fails to perform as hoped under extreme load. That doesn't mean ASP.NET is slow.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: This is a dumb question.
I strongly opine that the above statement was not at all necessary...coz i think we are all here to help and if you find some question not "up-to-your mark" , then please better do not answer the question than to fire rude words like this.
I have been noticing this kind of behavior from some "experts" as well, on this community. If the users are expected to maintain the decorum and dignity of this community, so are all the "heads" of this community.
Being the owner of this area, doesnt mean that you have got all rights to insult and humiliate the naive users.
I am sure, after reading this long post of protest, my message either would be deleted or I would be barred or even worse, both could happen. But i am not gonna backtrack just due to this. Even if you do any of this to me, you would definitely prove me right.
|
|
|
|
|
Hi friends,
gladiatron said right.
Some people are thining they are only experts and no one else can give answer.
Its helping forum. We should help people in anyway..
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I have to disagree with you. Given that the OP's question was both inappropriate and ill-informed, Christian's remarks were quite reasonable. Most people who answer questions in the programming forums do so in a reasonable and understanding manner, which is often difficult with the high volume of 'noise' posts. This is a free site and no one is being paid for offering their assistance. If you are not happy with the standards of response, maybe you should be encouraging those that post to ask more intelligent questions.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Exactly well said.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
I also disagree, although people can seem a little harsh at times, it is usualy because people do not pay attention to the rules... or ask a question that is so obviously a peice of homework.
Also, CP doesn't delete posts, or ban / suspend its members for their opinions. If enough people regard your post as inapropriate, or spam then it will automaticaly be removed. But thats down to the community, not because of one person.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Pankaj - Joshi wrote: The latest example of it is Code Project it self.
Adding CG's post, who said CP became slow after upgradation ? Then better change your internet connection. I felt it's faster than the ASP version, and AFAIK, CP team has not completed the full upgradation process. So they might be uploading something and it cause recompilation of the site which will make it slower. For getting good performance on ASP.NET pages, optimize it, follow best practices and understand well about how it works.
|
|
|
|
|
Well said Navaneeth.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Their is no way to prove you wrong... otherwise I'll definitely give you speed demo between ASP and ASP.net version of Code project.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
I think you are getting architecture and implementation mixed up here. If you write a PHP page that does nothing but return HTML, then it is going to be faster than an ASP.NET page that hits the database, pulls back a couple of thousand rows, binds them to various parts of the display and then sends that back to the client, with a couple of HTTP handlers interacting on the way.
The only way to verify speed differences is to code up two systems that do exactly the same thing, in exactly the same way, and measure the time over a period of interactions.
Pankaj - Joshi wrote: This is the only web technology which having the compiled code
Errm no. What about CGI code? What about Java applications? Please check your facts before making bald statements like this.
|
|
|
|
|
That's answer for that I'm looking for.
I already make some pages in ASP, .NET (same functionality and test them) and ASP.NET application is running slow as compare to asp.
Sorry about that compiled code line....
But here some people underestimate me and some start fighting without giving proper answer of my question.
One thing I want to tell
"NO ONE IS THE PERFECT IN THE WORLD".
So you are sit here to helping people or underestimate them....?
One thing is very famous in india......
"Every human make mistakes, If you don't make any mistake in life then you are definitely the GOD "
|
|
|
|
|
Hello There,
I am trying to use selenium-server with .NET 2.0 (VS 2005).
I have made a class which defines all the functions of Selenium. The code is working perfectly in .NET 1.1(VS 2003) but the same code written in VS 2005 gives me the following error:
NUnit version 2.4.1
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Microsoft Windows NT 5.1.2600.0
CLR Version: 1.1.4322.2032 ( Net 1.1.4322.2032 )
Version 2.0 is not a compatible version.
I have put the snippet of the output window. Can anybody please tell me what version conflict is this and how do I solve it??
Thanks in advance.
Vruddhi
modified on Friday, December 07, 2007 1:24:12 AM
|
|
|
|
|
I think you are using the old version of NUnit in your project.. So, try to change the new version of nUnit dll..
|
|
|
|
|
Anybody pl tell me how to Apply a theme at rumntime(that too at Button click)
In my form, i have a dropdownlist and a button... I filled the themes name available in it... my objective is to select a theme and click the button... then the theme of the page should change to the theme mentioned...
If anybody knows how to perform this operation pl inform me...
vinoth.k
|
|
|
|
|
It all depends on what your 'themes' are. Different colours? Different images? Different layout even.
Still, if you think about it for a moment, its not that difficult.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
hi,
i have two arrays..
first arraylist consists of 1,2,4,6,8;
second arraylist consists of 2,6,9,8
i got the commoon items using the following code..it is working fine
for(int i=0;i<strOldItems.Length;i++)
{
strTest[i]=strOldItems[i];
for(int j=0;j<strNewItems.Length;j++)
{
if(strTest[i]==strNewItems[j])
{
if(strCommon.Length>0)
{
strCommon=strCommon+","+ strTest[i];
//Response.Write(strTest[i]+",");
}
else
{
strCommon=strTest[i];
}
}
but i need the items which is in first array and which is not in second array..for that i wrote the following code..but it is not working..
for(int i=0;i<strOldItems.Length;i++)
{
strTest[i]=strOldItems[i];
for(int j=0;j<strNewItems.Length;j++)
{
if(strTest[i]!=strNewItems[j])
{
if(strReject.Length>0)
{
strReject=strReject+","+ strTest[i];
//Response.Write(strTest[i]+",");
}
else
{
strReject=strTest[i];
}
}
}
}
|
|
|
|
|
Did you check by applying the break point aah? did you get the value or not? And what error it shows?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
it is not giving any error,
to get the same values from the two arrays ..i wrote the logic like this,
first array first element checks with all the second array elemnts..if it find any matches ..it returns the matched value..like second element with all the elements of second array.
but to get the elemenet which is in first array and which is not second array..
i wrote like this,
first array element checks with the all the elements in the second array..if he does not found any matches it returns the unmatched values ....this is wrong na..becasue this first elemnt unmacthedvalues may be equal to the second element in the first array
how can i write the logic for this
|
|
|
|
|
Hi all,
I want to use 3 lists ,list1,list2 and list3...
list1 contains the list of tables.list2 contains the list of columns corresponding to the table in the list1.
user selects the columns by checking them and presses a button and the column is moved to list3.
I have an idea to do it.But the main problem,when the user finishes the selection ,I want to see which tables are selected and which columns corresponding to which tables are selested...
Regards,
chanzeb chaudhary
modified on Thursday, December 06, 2007 11:56:49 PM
|
|
|
|
|
Please make your subject for the post corectly.Dont make it as Help meeeee!!!! ie., not good here we all are here to help you.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|