|
Is there any way to change the position of the help panel in a PropertyGrid in code?
|
|
|
|
|
Sorry, I don't think so. If you use Reflector[^] to view the source for the PropertyGrid you can see that the private method OnLayoutInternal positions the help panel (this is called doccomment in OnLayoutInternal).
The best you can do is hide it. You may be able to request such a feature from a third-part vendor (such as SmartPropertyGrid[^]).
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
How do you hide it? I have a situation where I want a fairly simple PropertyGrid, but I do not want the help panel to display.
Thanks,
John
|
|
|
|
|
As Tom said, the MS PropertyGrid can't do it. However, Smart PropertyGrid.Net can definitely position the comments area the way you want (some of my customers wrote a piece of code so that the size is adaptable to the height of the comments).
|
|
|
|
|
Hi,
I wrote a web service which needs to return a list of string objects. I tried using string[] as my return value and couldn't get that to work. I then tried using an ArrayList and couldn't get that to work either. I read some stuff on it and in my program which uses the web service I could get my string values like this:
Object[] items = GetItems();
I then cast my items back to strings.
This is OK but how can I get the actual ArrayList back?
ArrayList items = GetItems();
Thanks 
|
|
|
|
|
Hm.
I stopped using ArrayList a while back when generic lists came.
For instance: List<string> items .
I'f my memory hasen't failed me completely, you should only have to set the method returnvalue to ArrayList, like public ArrayList GetItems(); and return your ArrayList in a normal fashion.
Have you tried using generic lists?
-Larantz-
|
|
|
|
|
No I will give that a try thanks 
|
|
|
|
|
Passing back ArrayList works fine if the web service is in the same project as the calling code but doesn't work if I've built a separate application to call the method passing it back.
I have to get the result by assigning it as Object[] .
If I use List<string> as my return type, in my calling application it only works if I assign the return value to string[] . This works fine but I can't help thinking that my calling application should be using the actual return type.
Am I missing something?
This is the sample response from the web service:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfString xmlns="MyWebService">
<string>string</string>
<string>string</string>
</ArrayOfString>
So the web service is expecting to be able to send back "ArrayOfString". Why can I not assign the return value to List<string>?
|
|
|
|
|
How do I use C# to run another exe program? like in C we can use system function, is there something similar in C# ??
Thanks,
Samuel
|
|
|
|
|
This question has been asked a number of times already, have you searched the forums? A quick google search for "C# run another program" reveals the info you need.
|
|
|
|
|
Would it have hurt you to have given an informative reply. For sure he could have googled it... you obviously did to know for sure that it was there... Could you not have at least put a link to the first result?
|
|
|
|
|
Catch a man a fish, you've fed him for a day. Teach a man to fish, you've fed him for life.
|
|
|
|
|
Hear hear!
-Larantz-
|
|
|
|
|
How to catch fish? Plz send codes.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
malcolm!
this ur professor from university. i have a doubt on ur ethical sensual natures. u must no post my homowork on the cpiansex. i tell class u must no post fishing homoworks on the cians next time i bend u over bare buttocks and spank u in front of all classes to shame u. black grade for u this semester. CURSES OF DARK SHIVA ON U ETERNITY EVERLASTING!!!1!
Sincelery yours, Computer Information conSciences Professor and grader, Sharada Ulhas
|
|
|
|
|
Light a man a fire you've warmed him for a night. Light a man on fire you've warmed him for life.
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
Darn the luck. I was going to post a similar reply but then I thought maybe I shouldn't. You must be a sick individual, and yes it takes one to know one.
BDF
|
|
|
|
|
I've been justly acused of many things in my life. Normalcy has never been one of them.
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
He did give him the information he needed. He told the man who to find the information on his own. Judah didn't ahve to Google this to find out if there was any info on it out there. It's a question that's been asked and answered a couple of million times already!
Like Judah said, answering a simple question directly only serves to answer that single question. Teaching him how to find his own answers answers many, many more questions than just the one.
|
|
|
|
|
Process.Start
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Look at the System.Diagnostics.Process class, it might be just what you're looking for.
Dave
|
|
|
|
|
|
System.Diagnostics.Process.Start(/*url or file goes here*/)
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
give me any reference about key tempring in c#
-- modified at 12:01 Thursday 6th September, 2007
tahir
|
|
|
|
|
I saved you from yourself, you should never post programming questions in the lounge. Your question still makes no sense, and you should consider being more polite in how you ask it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|